Completed
Pull Request — master (#5218)
by Sullivan
07:13 queued 03:16
created
src/Admin/Pool.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -295,7 +295,7 @@
 block discarded – undo
295 295
     }
296 296
 
297 297
     /**
298
-     * @return array
298
+     * @return string[]
299 299
      */
300 300
     public function getAdminServiceIds()
301 301
     {
Please login to merge, or discard this patch.
tests/Admin/PoolTest.php 1 patch
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -293,7 +293,7 @@  discard block
 block discarded – undo
293 293
     }
294 294
 
295 295
     /**
296
-     * @return Symfony\Component\DependencyInjection\ContainerInterface - the mock of container interface
296
+     * @return ContainerInterface - the mock of container interface
297 297
      */
298 298
     private function getContainer()
299 299
     {
@@ -307,6 +307,9 @@  discard block
 block discarded – undo
307 307
         return $containerMock;
308 308
     }
309 309
 
310
+    /**
311
+     * @param string $serviceId
312
+     */
310 313
     private function getItemArray($serviceId)
311 314
     {
312 315
         return [
Please login to merge, or discard this patch.
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.
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.