Completed
Push — master ( a4094f...b681a2 )
by Grégoire
16s queued 12s
created
tests/Fixtures/Admin/PostAdmin.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -19,6 +19,9 @@
 block discarded – undo
19 19
 {
20 20
     protected $metadataClass;
21 21
 
22
+    /**
23
+     * @param string $associationMapping
24
+     */
22 25
     public function setParentAssociationMapping($associationMapping): void
23 26
     {
24 27
         $this->parentAssociationMapping = $associationMapping;
Please login to merge, or discard this patch.
src/Form/ChoiceList/ModelChoiceLoader.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -65,6 +65,7 @@
 block discarded – undo
65 65
      * @param string|null $property
66 66
      * @param mixed|null  $query
67 67
      * @param array       $choices
68
+     * @param PropertyAccessorInterface $propertyAccessor
68 69
      */
69 70
     public function __construct(
70 71
         ModelManagerInterface $modelManager,
Please login to merge, or discard this patch.
src/Util/AdminObjectAclData.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -80,6 +80,7 @@
 block discarded – undo
80 80
     /**
81 81
      * @param object $object
82 82
      * @param string $maskBuilderClass
83
+     * @param \Traversable $aclRoles
83 84
      */
84 85
     public function __construct(
85 86
         AdminInterface $admin,
Please login to merge, or discard this patch.
src/Admin/AbstractAdmin.php 1 patch
Doc Comments   +7 added lines, -1 removed lines patch added patch discarded remove patch
@@ -965,6 +965,7 @@  discard block
 block discarded – undo
965 965
 
966 966
     /**
967 967
      * NEXT_MAJOR: remove this method.
968
+     * @param string $subClass
968 969
      */
969 970
     public function addSubClass($subClass): void
970 971
     {
@@ -1120,6 +1121,9 @@  discard block
 block discarded – undo
1120 1121
         return $this->routeGenerator->hasAdminRoute($this, $name);
1121 1122
     }
1122 1123
 
1124
+    /**
1125
+     * @param string $adminCode
1126
+     */
1123 1127
     public function isCurrentRoute(string $name, ?string $adminCode = null): bool
1124 1128
     {
1125 1129
         if (!$this->hasRequest()) {
@@ -2186,7 +2190,7 @@  discard block
 block discarded – undo
2186 2190
      *
2187 2191
      * @param string $context
2188 2192
      *
2189
-     * @return array
2193
+     * @return string[]
2190 2194
      */
2191 2195
     public function getPermissionsShow($context)
2192 2196
     {
@@ -2583,6 +2587,7 @@  discard block
 block discarded – undo
2583 2587
 
2584 2588
     /**
2585 2589
      * {@inheritdoc}
2590
+     * @param boolean $isShown
2586 2591
      */
2587 2592
     final public function showMosaicButton($isShown): void
2588 2593
     {
@@ -2719,6 +2724,7 @@  discard block
 block discarded – undo
2719 2724
      * NEXT_MAJOR: remove this method.
2720 2725
      *
2721 2726
      * @deprecated Use configureTabMenu instead
2727
+     * @param string $action
2722 2728
      */
2723 2729
     protected function configureSideMenu(ItemInterface $menu, $action, ?AdminInterface $childAdmin = null)
2724 2730
     {
Please login to merge, or discard this patch.
src/Admin/AdminInterface.php 1 patch
Doc Comments   +79 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,6 +35,9 @@  discard block
 block discarded – undo
35 35
  */
36 36
 interface AdminInterface extends AccessRegistryInterface, FieldDescriptionRegistryInterface, LifecycleHookProviderInterface, MenuBuilderInterface, ParentAdminInterface, UrlGeneratorInterface
37 37
 {
38
+    /**
39
+     * @return void
40
+     */
38 41
     public function setMenuFactory(MenuFactoryInterface $menuFactory);
39 42
 
40 43
     /**
@@ -42,8 +45,14 @@  discard block
 block discarded – undo
42 45
      */
43 46
     public function getMenuFactory();
44 47
 
48
+    /**
49
+     * @return void
50
+     */
45 51
     public function setFormContractor(FormContractorInterface $formContractor);
46 52
 
53
+    /**
54
+     * @return void
55
+     */
47 56
     public function setListBuilder(ListBuilderInterface $listBuilder);
48 57
 
49 58
     /**
@@ -51,6 +60,9 @@  discard block
 block discarded – undo
51 60
      */
52 61
     public function getListBuilder();
53 62
 
63
+    /**
64
+     * @return void
65
+     */
54 66
     public function setDatagridBuilder(DatagridBuilderInterface $datagridBuilder);
55 67
 
56 68
     /**
@@ -58,6 +70,9 @@  discard block
 block discarded – undo
58 70
      */
59 71
     public function getDatagridBuilder();
60 72
 
73
+    /**
74
+     * @return void
75
+     */
61 76
     public function setTranslator(TranslatorInterface $translator);
62 77
 
63 78
     /**
@@ -65,8 +80,14 @@  discard block
 block discarded – undo
65 80
      */
66 81
     public function getTranslator();
67 82
 
83
+    /**
84
+     * @return void
85
+     */
68 86
     public function setRequest(Request $request);
69 87
 
88
+    /**
89
+     * @return void
90
+     */
70 91
     public function setConfigurationPool(Pool $pool);
71 92
 
72 93
     /**
@@ -79,6 +100,9 @@  discard block
 block discarded – undo
79 100
      */
80 101
     public function getClass();
81 102
 
103
+    /**
104
+     * @return void
105
+     */
82 106
     public function attachAdminClass(FieldDescriptionInterface $fieldDescription);
83 107
 
84 108
     /**
@@ -90,6 +114,7 @@  discard block
 block discarded – undo
90 114
      * Set base controller name.
91 115
      *
92 116
      * @param string $baseControllerName
117
+     * @return void
93 118
      */
94 119
     public function setBaseControllerName($baseControllerName);
95 120
 
@@ -102,6 +127,7 @@  discard block
 block discarded – undo
102 127
 
103 128
     /**
104 129
      * Sets a list of templates.
130
+     * @return void
105 131
      */
106 132
     public function setTemplates(array $templates);
107 133
 
@@ -110,6 +136,7 @@  discard block
 block discarded – undo
110 136
      *
111 137
      * @param string $name
112 138
      * @param string $template
139
+     * @return void
113 140
      */
114 141
     public function setTemplate($name, $template);
115 142
 
@@ -175,6 +202,9 @@  discard block
 block discarded – undo
175 202
      */
176 203
     public function getSecurityInformation();
177 204
 
205
+    /**
206
+     * @return void
207
+     */
178 208
     public function setParentFieldDescription(FieldDescriptionInterface $parentFieldDescription);
179 209
 
180 210
     /**
@@ -222,6 +252,9 @@  discard block
 block discarded – undo
222 252
      */
223 253
     public function hasRoute($name);
224 254
 
255
+    /**
256
+     * @return void
257
+     */
225 258
     public function setSecurityHandler(SecurityHandlerInterface $securityHandler);
226 259
 
227 260
     /**
@@ -249,10 +282,13 @@  discard block
 block discarded – undo
249 282
      *
250 283
      * @param object $entity
251 284
      *
252
-     * @return mixed
285
+     * @return string
253 286
      */
254 287
     public function id($entity);
255 288
 
289
+    /**
290
+     * @return void
291
+     */
256 292
     public function setValidator(ValidatorInterface $validator);
257 293
 
258 294
     /**
@@ -265,6 +301,9 @@  discard block
 block discarded – undo
265 301
      */
266 302
     public function getShow();
267 303
 
304
+    /**
305
+     * @return void
306
+     */
268 307
     public function setFormTheme(array $formTheme);
269 308
 
270 309
     /**
@@ -272,6 +311,9 @@  discard block
 block discarded – undo
272 311
      */
273 312
     public function getFormTheme();
274 313
 
314
+    /**
315
+     * @return void
316
+     */
275 317
     public function setFilterTheme(array $filterTheme);
276 318
 
277 319
     /**
@@ -279,6 +321,9 @@  discard block
 block discarded – undo
279 321
      */
280 322
     public function getFilterTheme();
281 323
 
324
+    /**
325
+     * @return void
326
+     */
282 327
     public function addExtension(AdminExtensionInterface $extension);
283 328
 
284 329
     /**
@@ -288,6 +333,9 @@  discard block
 block discarded – undo
288 333
      */
289 334
     public function getExtensions();
290 335
 
336
+    /**
337
+     * @return void
338
+     */
291 339
     public function setRouteBuilder(RouteBuilderInterface $routeBuilder);
292 340
 
293 341
     /**
@@ -302,6 +350,9 @@  discard block
 block discarded – undo
302 350
      */
303 351
     public function toString($object);
304 352
 
353
+    /**
354
+     * @return void
355
+     */
305 356
     public function setLabelTranslatorStrategy(LabelTranslatorStrategyInterface $labelTranslatorStrategy);
306 357
 
307 358
     /**
@@ -325,6 +376,7 @@  discard block
 block discarded – undo
325 376
 
326 377
     /**
327 378
      * @param string $uniqId
379
+     * @return void
328 380
      */
329 381
     public function setUniqid($uniqId);
330 382
 
@@ -351,6 +403,7 @@  discard block
 block discarded – undo
351 403
 
352 404
     /**
353 405
      * @param object|null $subject
406
+     * @return void
354 407
      */
355 408
     public function setSubject($subject);
356 409
 
@@ -408,6 +461,7 @@  discard block
 block discarded – undo
408 461
      *
409 462
      * @param string $actionName
410 463
      * @param bool   $allElements
464
+     * @return void
411 465
      */
412 466
     public function preBatchAction($actionName, ProxyQueryInterface $query, array &$idx, $allElements);
413 467
 
@@ -432,6 +486,7 @@  discard block
 block discarded – undo
432 486
      *
433 487
      * @deprecated this feature cannot be stable, use a custom validator,
434 488
      *             the feature will be removed with Symfony 2.2
489
+     * @return void
435 490
      */
436 491
     public function validate(ErrorElement $errorElement, $object);
437 492
 
@@ -446,6 +501,7 @@  discard block
 block discarded – undo
446 501
      * Add object security, fe. make the current user owner of the object.
447 502
      *
448 503
      * @param object $object
504
+     * @return void
449 505
      */
450 506
     public function createObjectSecurity($object);
451 507
 
@@ -454,6 +510,9 @@  discard block
 block discarded – undo
454 510
      */
455 511
     public function getParent();
456 512
 
513
+    /**
514
+     * @return void
515
+     */
457 516
     public function setParent(self $admin);
458 517
 
459 518
     /**
@@ -467,6 +526,7 @@  discard block
 block discarded – undo
467 526
      * Set the translation domain.
468 527
      *
469 528
      * @param string $translationDomain the translation domain
529
+     * @return void
470 530
      */
471 531
     public function setTranslationDomain($translationDomain);
472 532
 
@@ -488,6 +548,7 @@  discard block
 block discarded – undo
488 548
 
489 549
     /**
490 550
      * Set the form groups.
551
+     * @return void
491 552
      */
492 553
     public function setFormGroups(array $formGroups);
493 554
 
@@ -496,6 +557,9 @@  discard block
 block discarded – undo
496 557
      */
497 558
     public function getFormTabs();
498 559
 
560
+    /**
561
+     * @return void
562
+     */
499 563
     public function setFormTabs(array $formTabs);
500 564
 
501 565
     /**
@@ -503,12 +567,16 @@  discard block
 block discarded – undo
503 567
      */
504 568
     public function getShowTabs();
505 569
 
570
+    /**
571
+     * @return void
572
+     */
506 573
     public function setShowTabs(array $showTabs);
507 574
 
508 575
     /**
509 576
      * Remove a form group field.
510 577
      *
511 578
      * @param string $key
579
+     * @return void
512 580
      */
513 581
     public function removeFieldFromFormGroup($key);
514 582
 
@@ -523,6 +591,7 @@  discard block
 block discarded – undo
523 591
 
524 592
     /**
525 593
      * Set the show groups.
594
+     * @return void
526 595
      */
527 596
     public function setShowGroups(array $showGroups);
528 597
 
@@ -530,6 +599,7 @@  discard block
 block discarded – undo
530 599
      * Reorder items in showGroup.
531 600
      *
532 601
      * @param string $group
602
+     * @return void
533 603
      */
534 604
     public function reorderShowGroup($group, array $keys);
535 605
 
@@ -537,6 +607,7 @@  discard block
 block discarded – undo
537 607
      * add a FieldDescription.
538 608
      *
539 609
      * @param string $name
610
+     * @return void
540 611
      */
541 612
     public function addFormFieldDescription($name, FieldDescriptionInterface $fieldDescription);
542 613
 
@@ -544,6 +615,7 @@  discard block
 block discarded – undo
544 615
      * Remove a FieldDescription.
545 616
      *
546 617
      * @param string $name
618
+     * @return void
547 619
      */
548 620
     public function removeFormFieldDescription($name);
549 621
 
@@ -563,11 +635,13 @@  discard block
 block discarded – undo
563 635
      * Adds a new class to a list of supported sub classes.
564 636
      *
565 637
      * @param $subClass
638
+     * @return void
566 639
      */
567 640
     public function addSubClass($subClass);
568 641
 
569 642
     /**
570 643
      * Sets the list of supported sub classes.
644
+     * @return void
571 645
      */
572 646
     public function setSubClasses(array $subClasses);
573 647
 
@@ -628,6 +702,7 @@  discard block
 block discarded – undo
628 702
      * Set the current child status.
629 703
      *
630 704
      * @param bool $currentChild
705
+     * @return void
631 706
      */
632 707
     public function setCurrentChild($currentChild);
633 708
 
@@ -665,6 +740,7 @@  discard block
 block discarded – undo
665 740
 
666 741
     /**
667 742
      * @param string $mode
743
+     * @return void
668 744
      */
669 745
     public function setListMode($mode);
670 746
 
@@ -698,12 +774,14 @@  discard block
 block discarded – undo
698 774
      * Returns the result link for an object.
699 775
      *
700 776
      * @param object $object
777
+     * @return string|null
701 778
      */
702 779
     public function getSearchResultLink($object): ?string;
703 780
 
704 781
     /**
705 782
      * Setting to true will enable mosaic button for the admin screen.
706 783
      * Setting to false will hide mosaic button for the admin screen.
784
+     * @return void
707 785
      */
708 786
     public function showMosaicButton(bool $isShown): void;
709 787
 
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;
@@ -70,6 +73,7 @@  discard block
 block discarded – undo
70 73
      * Renders a view while passing mandatory parameters on to the template.
71 74
      *
72 75
      * @param string $view The view name
76
+     * @param Response $response
73 77
      *
74 78
      * @return Response A Response instance
75 79
      */
@@ -743,8 +747,8 @@  discard block
 block discarded – undo
743 747
     /**
744 748
      * Compare history revisions of object.
745 749
      *
746
-     * @param int|string|null $baseRevision
747
-     * @param int|string|null $compareRevision
750
+     * @param null|integer $baseRevision
751
+     * @param null|integer $compareRevision
748 752
      *
749 753
      * @throws AccessDeniedException If access is not granted
750 754
      * @throws NotFoundHttpException If the object or revision does not exist or the audit reader is not available
@@ -1421,6 +1425,7 @@  discard block
 block discarded – undo
1421 1425
 
1422 1426
     /**
1423 1427
      * Sets the admin form theme to form view. Used for compatibility between Symfony versions.
1428
+     * @param string[] $theme
1424 1429
      */
1425 1430
     private function setFormTheme(FormView $formView, ?array $theme = null): void
1426 1431
     {
Please login to merge, or discard this patch.
src/Security/Handler/AclSecurityHandler.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -181,6 +181,9 @@
 block discarded – undo
181 181
         return $acls;
182 182
     }
183 183
 
184
+    /**
185
+     * @param UserSecurityIdentity $securityIdentity
186
+     */
184 187
     public function addObjectOwner(AclInterface $acl, ?UserSecurityIdentity $securityIdentity = null): void
185 188
     {
186 189
         if (false === $this->findClassAceIndexByUsername($acl, $securityIdentity->getUsername())) {
Please login to merge, or discard this patch.
src/Twig/Extension/SonataAdminExtension.php 1 patch
Doc Comments   +4 added lines, -3 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
      */
@@ -319,7 +319,8 @@  discard block
 block discarded – undo
319 319
     /**
320 320
      * Get the identifiers as a string that is safe to use in a url.
321 321
      *
322
-     * @param object $model
322
+     * @param \stdClass $model
323
+     * @param AdminInterface $admin
323 324
      *
324 325
      * @return string string representation of the id that is safe to use in a url
325 326
      */
@@ -341,7 +342,7 @@  discard block
 block discarded – undo
341 342
     }
342 343
 
343 344
     /**
344
-     * @return string|bool
345
+     * @return string|false
345 346
      */
346 347
     public function getXEditableType($type)
347 348
     {
Please login to merge, or discard this patch.