Completed
Pull Request — master (#5244)
by Sullivan
10:29 queued 05:01
created
src/Twig/Extension/SonataAdminExtension.php 2 patches
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
     /**
127 127
      * render a list element from the FieldDescription.
128 128
      *
129
-     * @param mixed $object
129
+     * @param \stdClass $object
130 130
      * @param array $params
131 131
      *
132 132
      * @return string
@@ -222,7 +222,7 @@  discard block
 block discarded – undo
222 222
     /**
223 223
      * render a view element.
224 224
      *
225
-     * @param mixed $object
225
+     * @param \stdClass $object
226 226
      *
227 227
      * @return string
228 228
      */
@@ -359,7 +359,7 @@  discard block
 block discarded – undo
359 359
     /**
360 360
      * Get the identifiers as a string that is safe to use in a url.
361 361
      *
362
-     * @param object $model
362
+     * @param \stdClass $model
363 363
      *
364 364
      * @return string string representation of the id that is safe to use in a url
365 365
      */
@@ -381,7 +381,7 @@  discard block
 block discarded – undo
381 381
     }
382 382
 
383 383
     /**
384
-     * @return string|bool
384
+     * @return string|false
385 385
      */
386 386
     public function getXEditableType($type)
387 387
     {
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,6 @@
 block discarded – undo
22 22
 use Symfony\Component\Translation\TranslatorInterface;
23 23
 use Twig\Environment;
24 24
 use Twig\Extension\AbstractExtension;
25
-use Twig\Template;
26 25
 use Twig\TemplateWrapper;
27 26
 use Twig\TwigFilter;
28 27
 use Twig\TwigFunction;
Please login to merge, or discard this patch.
src/Twig/GlobalVariables.php 1 patch
Doc Comments   +5 added lines, -3 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
     /**
68 68
      * @param string $code
69 69
      * @param string $action
70
-     * @param array  $parameters
70
+     * @param string[]  $parameters
71 71
      * @param int    $absolute
72 72
      *
73 73
      * @return string
@@ -82,8 +82,8 @@  discard block
 block discarded – undo
82 82
     /**
83 83
      * @param string $code
84 84
      * @param string $action
85
-     * @param mixed  $object
86
-     * @param array  $parameters
85
+     * @param string  $object
86
+     * @param string[]  $parameters
87 87
      * @param int    $absolute
88 88
      *
89 89
      * @return string
@@ -96,6 +96,8 @@  discard block
 block discarded – undo
96 96
     }
97 97
 
98 98
     /**
99
+     * @param string $code
100
+     * @param string $action
99 101
      * @return array
100 102
      */
101 103
     private function getCodeAction($code, $action)
Please login to merge, or discard this patch.
tests/Controller/HelperControllerTest.php 1 patch
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -581,6 +581,9 @@  discard block
 block discarded – undo
581 581
         return $datagrid;
582 582
     }
583 583
 
584
+    /**
585
+     * @param string $field
586
+     */
584 587
     private function configureFormConfig($field, $disabled = false): void
585 588
     {
586 589
         $form = $this->prophesize(Form::class);
@@ -600,6 +603,9 @@  discard block
 block discarded – undo
600 603
         $formConfig->getAttribute('target_admin_access_action')->willReturn('list');
601 604
     }
602 605
 
606
+    /**
607
+     * @param string $field
608
+     */
603 609
     private function configureFormConfigComplexProperty($field): void
604 610
     {
605 611
         $form = $this->prophesize(Form::class);
@@ -619,6 +625,9 @@  discard block
 block discarded – undo
619 625
         $formConfig->getAttribute('target_admin_access_action')->willReturn('list');
620 626
     }
621 627
 
628
+    /**
629
+     * @param string $field
630
+     */
622 631
     private function configureFormConfigComplexPropertyArray($field): void
623 632
     {
624 633
         $form = $this->prophesize(Form::class);
Please login to merge, or discard this patch.
tests/Action/RetrieveAutocompleteItemsActionTest.php 1 patch
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -581,6 +581,9 @@  discard block
 block discarded – undo
581 581
         return $datagrid;
582 582
     }
583 583
 
584
+    /**
585
+     * @param string $field
586
+     */
584 587
     private function configureFormConfig($field, $disabled = false): void
585 588
     {
586 589
         $form = $this->prophesize(Form::class);
@@ -600,6 +603,9 @@  discard block
 block discarded – undo
600 603
         $formConfig->getAttribute('target_admin_access_action')->willReturn('list');
601 604
     }
602 605
 
606
+    /**
607
+     * @param string $field
608
+     */
603 609
     private function configureFormConfigComplexProperty($field): void
604 610
     {
605 611
         $form = $this->prophesize(Form::class);
@@ -619,6 +625,9 @@  discard block
 block discarded – undo
619 625
         $formConfig->getAttribute('target_admin_access_action')->willReturn('list');
620 626
     }
621 627
 
628
+    /**
629
+     * @param string $field
630
+     */
622 631
     private function configureFormConfigComplexPropertyArray($field): void
623 632
     {
624 633
         $form = $this->prophesize(Form::class);
Please login to merge, or discard this patch.
src/Maker/AdminMaker.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -68,6 +68,9 @@
 block discarded – undo
68 68
      */
69 69
     private $modelManager;
70 70
 
71
+    /**
72
+     * @param string $projectDirectory
73
+     */
71 74
     public function __construct($projectDirectory, array $modelManagers = [])
72 75
     {
73 76
         $this->projectDirectory = $projectDirectory;
Please login to merge, or discard this patch.