Completed
Push — master ( 1a3b07...20b6cc )
by Vincent
02:38
created
src/Security/Handler/SecurityHandlerInterface.php 1 patch
Doc Comments   +2 added lines patch added patch discarded remove patch
@@ -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/Controller/CRUDController.php 1 patch
Doc Comments   +7 added lines, -2 removed lines patch added patch discarded remove patch
@@ -59,6 +59,9 @@  discard block
 block discarded – undo
59 59
      */
60 60
     private $templateRegistry;
61 61
 
62
+    /**
63
+     * @param ContainerInterface $container
64
+     */
62 65
     public function setContainer(?ContainerInterface $container = null): void
63 66
     {
64 67
         $this->container = $container;
@@ -71,6 +74,7 @@  discard block
 block discarded – undo
71 74
      *
72 75
      * @param string               $view       The view name
73 76
      * @param array<string, mixed> $parameters An array of parameters to pass to the view
77
+     * @param Response $response
74 78
      *
75 79
      * @return Response A Response instance
76 80
      */
@@ -713,8 +717,8 @@  discard block
 block discarded – undo
713 717
     /**
714 718
      * Compare history revisions of object.
715 719
      *
716
-     * @param int|string|null $baseRevision
717
-     * @param int|string|null $compareRevision
720
+     * @param null|integer $baseRevision
721
+     * @param null|integer $compareRevision
718 722
      *
719 723
      * @throws AccessDeniedException If access is not granted
720 724
      * @throws NotFoundHttpException If the object or revision does not exist or the audit reader is not available
@@ -1410,6 +1414,7 @@  discard block
 block discarded – undo
1410 1414
 
1411 1415
     /**
1412 1416
      * Sets the admin form theme to form view. Used for compatibility between Symfony versions.
1417
+     * @param string[] $theme
1413 1418
      */
1414 1419
     private function setFormTheme(FormView $formView, ?array $theme = null): void
1415 1420
     {
Please login to merge, or discard this patch.
tests/Show/ShowMapperTest.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -586,6 +586,10 @@
 block discarded – undo
586 586
         $this->admin->setShowBuilder(new ShowBuilder());
587 587
     }
588 588
 
589
+    /**
590
+     * @param string $name
591
+     * @param string $label
592
+     */
589 593
     private function getFieldDescriptionMock(?string $name = null, ?string $label = null): BaseFieldDescription
590 594
     {
591 595
         $fieldDescription = $this->getMockForAbstractClass(BaseFieldDescription::class);
Please login to merge, or discard this patch.
src/Twig/Extension/SonataAdminExtension.php 1 patch
Doc Comments   +6 added lines, -5 removed lines patch added patch discarded remove patch
@@ -182,7 +182,7 @@  discard block
 block discarded – undo
182 182
     /**
183 183
      * render a view element.
184 184
      *
185
-     * @param object $object
185
+     * @param \stdClass $object
186 186
      *
187 187
      * @return string
188 188
      */
@@ -221,8 +221,8 @@  discard block
 block discarded – undo
221 221
     /**
222 222
      * render a compared view element.
223 223
      *
224
-     * @param mixed $baseObject
225
-     * @param mixed $compareObject
224
+     * @param \stdClass $baseObject
225
+     * @param \stdClass $compareObject
226 226
      *
227 227
      * @return string
228 228
      */
@@ -343,7 +343,8 @@  discard block
 block discarded – undo
343 343
     /**
344 344
      * Get the identifiers as a string that is safe to use in a url.
345 345
      *
346
-     * @param object $model
346
+     * @param \stdClass $model
347
+     * @param AdminInterface $admin
347 348
      *
348 349
      * @return string string representation of the id that is safe to use in a url
349 350
      */
@@ -365,7 +366,7 @@  discard block
 block discarded – undo
365 366
     }
366 367
 
367 368
     /**
368
-     * @return string|bool
369
+     * @return string|false
369 370
      */
370 371
     public function getXEditableType($type)
371 372
     {
Please login to merge, or discard this patch.
tests/Datagrid/ListMapperTest.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -414,6 +414,10 @@
 block discarded – undo
414 414
         );
415 415
     }
416 416
 
417
+    /**
418
+     * @param string $name
419
+     * @param string $label
420
+     */
417 421
     private function getFieldDescriptionMock(?string $name = null, ?string $label = null): BaseFieldDescription
418 422
     {
419 423
         $fieldDescription = $this->getMockForAbstractClass(BaseFieldDescription::class);
Please login to merge, or discard this patch.
src/Admin/AbstractAdmin.php 2 patches
Doc Comments   +7 added lines patch added patch discarded remove patch
@@ -1236,6 +1236,9 @@  discard block
 block discarded – undo
1236 1236
         return $this->baseControllerName;
1237 1237
     }
1238 1238
 
1239
+    /**
1240
+     * @param string $label
1241
+     */
1239 1242
     public function setLabel(?string $label): void
1240 1243
     {
1241 1244
         $this->label = $label;
@@ -1877,6 +1880,9 @@  discard block
 block discarded – undo
1877 1880
         return $this->managerType;
1878 1881
     }
1879 1882
 
1883
+    /**
1884
+     * @param string $type
1885
+     */
1880 1886
     public function setManagerType(?string $type): void
