Skip to content

Commit

Permalink
Merge pull request #98 from mmoreram/feature/fixed-versions
Browse files Browse the repository at this point in the history
Updated project for Symfony 3.0
  • Loading branch information
mmoreram committed Dec 7, 2015
2 parents 837c949 + 91e5169 commit 0bde23a
Show file tree
Hide file tree
Showing 79 changed files with 1,028 additions and 968 deletions.
26 changes: 26 additions & 0 deletions .php_cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?php

$config = Symfony\CS\Config\Config::create()
// use SYMFONY_LEVEL:
->level(Symfony\CS\FixerInterface::SYMFONY_LEVEL)
// and extra fixers:
->fixers([
'concat_with_spaces',
'multiline_spaces_before_semicolon',
'short_array_syntax',
'-remove_lines_between_uses',
'-empty_return',
'-phpdoc_var_without_name',
'-phpdoc_to_comment',
]);

if (null === $input->getArgument('path')) {
$config
->finder(
Symfony\CS\Finder\DefaultFinder::create()
->in('.')
->exclude('vendor')
);
}

return $config;
19 changes: 6 additions & 13 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,31 +2,24 @@ language: php

sudo: false

env:
COMPOSER_OPTIONS=""

php:
- 5.4
- 5.5
- 5.6
- hhvm
- 7.0
- hhvm

matrix:
include:
- php: 5.4
env: COMPOSER_OPTIONS="--prefer-lowest"
allow_failures:
- php: 7.0

env:
- SYMFONY_VERSION="~2.3"
- php: 5.4
env: $SYMFONY_VERSION="^2.8.0"
- php: 5.5.9
env: $SYMFONY_VERSION="^3.0.0"

before_install:
- composer require --no-update symfony/monolog-bundle:~2.3
- composer require --no-update symfony/form:~2.3
- composer require --no-update doctrine/orm:~2.3
- composer require --no-update white-october/pagerfanta-bundle:~1.0
- 'if [ "$SYMFONY_VERSION" != "" ]; then composer require --no-update symfony/symfony:${SYMFONY_VERSION}; fi;'

install:
- composer update --prefer-source --no-interaction ${COMPOSER_OPTIONS}
Expand Down
14 changes: 7 additions & 7 deletions Annotation/Abstracts/AbstractResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@
namespace Mmoreram\ControllerExtraBundle\Annotation\Abstracts;

/**
* Class AbstractResponse
* Class AbstractResponse.
*/
abstract class AbstractResponse extends Annotation
{
/**
* @var integer
* @var int
*
* Status
*/
Expand All @@ -30,22 +30,22 @@ abstract class AbstractResponse extends Annotation
*
* Headers
*/
protected $headers = array();
protected $headers = [];

/**
* Get response status
* Get response status.
*
* @return integer Response status
* @return int Response status
*/
public function getStatus()
{
return $this->status;
}

/**
* Get response headers
* Get response headers.
*
* @return integer Response headers
* @return int Response headers
*/
public function getHeaders()
{
Expand Down
4 changes: 2 additions & 2 deletions Annotation/Abstracts/Annotation.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@
use Doctrine\Common\Annotations\Annotation as DoctrineAnnotation;

/**
* Flush annotation driver
* Flush annotation driver.
*
* @Annotation
*/
abstract class Annotation extends DoctrineAnnotation
{
/**
* return value
* return value.
*
* @return string Value
*/
Expand Down
26 changes: 13 additions & 13 deletions Annotation/Entity.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
use Mmoreram\ControllerExtraBundle\Annotation\Abstracts\Annotation;

/**
* Entity annotation driver
* Entity annotation driver.
*
* @Annotation
*/
Expand Down Expand Up @@ -44,7 +44,7 @@ class Entity extends Annotation
public $mapping;

/**
* @var boolean
* @var bool
*
* Mapping fallback
*/
Expand All @@ -55,10 +55,10 @@ class Entity extends Annotation
*
* Setters
*/
public $setters = array();
public $setters = [];

/**
* @var boolean
* @var bool
*
* Persist entity
*/
Expand All @@ -72,7 +72,7 @@ class Entity extends Annotation
public $notFoundException;

/**
* return class
* return class.
*
* @return string Class
*/
Expand All @@ -82,7 +82,7 @@ public function getClass()
}

/**
* return name
* return name.
*
* @return string Name
*/
Expand All @@ -92,7 +92,7 @@ public function getName()
}

/**
* return mapping
* return mapping.
*
* @return array Mapping
*/
Expand All @@ -102,17 +102,17 @@ public function getMapping()
}

