Completed
Push — master ( 46c3a0...a94e83 )
by Grégoire
13s queued 11s
created
tests/Event/AdminEventExtensionTest.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
     /**
51 51
      * @param $type
52 52
      *
53
-     * @return callable
53
+     * @return \Closure
54 54
      */
55 55
     public function getConfigureEventClosure($type)
56 56
     {
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
     /**
71 71
      * @param $type
72 72
      *
73
-     * @return callable
73
+     * @return \Closure
74 74
      */
75 75
     public function getConfigurePersistenceClosure($type)
76 76
     {
Please login to merge, or discard this patch.
src/Annotation/Admin.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -165,6 +165,7 @@
 block discarded – undo
165 165
 
166 166
     /**
167 167
      * Set group and label from class name it not set.
168
+     * @param string $name
168 169
      */
169 170
     private function generateFallback($name): void
170 171
     {
Please login to merge, or discard this patch.
src/Twig/Extension/SonataAdminExtension.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -164,7 +164,7 @@  discard block
 block discarded – undo
164 164
     /**
165 165
      * render a list element from the FieldDescription.
166 166
      *
167
-     * @param object $object
167
+     * @param \stdClass $object
168 168
      * @param array  $params
169 169
      *
170 170
      * @return string
@@ -245,7 +245,7 @@  discard block
 block discarded – undo
245 245
     /**
246 246
      * render a view element.
247 247
      *
248
-     * @param object $object
248
+     * @param \stdClass $object
249 249
      *
250 250
      * @return string
251 251
      */
@@ -382,7 +382,7 @@  discard block
 block discarded – undo
382 382
     /**
383 383
      * Get the identifiers as a string that is safe to use in a url.
384 384
      *
385
-     * @param object $model
385
+     * @param \stdClass $model
386 386
      *
387 387
      * @return string string representation of the id that is safe to use in a url
388 388
      */
@@ -404,7 +404,7 @@  discard block
 block discarded – undo
404 404
     }
405 405
 
406 406
     /**
407
-     * @return string|bool
407
+     * @return string|false
408 408
      */
409 409
     public function getXEditableType($type)
410 410
     {
Please login to merge, or discard this patch.
src/Twig/GlobalVariables.php 1 patch
Doc Comments   +8 added lines, -3 removed lines patch added patch discarded remove patch
@@ -44,6 +44,7 @@  discard block
 block discarded – undo
44 44
 
45 45
     /**
46 46
      * @param ContainerInterface|Pool $adminPool
47
+     * @param string $mosaicBackground
47 48
      */
48 49
     public function __construct($adminPool, ?string $mosaicBackground = null)
49 50
     {
@@ -80,7 +81,7 @@  discard block
 block discarded – undo
80 81
     /**
81 82
      * @param string $code
82 83
      * @param string $action
83
-     * @param array  $parameters
84
+     * @param string[]  $parameters
84 85
      * @param int    $absolute
85 86
      *
86 87
      * @return string
@@ -95,8 +96,8 @@  discard block
 block discarded – undo
95 96
     /**
96 97
      * @param string $code
97 98
      * @param string $action
98
-     * @param object $object
99
-     * @param array  $parameters
99
+     * @param string $object
100
+     * @param string[]  $parameters
100 101
      * @param int    $absolute
101 102
      *
102 103
      * @return string
@@ -113,6 +114,10 @@  discard block
 block discarded – undo
113 114
         return $this->mosaicBackground;
114 115
     }
115 116
 
117
+    /**
118
+     * @param string $code
119
+     * @param string $action
120
+     */
116 121
     private function getCodeAction($code, $action): array
117 122
     {
118 123
         if ($pipe = strpos($code, '|')) {
Please login to merge, or discard this patch.
src/Admin/AbstractAdmin.php 1 patch
Doc Comments   +10 added lines, -1 removed lines patch added patch discarded remove patch
@@ -949,6 +949,7 @@  discard block
 block discarded – undo
949 949
 
950 950
     /**
951 951
      * NEXT_MAJOR: remove this method.
952
+     * @param string $subClass
952 953
      */
953 954
     public function addSubClass($subClass): void
954 955
     {
@@ -1104,6 +1105,9 @@  discard block
 block discarded – undo
1104 1105
         return $this->routeGenerator->hasAdminRoute($this, $name);
1105 1106
     }
1106 1107
 
1108
+    /**
1109
+     * @param string $adminCode
1110
+     */
1107 1111
     public function isCurrentRoute(string $name, ?string $adminCode = null): bool
1108 1112
     {
1109 1113
         if (!$this->hasRequest()) {
@@ -2130,7 +2134,7 @@  discard block
 block discarded – undo
2130 2134
      *
2131 2135
      * @param string $context
2132 2136
      *
2133
-     * @return array
2137
+     * @return string[]
2134 2138
      */
2135 2139
     public function getPermissionsShow($context)
2136 2140
     {
@@ -2532,6 +2536,7 @@  discard block
 block discarded – undo
2532 2536
 
2533 2537
     /**
2534 2538
      * {@inheritdoc}
2539
+     * @param boolean $isShown
2535 2540
      */
2536 2541
     final public function showMosaicButton($isShown): void
2537 2542
     {
@@ -2648,6 +2653,9 @@  discard block
 block discarded – undo
2648 2653
     {
2649 2654
     }
2650 2655
 
2656
+    /**
2657
+     * @param string $action
2658
+     */
2651 2659
     protected function configureActionButtons($buttonList, $action, $object = null)
2652 2660
     {
2653 2661
         return $buttonList;
@@ -2669,6 +2677,7 @@  discard block
 block discarded – undo
2669 2677
      * NEXT_MAJOR: remove this method.
2670 2678
      *
2671 2679
      * @deprecated Use configureTabMenu instead
2680
+     * @param string $action
2672 2681
      */
2673 2682
     protected function configureSideMenu(MenuItemInterface $menu, $action, AdminInterface $childAdmin = null)
2674 2683
     {
Please login to merge, or discard this patch.
src/Security/Handler/SecurityHandlerInterface.php 1 patch
Doc Comments   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
 interface SecurityHandlerInterface
22 22
 {
23 23
     /**
24
-     * @param string|array $attributes
24
+     * @param string $attributes
25 25
      * @param mixed|null   $object
26 26
      *
27 27
      * @return bool
@@ -44,6 +44,7 @@  discard block
 block discarded – undo
44 44
      * Create object security, fe. make the current user owner of the object.
45 45
      *
46 46
      * @param object $object
47
+     * @return void
47 48
      */
48 49
     public function createObjectSecurity(AdminInterface $admin, $object);
49 50
 
@@ -51,6 +52,7 @@  discard block
 block discarded – undo
51 52
      * Remove object security.
52 53
      *
53 54
      * @param object $object
55
+     * @return void
54 56
      */
55 57
     public function deleteObjectSecurity(AdminInterface $admin, $object);
56 58
 }
Please login to merge, or discard this patch.
src/Block/AdminSearchBlockService.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
44 44
     /**
45 45
      * NEXT_MAJOR: Remove `$templating` argument.
46 46
      *
47
-     * @param Environment|string $twigOrName
47
+     * @param string $twigOrName
48 48
      */
49 49
     public function __construct($twigOrName, ?EngineInterface $templating, Pool $pool, SearchHandler $searchHandler)
50 50
     {
Please login to merge, or discard this patch.