1881 1887
     {
1882 1888
         $this->managerType = $type;
@@ -2311,6 +2317,7 @@  discard block
 block discarded – undo
2311 2317
 
2312 2318
     /**
2313 2319
      * {@inheritdoc}
2320
+     * @param boolean $isShown
2314 2321
      */
2315 2322
     final public function showMosaicButton($isShown): void
2316 2323
     {
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,6 @@
 block discarded – undo
45 45
 use Sonata\Form\Validator\Constraints\InlineConstraint;
46 46
 use Sonata\Form\Validator\ErrorElement;
47 47
 use Symfony\Component\Form\Extension\Core\Type\HiddenType;
48
-use Symfony\Component\Form\Form;
49 48
 use Symfony\Component\Form\FormBuilderInterface;
50 49
 use Symfony\Component\Form\FormEvent;
51 50
 use Symfony\Component\Form\FormEvents;
Please login to merge, or discard this patch.
src/Route/RouteCollection.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -62,6 +62,9 @@
 block discarded – undo
62 62
         $this->baseControllerName = $baseControllerName;
63 63
     }
64 64
 
65
+    /**
66
+     * @param string $pattern
67
+     */
65 68
     public function add(
66 69
         string $name,
67 70
         ?string $pattern = null,
Please login to merge, or discard this patch.
tests/Fixtures/Admin/CommentAdmin.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -18,6 +18,9 @@
 block discarded – undo
18 18
 
19 19
 class CommentAdmin extends AbstractAdmin
20 20
 {
21
+    /**
22
+     * @param string $label
23
+     */
21 24
     public function setClassnameLabel($label): void
22 25
     {
23 26
         $this->classnameLabel = $label;
Please login to merge, or discard this patch.
src/Admin/FieldDescriptionInterface.php 1 patch
Doc Comments   +15 added lines patch added patch discarded remove patch
@@ -20,6 +20,7 @@  discard block
 block discarded – undo
20 20
 {
21 21
     /**
22 22
      * set the field name.
23
+     * @return void
23 24
      */
24 25
     public function setFieldName(?string $fieldName): void;
25 26
 
@@ -32,6 +33,7 @@  discard block
 block discarded – undo
32 33
 
33 34
     /**
34 35
      * Set the name.
36
+     * @return void
35 37
      */
36 38
     public function setName(?string $name): void;
37 39
 
@@ -55,6 +57,7 @@  discard block
 block discarded – undo
55 57
      * Define an option, an option is has a name and a value.
56 58
      *
57 59
      * @param mixed $value
60
+     * @return void
58 61
      */
59 62
     public function setOption(string $name, $value): void;
60 63
 
@@ -66,6 +69,7 @@  discard block
 block discarded – undo
66 69
      * Then the value are copied across to the related property value.
67 70
      *
68 71
      * @param array<string, mixed> $options
72
+     * @return void
69 73
      */
70 74
     public function setOptions(array $options): void;
71 75
 
@@ -78,6 +82,8 @@  discard block
 block discarded – undo
78 82
 
79 83
     /**
80 84
      * Sets the template used to render the field.
85
+     * @param string $template
86
+     * @return void
81 87
      */
82 88
     public function setTemplate(?string $template): void;
83 89
 
@@ -91,16 +97,19 @@  discard block
 block discarded – undo
91 97
     /**
92 98
      * Sets the field type. The type is a mandatory field as it's used to select the correct template
93 99
      * or the logic associated to the current FieldDescription object.
100
+     * @return void
94 101
      */
95 102
     public function setType(?string $type): void;
96 103
 
97 104
     /**
98 105
      * Returns the type.
106
+     * @return string
99 107
      */
100 108
     public function getType(): ?string;
101 109
 
102 110
     /**
103 111
      * set the parent Admin (only used in nested admin).
112
+     * @return void
104 113
      */
105 114
     public function setParent(AdminInterface $parent);
106 115
 
@@ -123,6 +132,7 @@  discard block
 block discarded – undo
123 132
 
124 133
     /**
125 134
      * Returns the related Target object model.
135
+     * @return string
126 136
      */
127 137
     public function getTargetModel(): ?string;
128 138
 
@@ -154,6 +164,7 @@  discard block
 block discarded – undo
154 164
      * set the association admin instance (only used if the field is linked to an Admin).
155 165
      *
156 166
      * @param AdminInterface $associationAdmin the associated admin
167
+     * @return void
157 168
      */
158 169
     public function setAssociationAdmin(AdminInterface $associationAdmin);
159 170
 
@@ -178,6 +189,7 @@  discard block
 block discarded – undo
178 189
 
179 190
     /**
180 191
      * set the admin class linked to this FieldDescription.
192
+     * @return void
181 193
      */
182 194
     public function setAdmin(AdminInterface $admin);
183 195
 
@@ -192,11 +204,13 @@  discard block
 block discarded – undo
192 204
      * merge option values related to the provided option name.
193 205
      *
194 206
      * @throws \RuntimeException
207
+     * @return void
195 208
      */
196 209
     public function mergeOption(string $name, array $options = []): void;
197 210
 
198 211
     /**
199 212
      * merge options values.
213
+     * @return void
200 214
      */
201 215
     public function mergeOptions(array $options = []): void;
202 216
 
@@ -204,6 +218,7 @@  discard block
 block discarded – undo
204 218
      * set the original mapping type (only used if the field is linked to an entity).
205 219
      *
206 220
      * @param string|int $mappingType
221
+     * @return void
207 222
      */
208 223
     public function setMappingType($mappingType);
209 224
 
Please login to merge, or discard this patch.