/**
* Get MappingFallback
* Get MappingFallback.
*
* @return boolean MappingFallback
* @return bool MappingFallback
*/
public function getMappingFallback()
{
return $this->mappingFallback;
}

/**
* return setters
* return setters.
*
* @return array Setters
*/
Expand All @@ -122,17 +122,17 @@ public function getSetters()
}

/**
* return persist
* return persist.
*
* @return boolean persist
* @return bool persist
*/
public function getPersist()
{
return $this->persist;
}

/**
* return the not found exception
* return the not found exception.
*
* @return array
*/
Expand Down
6 changes: 3 additions & 3 deletions Annotation/Flush.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
use Mmoreram\ControllerExtraBundle\Annotation\Abstracts\Annotation;

/**
* Flush annotation driver
* Flush annotation driver.
*
* @Annotation
*/
Expand All @@ -37,7 +37,7 @@ class Flush extends Annotation
public $entity;

/**
* return manager
* return manager.
*
* @return string Manager
*/
Expand All @@ -47,7 +47,7 @@ public function getManager()
}

/**
* return entity
* return entity.
*
* @return string Entity
*/
Expand Down
14 changes: 7 additions & 7 deletions Annotation/Form.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
use Mmoreram\ControllerExtraBundle\Annotation\Abstracts\Annotation;

/**
* Form annotation driver
* Form annotation driver.
*
* @Annotation
*/
Expand Down Expand Up @@ -44,7 +44,7 @@ class Form extends Annotation
public $entity;

/**
* @var boolean
* @var bool
*
* Handle request
*/
Expand All @@ -59,7 +59,7 @@ class Form extends Annotation
public $validate = false;

/**
* return name
* return name.
*
* @return string Name
*/
Expand All @@ -69,7 +69,7 @@ public function getName()
}

/**
* return class
* return class.
*
* @return string Class
*/
Expand All @@ -79,7 +79,7 @@ public function getClass()
}

/**
* return entity
* return entity.
*
* @return string Entity
*/
Expand All @@ -89,7 +89,7 @@ public function getEntity()
}

/**
* return handle request
* return handle request.
*
* @return string Handle Request
*/
Expand All @@ -99,7 +99,7 @@ public function getHandleRequest()
}

/**
* return validate value
* return validate value.
*
* @return string Validate param name
*/
Expand Down
4 changes: 1 addition & 3 deletions Annotation/Get.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,11 @@

namespace Mmoreram\ControllerExtraBundle\Annotation;


/**
* Get annotation driver
* Get annotation driver.
*
* @Annotation
*/
class Get extends RequestBagAnnotation
{

}
2 changes: 1 addition & 1 deletion Annotation/JsonResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
use Mmoreram\ControllerExtraBundle\Annotation\Abstracts\AbstractResponse;

/**
* JsonResponse annotation driver
* JsonResponse annotation driver.
*
* @Annotation
*/
Expand Down
6 changes: 3 additions & 3 deletions Annotation/Log.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
use Mmoreram\ControllerExtraBundle\Annotation\Abstracts\Annotation;

/**
* Log annotation driver
* Log annotation driver.
*
* @Annotation
*/
Expand Down Expand Up @@ -114,7 +114,7 @@ class Log extends Annotation
public $execute;

/**
* return manager
* return manager.
*
* @return string Manager
*/
Expand All @@ -124,7 +124,7 @@ public function getLevel()
}

/**
* return execution
* return execution.
*
* @return string execution
*/
Expand Down
6 changes: 3 additions & 3 deletions Annotation/ObjectManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
use Mmoreram\ControllerExtraBundle\Annotation\Abstracts\Annotation;

/**
* Class ObjectManager
* Class ObjectManager.
*
* @Annotation
*/
Expand All @@ -37,7 +37,7 @@ class ObjectManager extends Annotation
protected $name;

/**
* Get Class
* Get Class.
*
* @return string Class
*/
Expand All @@ -47,7 +47,7 @@ public function getClass()
}

/**
* return name
* return name.
*
* @return string Name
*/
Expand Down
Loading

0 comments on commit 0bde23a

Please sign in to comment.