Completed
Pull Request — 2.3 (#1134)
by Leny
07:16 queued 03:35
created
Bundle/CriteriaBundle/Chain/DataSourceChain.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
     public function addDataSource($dataSource, $parameters)
22 22
     {
23 23
         $method = $parameters['method'];
24
-        $data = function () use ($dataSource, $method) {
24
+        $data = function() use ($dataSource, $method) {
25 25
             return $dataSource->{$method}();
26 26
         };
27 27
         $this->dataSource[$parameters['alias']] = [
Please login to merge, or discard this patch.
Bundle/WidgetBundle/Command/MigrateWidgetOwningSideCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@
 block discarded – undo
43 43
             $widget = $widgetMap->getWidget();
44 44
             $widget->setWidgetMap($widgetMap);
45 45
             $widgetMap->setWidget(null);
46
-            if ($key % 100 == 0) {
46
+            if ($key%100 == 0) {
47 47
                 $entityManager->flush();
48 48
             }
49 49
             $progress->advance();
Please login to merge, or discard this patch.
Bundle/BlogBundle/Entity/ArticleTranslation.php 1 patch
Doc Comments   +3 added lines, -4 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
      *
64 64
      * @param string $name
65 65
      *
66
-     * @return View
66
+     * @return ArticleTranslation
67 67
      */
68 68
     public function setName($name)
69 69
     {
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
      *
78 78
      * @param string $slug
79 79
      *
80
-     * @return View
80
+     * @return ArticleTranslation
81 81
      */
82 82
     public function setSlug($slug)
83 83
     {
@@ -109,9 +109,8 @@  discard block
 block discarded – undo
109 109
     /**
110 110
      * Set category.
111 111
      *
112
-     * @param string $category
113 112
      *
114
-     * @return Article
113
+     * @return ArticleTranslation
115 114
      */
116 115
     public function setDescription($description)
117 116
     {
Please login to merge, or discard this patch.
Bundle/BusinessPageBundle/Builder/BusinessPageBuilder.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -215,7 +215,7 @@
 block discarded – undo
215 215
     /**
216 216
      * @param VirtualBusinessPage $page
217 217
      * @param BusinessTemplate    $businessTemplate
218
-     * @param array               $businessProperties
218
+     * @param BusinessProperty[]               $businessProperties
219 219
      * @param EntityManager       $em
220 220
      * @param                     $entity
221 221
      *
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -102,7 +102,7 @@
 block discarded – undo
102 102
              * @param bool $autoload
103 103
              * @return array
104 104
              */
105
-            $class_uses_deep = function ($class, $autoload = true) {
105
+            $class_uses_deep = function($class, $autoload = true) {
106 106
                 $traits = [];
107 107
                 do {
108 108
                     $traits = array_merge(class_uses($class, $autoload), $traits);
Please login to merge, or discard this patch.
Bundle/QueryBundle/Helper/QueryHelper.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,6 @@
 block discarded – undo
8 8
 use Doctrine\ORM\Mapping\ManyToOne;
9 9
 use Doctrine\ORM\Mapping\OneToMany;
10 10
 use Doctrine\ORM\Mapping\OneToOne;
11
-use Doctrine\ORM\Query\Expr\Join;
12 11
 use Doctrine\ORM\QueryBuilder;
13 12
 use FOS\UserBundle\Model\UserInterface;
14 13
 use Knp\DoctrineBehaviors\Model\Translatable\Translatable;
Please login to merge, or discard this patch.
Bundle/WidgetBundle/Twig/LinkExtension.php 2 patches
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -190,7 +190,6 @@
 block discarded – undo
190 190
      *
191 191
      * @param array  $parameters The link parameters (go to LinkTrait to have the list)
192 192
      * @param string $label      link label
193
-     * @param array  $attr       custom attributes
194 193
      *
195 194
      * @return string
196 195
      */
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -264,7 +264,7 @@
 block discarded – undo
264 264
 
265 265
     private function formatAttributes($attributes)
266 266
     {
267
-        array_walk($attributes, function (&$item, $key) {
267
+        array_walk($attributes, function(&$item, $key) {
268 268
             if (is_array($item)) {
269 269
                 $item = implode($item, ' ');
270 270
             }
Please login to merge, or discard this patch.
Bundle/SeoBundle/Entity/PageSeoTranslation.php 1 patch
Doc Comments   +31 added lines, -31 removed lines patch added patch discarded remove patch
@@ -245,9 +245,9 @@  discard block
 block discarded – undo
245 245
     /**
246 246
      * Set redirectTo.
247 247
      *
248
-     * @param View $redirectTo
248
+     * @param Link $redirectTo
249 249
      *
250
-     * @return PageSeo
250
+     * @return PageSeoTranslation
251 251
      */
252 252
     public function setRedirectTo(Link $redirectTo)
253 253
     {
@@ -271,7 +271,7 @@  discard block
 block discarded – undo
271 271
      *
272 272
      * @param string $metaTitle
273 273
      *
274
-     * @return PageSeo
274
+     * @return PageSeoTranslation
275 275
      */
276 276
     public function setMetaTitle($metaTitle)
277 277
     {
@@ -295,7 +295,7 @@  discard block
 block discarded – undo
295 295
      *
296 296
      * @param string $metaDescription
297 297
      *
298
-     * @return PageSeo
298
+     * @return PageSeoTranslation
299 299
      */
300 300
     public function setMetaDescription($metaDescription)
301 301
     {
@@ -319,7 +319,7 @@  discard block
 block discarded – undo
319 319
      *
320 320
      * @param string $relAuthor
321 321
      *
322
-     * @return PageSeo
322
+     * @return PageSeoTranslation
323 323
      */
324 324
     public function setRelAuthor($relAuthor)
325 325
     {
@@ -343,7 +343,7 @@  discard block
 block discarded – undo
343 343
      *
344 344
      * @param string $relPublisher
345 345
      *
346
-     * @return PageSeo
346
+     * @return PageSeoTranslation
347 347
      */
348 348
     public function setRelPublisher($relPublisher)
349 349
     {
@@ -367,7 +367,7 @@  discard block
 block discarded – undo
367 367
      *
368 368
      * @param string $ogTitle
369 369
      *
370
-     * @return PageSeo
370
+     * @return PageSeoTranslation
371 371
      */
372 372
     public function setOgTitle($ogTitle)
373 373
     {
@@ -391,7 +391,7 @@  discard block
 block discarded – undo
391 391
      *
392 392
      * @param string $ogType
393 393
      *
394
-     * @return PageSeo
394
+     * @return PageSeoTranslation
395 395
      */
396 396
     public function setOgType($ogType)
397 397
     {
@@ -415,7 +415,7 @@  discard block
 block discarded – undo
415 415
      *
416 416
      * @param Image $ogImage
417 417
      *
418
-     * @return PageSeo
418
+     * @return PageSeoTranslation
419 419
      */
420 420
     public function setOgImage($ogImage)
421 421
     {
@@ -439,7 +439,7 @@  discard block
 block discarded – undo
439 439
      *
440 440
      * @param string $ogUrl
441 441
      *
442
-     * @return PageSeo
442
+     * @return PageSeoTranslation
443 443
      */
444 444
     public function setOgUrl($ogUrl)
445 445
     {
@@ -463,7 +463,7 @@  discard block
 block discarded – undo
463 463
      *
464 464
      * @param string $ogDescription
465 465
      *
466
-     * @return PageSeo
466
+     * @return PageSeoTranslation
467 467
      */
468 468
     public function setOgDescription($ogDescription)
469 469
     {
@@ -487,7 +487,7 @@  discard block
 block discarded – undo
487 487
      *
488 488
      * @param string $fbAdmins
489 489
      *
490
-     * @return PageSeo
490
+     * @return PageSeoTranslation
491 491
      */
492 492
     public function setFbAdmins($fbAdmins)
493 493
     {
@@ -511,7 +511,7 @@  discard block
 block discarded – undo
511 511
      *
512 512
      * @param string $twitterCard
513 513
      *
514
-     * @return PageSeo
514
+     * @return PageSeoTranslation
515 515
      */
516 516
     public function setTwitterCard($twitterCard)
517 517
     {
@@ -535,7 +535,7 @@  discard block
 block discarded – undo
535 535
      *
536 536
      * @param string $twitterUrl
537 537
      *
538
-     * @return PageSeo
538
+     * @return PageSeoTranslation
539 539
      */
540 540
     public function setTwitterUrl($twitterUrl)
541 541
     {
@@ -559,7 +559,7 @@  discard block
 block discarded – undo
559 559
      *
560 560
      * @param string $twitterCreator
561 561
      *
562
-     * @return PageSeo
562
+     * @return PageSeoTranslation
563 563
      */
564 564
     public function setTwitterCreator($twitterCreator)
565 565
     {
@@ -583,7 +583,7 @@  discard block
 block discarded – undo
583 583
      *
584 584
      * @param string $twitterTitle
585 585
      *
586
-     * @return PageSeo
586
+     * @return PageSeoTranslation
587 587
      */
588 588
     public function setTwitterTitle($twitterTitle)
589 589
     {
@@ -607,7 +607,7 @@  discard block
 block discarded – undo
607 607
      *
608 608
      * @param string $twitterDescription
609 609
      *
610
-     * @return PageSeo
610
+     * @return PageSeoTranslation
611 611
      */
612 612
     public function setTwitterDescription($twitterDescription)
613 613
     {
@@ -631,7 +631,7 @@  discard block
 block discarded – undo
631 631
      *
632 632
      * @param Image $twitterImage
633 633
      *
634
-     * @return PageSeo
634
+     * @return PageSeoTranslation
635 635
      */
636 636
     public function setTwitterImage($twitterImage)
637 637
     {
@@ -655,7 +655,7 @@  discard block
 block discarded – undo
655 655
      *
656 656
      * @param string $schemaPageType
657 657
      *
658
-     * @return PageSeo
658
+     * @return PageSeoTranslation
659 659
      */
660 660
     public function setSchemaPageType($schemaPageType)
661 661
     {
@@ -679,7 +679,7 @@  discard block
 block discarded – undo
679 679
      *
680 680
      * @param string $schemaName
681 681
      *
682
-     * @return PageSeo
682
+     * @return PageSeoTranslation
683 683
      */
684 684
     public function setSchemaName($schemaName)
685 685
     {
@@ -703,7 +703,7 @@  discard block
 block discarded – undo
703 703
      *
704 704
      * @param string $schemaDescription
705 705
      *
706
-     * @return PageSeo
706
+     * @return PageSeoTranslation
707 707
      */
708 708
     public function setSchemaDescription($schemaDescription)
709 709
     {
@@ -727,7 +727,7 @@  discard block
 block discarded – undo
727 727
      *
728 728
      * @param Image $schemaImage
729 729
      *
730
-     * @return PageSeo
730
+     * @return PageSeoTranslation
731 731
      */
732 732
     public function setSchemaImage($schemaImage)
733 733
     {
@@ -751,7 +751,7 @@  discard block
 block discarded – undo
751 751
      *
752 752
      * @param string $metaRobotsIndex
753 753
      *
754
-     * @return PageSeo
754
+     * @return PageSeoTranslation
755 755
      */
756 756
     public function setMetaRobotsIndex($metaRobotsIndex)
757 757
     {
@@ -775,7 +775,7 @@  discard block
 block discarded – undo
775 775
      *
776 776
      * @param string $metaRobotsFollow
777 777
      *
778
-     * @return PageSeo
778
+     * @return PageSeoTranslation
779 779
      */
780 780
     public function setMetaRobotsFollow($metaRobotsFollow)
781 781
     {
@@ -799,7 +799,7 @@  discard block
 block discarded – undo
799 799
      *
800 800
      * @param string $metaRobotsAdvanced
801 801
      *
802
-     * @return PageSeo
802
+     * @return PageSeoTranslation
803 803
      */
804 804
     public function setMetaRobotsAdvanced($metaRobotsAdvanced)
805 805
     {
@@ -823,7 +823,7 @@  discard block
 block discarded – undo
823 823
      *
824 824
      * @param bool $sitemapIndexed
825 825
      *
826
-     * @return PageSeo
826
+     * @return PageSeoTranslation
827 827
      */
828 828
     public function setSitemapIndexed($sitemapIndexed)
829 829
     {
@@ -847,7 +847,7 @@  discard block
 block discarded – undo
847 847
      *
848 848
      * @param float $sitemapPriority
849 849
      *
850
-     * @return PageSeo
850
+     * @return PageSeoTranslation
851 851
      */
852 852
     public function setSitemapPriority($sitemapPriority)
853 853
     {
@@ -871,7 +871,7 @@  discard block
 block discarded – undo
871 871
      *
872 872
      * @param float $sitemapChangeFreq
873 873
      *
874
-     * @return PageSeo
874
+     * @return PageSeoTranslation
875 875
      */
876 876
     public function setSitemapChangeFreq($sitemapChangeFreq)
877 877
     {
@@ -883,7 +883,7 @@  discard block
 block discarded – undo
883 883
     /**
884 884
      * Get sitemapChangeFreq.
885 885
      *
886
-     * @return float
886
+     * @return string
887 887
      */
888 888
     public function getSitemapChangeFreq()
889 889
     {
@@ -895,7 +895,7 @@  discard block
 block discarded – undo
895 895
      *
896 896
      * @param string $relCanonical
897 897
      *
898
-     * @return PageSeo
898
+     * @return PageSeoTranslation
899 899
      */
900 900
     public function setRelCanonical($relCanonical)
901 901
     {
@@ -919,7 +919,7 @@  discard block
 block discarded – undo
919 919
      *
920 920
      * @param string $keyword
921 921
      *
922
-     * @return PageSeo
922
+     * @return PageSeoTranslation
923 923
      */
924 924
     public function setKeyword($keyword)
925 925
     {
Please login to merge, or discard this patch.
Bundle/WidgetBundle/Entity/Widget.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -364,7 +364,7 @@  discard block
 block discarded – undo
364 364
     /**
365 365
      * Set widgets.
366 366
      *
367
-     * @param [WidgetMap] $widgetMaps
367
+     * @param [WidgetMap] $widgetMap
368 368
      *
369 369
      * @return Widget
370 370
      */
@@ -494,7 +494,7 @@  discard block
 block discarded – undo
494 494
     }
495 495
 
496 496
     /**
497
-     * @param $criteriaAlias
497
+     * @param string $criteriaAlias
498 498
      *
499 499
      * @return bool
500 500
      */
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -473,7 +473,7 @@
 block discarded – undo
473 473
      */
474 474
     public function hasCriteriaNamed($criteriaAlias)
475 475
     {
476
-        return $this->criterias->exists(function ($key, Criteria $element) use ($criteriaAlias) {
476
+        return $this->criterias->exists(function($key, Criteria $element) use ($criteriaAlias) {
477 477
             return $criteriaAlias === $element->getName();
478 478
         });
479 479
     }
Please login to merge, or discard this patch.
Bundle/CriteriaBundle/DataSource/RolesDataSource.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
50 50
             'options' => [
51 51
                 'choices'           => $this->getAllAvailableRoles($this->roleHierarchy),
52 52
                 'choices_as_values' => true,
53
-                'choice_label'      => function ($value) {
53
+                'choice_label'      => function($value) {
54 54
                     return $value;
55 55
                 },
56 56
             ],
Please login to merge, or discard this patch.