Completed
Pull Request — master (#90)
by Arnaud
03:18
created
src/LAG/AdminBundle/Action/Configuration/ActionConfiguration.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
      * ActionConfiguration constructor.
37 37
      *
38 38
      * @param string              $actionName
39
-     * @param AdminInterface|null $admin
39
+     * @param AdminInterface $admin
40 40
      */
41 41
     public function __construct($actionName, AdminInterface $admin)
42 42
     {
Please login to merge, or discard this patch.
src/LAG/AdminBundle/Field/Field/ActionCollection.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
      *
29 29
      * @param mixed $value Value to render
30 30
      *
31
-     * @return mixed
31
+     * @return string
32 32
      */
33 33
     public function render($value)
34 34
     {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
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
                 
Please login to merge, or discard this patch.
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/DataProvider/Loader/EntityLoader.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -80,8 +80,7 @@
 block discarded – undo
80 80
             $offset = null;
81 81
             // load entities from the DataProvider using a pagination system
82 82
             $entities = $this->loadPaginate($criteria, $orderBy, $limit, $offset);
83
-        }
84
-        else {
83
+        } else {
85 84
             // if no pagination is required (edit action for example)
86 85
             $entities = $this->loadWithoutPagination($criteria, $orderBy);
87 86
         }
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.