Completed
Pull Request — master (#90)
by Arnaud
12:13 queued 03:07
created
src/LAG/AdminBundle/Filter/Factory/FilterFormBuilder.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
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');
Please login to merge, or discard this patch.
src/LAG/AdminBundle/Form/Type/ListItemType.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -13,11 +13,11 @@
 block discarded – undo
13 13
     {
14 14
         $builder
15 15
             ->add('id', CheckboxType::class)
16
-            ->addModelTransformer(new CallbackTransformer(function ($value) {
16
+            ->addModelTransformer(new CallbackTransformer(function($value) {
17 17
                 return $value->getId();
18 18
                 var_dump($value);
19 19
                 die;
20
-            }, function () {
20
+            }, function() {
21 21
                 
22 22
             }))
23 23
         ;
Please login to merge, or discard this patch.
src/LAG/AdminBundle/Action/Responder/AbstractResponder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
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
         ;
Please login to merge, or discard this patch.
src/LAG/AdminBundle/Twig/AdminExtension.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
67 67
     }
68 68
 
69 69
     /**
70
-     * @return array
70
+     * @return Twig_SimpleFilter[]
71 71
      */
72 72
     public function getFilters()
73 73
     {
Please login to merge, or discard this patch.
src/LAG/AdminBundle/Admin/Request/LoadParameterExtractor.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -143,7 +143,7 @@
 block discarded – undo
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')) {
Please login to merge, or discard this patch.
src/LAG/AdminBundle/Action/Configuration/ActionConfiguration.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -428,7 +428,7 @@
 block discarded – undo
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
             }
Please login to merge, or discard this patch.
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
      * ActionConfiguration constructor.
43 43
      *
44 44
      * @param string             $actionName
45
-     * @param                    $adminName
45
+     * @param                    string $adminName
46 46
      * @param AdminConfiguration $adminConfiguration
47 47
      */
48 48
     public function __construct($actionName, $adminName, AdminConfiguration $adminConfiguration)
Please login to merge, or discard this patch.
src/LAG/AdminBundle/DataProvider/Loader/EntityLoader.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -86,8 +86,7 @@
 block discarded – undo
86 86
         if (false !== $this->isPaginationRequired) {
87 87
             // load entities from the DataProvider using a pagination system
88 88
             $entities = $this->loadPaginate($criteria, $orderBy, $limit, $offset);
89
-        }
90
-        else {
89
+        } else {
91 90
             // if no pagination is required (edit action for example)
92 91
             $entities = $this->loadWithoutPagination($criteria, $orderBy);
93 92
         }
Please login to merge, or discard this patch.
bin/sam.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/LAG/AdminBundle/View/View.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -58,8 +58,8 @@
 block discarded – undo
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
Please login to merge, or discard this patch.