Completed
Push — master ( e6c9d7...cc6bd7 )
by Grégoire
12:23
created
src/Twig/GlobalVariables.php 1 patch
Doc Comments   +8 added lines, -3 removed lines patch added patch discarded remove patch
@@ -42,6 +42,7 @@  discard block
 block discarded – undo
42 42
 
43 43
     /**
44 44
      * @param ContainerInterface|Pool $adminPool
45
+     * @param string $mosaicBackground
45 46
      */
46 47
     public function __construct($adminPool, ?string $mosaicBackground = null)
47 48
     {
@@ -78,7 +79,7 @@  discard block
 block discarded – undo
78 79
     /**
79 80
      * @param string $code
80 81
      * @param string $action
81
-     * @param array  $parameters
82
+     * @param string[]  $parameters
82 83
      * @param int    $absolute
83 84
      *
84 85
      * @return string
@@ -93,8 +94,8 @@  discard block
 block discarded – undo
93 94
     /**
94 95
      * @param string $code
95 96
      * @param string $action
96
-     * @param mixed  $object
97
-     * @param array  $parameters
97
+     * @param string  $object
98
+     * @param string[]  $parameters
98 99
      * @param int    $absolute
99 100
      *
100 101
      * @return string
@@ -111,6 +112,10 @@  discard block
 block discarded – undo
111 112
         return $this->mosaicBackground;
112 113
     }
113 114
 
115
+    /**
116
+     * @param string $code
117
+     * @param string $action
118
+     */
114 119
     private function getCodeAction($code, $action): array
115 120
     {
116 121
         if ($pipe = strpos($code, '|')) {
Please login to merge, or discard this patch.
src/Object/Metadata.php 1 patch
Doc Comments   +2 added lines patch added patch discarded remove patch
@@ -47,6 +47,8 @@
 block discarded – undo
47 47
 
48 48
     /**
49 49
      * @param array<string, mixed> $options
50
+     * @param string $description
51
+     * @param string $domain
50 52
      */
51 53
     public function __construct(
52 54
         string $title,
Please login to merge, or discard this patch.
tests/Controller/HelperControllerTest.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -298,6 +298,9 @@
 block discarded – undo
298 298
         $formConfig->getAttribute('target_admin_access_action')->willReturn('list');
299 299
     }
300 300
 
301
+    /**
302
+     * @param string $field
303
+     */
301 304
     private function configureFormConfigComplexPropertyArray($field): void
302 305
     {
303 306
         $form = $this->prophesize(Form::class);
Please login to merge, or discard this patch.
tests/Twig/Extension/SonataAdminExtensionTest.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -2486,6 +2486,9 @@
 block discarded – undo
2486 2486
         return htmlspecialchars(http_build_query($url, '', '&', PHP_QUERY_RFC3986));
2487 2487
     }
2488 2488
 
2489
+    /**
2490
+     * @param string $privateMethod
2491
+     */
2489 2492
     private function getMethodAsPublic($privateMethod): \ReflectionMethod
2490 2493
     {
2491 2494
         $reflection = new \ReflectionMethod('Sonata\AdminBundle\Twig\Extension\SonataAdminExtension', $privateMethod);
Please login to merge, or discard this patch.
src/Admin/BaseFieldDescription.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -441,6 +441,9 @@
 block discarded – undo
441 441
         return $object->{$fieldName};
442 442
     }
443 443
 
444
+    /**
445
+     * @param string $fieldName
446
+     */
444 447
     private function cacheFieldGetter($object, ?string $fieldName, string $method, ?string $getter = null): void
445 448
     {
446 449
         $getterKey = $this->getFieldGetterKey($object, $fieldName);
Please login to merge, or discard this patch.
src/Event/ConfigureEvent.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@
 block discarded – undo
63 63
     }
64 64
 
65 65
     /**
66
-     * @return mixed
66
+     * @return string
67 67
      */
68 68
     public function getType()
69 69
     {
Please login to merge, or discard this patch.
src/Event/PersistenceEvent.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@
 block discarded – undo
63 63
     }
64 64
 
65 65
     /**
66
-     * @return mixed
66
+     * @return string
67 67
      */
68 68
     public function getType()
69 69
     {
Please login to merge, or discard this patch.
src/Show/ShowMapper.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
 
40 40
     /**
41 41
      * @param mixed $name
42
-     * @param mixed $type
42
+     * @param null|string $type
43 43
      *
44 44
      * @throws \RuntimeException
45 45
      *
Please login to merge, or discard this patch.
tests/Datagrid/DatagridMapperTest.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -292,6 +292,10 @@
 block discarded – undo
292 292
         $this->assertTrue($this->datagridMapper->has('baz'));
293 293
     }
294 294
 
295
+    /**
296
+     * @param string $name
297
+     * @param string $label
298
+     */
295 299
     private function getFieldDescriptionMock(?string $name = null, ?string $label = null): BaseFieldDescription
296 300
     {
297 301
         $fieldDescription = $this->getMockForAbstractClass(BaseFieldDescription::class);
Please login to merge, or discard this patch.