@@ -38,7 +38,7 @@ |
||
| 38 | 38 | public function build(ActionConfiguration $configuration) |
| 39 | 39 | { |
| 40 | 40 | if (true !== $this->isFilterFormRequired($configuration)) { |
| 41 | - return null; |
|
| 41 | + return null; |
|
| 42 | 42 | } |
| 43 | 43 | // retrieve the filters from the Action configuration |
| 44 | 44 | $filters = $configuration->getParameter('filters'); |
@@ -40,7 +40,7 @@ |
||
| 40 | 40 | */ |
| 41 | 41 | protected function render($template, array $context = []) |
| 42 | 42 | { |
| 43 | - $content = $this |
|
| 43 | + $content = $this |
|
| 44 | 44 | ->twig |
| 45 | 45 | ->render($template, $context) |
| 46 | 46 | ; |
@@ -53,7 +53,7 @@ discard block |
||
| 53 | 53 | } |
| 54 | 54 | |
| 55 | 55 | /** |
| 56 | - * @return array |
|
| 56 | + * @return Twig_SimpleFunction[] |
|
| 57 | 57 | */ |
| 58 | 58 | public function getFunctions() |
| 59 | 59 | { |
@@ -67,7 +67,7 @@ discard block |
||
| 67 | 67 | } |
| 68 | 68 | |
| 69 | 69 | /** |
| 70 | - * @return array |
|
| 70 | + * @return Twig_SimpleFilter[] |
|
| 71 | 71 | */ |
| 72 | 72 | public function getFilters() |
| 73 | 73 | { |
@@ -143,7 +143,7 @@ |
||
| 143 | 143 | |
| 144 | 144 | if ($isPaginationRequired) { |
| 145 | 145 | // retrieve the page parameter value |
| 146 | - $this->page = (int)$request->get('page', 1); |
|
| 146 | + $this->page = (int) $request->get('page', 1); |
|
| 147 | 147 | } |
| 148 | 148 | |
| 149 | 149 | if (null !== $request->get('maxPerPage')) { |
@@ -428,7 +428,7 @@ |
||
| 428 | 428 | |
| 429 | 429 | private function getRouteDefaultNormalizer() |
| 430 | 430 | { |
| 431 | - return function (Options $options, $value) { |
|
| 431 | + return function(Options $options, $value) { |
|
| 432 | 432 | if (!is_array($value)) { |
| 433 | 433 | $value = []; |
| 434 | 434 | } |
@@ -18,7 +18,7 @@ |
||
| 18 | 18 | 'copy' => [], |
| 19 | 19 | ]; |
| 20 | 20 | $eventDispatcher = new EventDispatcher(); |
| 21 | -$eventDispatcher->addListener(NotificationEvent::NAME, function (NotificationEvent $event) { |
|
| 21 | +$eventDispatcher->addListener(NotificationEvent::NAME, function(NotificationEvent $event) { |
|
| 22 | 22 | echo $event->getMessage()."\n"; |
| 23 | 23 | }); |
| 24 | 24 | |
@@ -58,8 +58,8 @@ |
||
| 58 | 58 | /** |
| 59 | 59 | * View constructor. |
| 60 | 60 | * |
| 61 | - * @param $actionName |
|
| 62 | - * @param $adminName |
|
| 61 | + * @param string $actionName |
|
| 62 | + * @param string $adminName |
|
| 63 | 63 | * @param ActionConfiguration $configuration |
| 64 | 64 | * @param AdminConfiguration $adminConfiguration |
| 65 | 65 | * @param array $fields |
@@ -57,7 +57,7 @@ |
||
| 57 | 57 | $resolver |
| 58 | 58 | ->setRequired('actions') |
| 59 | 59 | ->setAllowedTypes('actions', 'array') |
| 60 | - ->setNormalizer('actions', function (Options $options, $actions) { |
|
| 60 | + ->setNormalizer('actions', function(Options $options, $actions) { |
|
| 61 | 61 | |
| 62 | 62 | $normalizedActions = []; |
| 63 | 63 | |
@@ -3,7 +3,6 @@ |
||
| 3 | 3 | namespace LAG\AdminBundle\Action\Configuration; |
| 4 | 4 | |
| 5 | 5 | use Exception; |
| 6 | -use LAG\AdminBundle\Admin\AdminInterface; |
|
| 7 | 6 | |
| 8 | 7 | class ConfigurationException extends Exception |
| 9 | 8 | { |