Completed
Push — dependabot/npm_and_yarn/Bundle... ( 6e191e )
by
unknown
03:57
created
Bundle/CoreBundle/Command/WidgetCssGenerateCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -118,7 +118,7 @@
 block discarded – undo
118 118
             ->getQuery()
119 119
             ->getResult();
120 120
         $templates = [];
121
-        $recursiveGetTemplates = function ($template) use (&$recursiveGetTemplates, &$templates) {
121
+        $recursiveGetTemplates = function($template) use (&$recursiveGetTemplates, &$templates) {
122 122
             array_push($templates, $template);
123 123
             foreach ($template->getInheritors() as $_template) {
124 124
                 if ($_template instanceof Template) {
Please login to merge, or discard this patch.
Tests/Functional/VictoireWebTestCase.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
      * Victoire login.
72 72
      *
73 73
      * @param Client $client
74
-     * @param array  $roles
74
+     * @param string[]  $roles
75 75
      */
76 76
     protected function logIn(Client $client, array $roles)
77 77
     {
@@ -139,7 +139,7 @@  discard block
 block discarded – undo
139 139
     /**
140 140
      * Get seeds files for Users, Pages and Templates.
141 141
      *
142
-     * @return array
142
+     * @return string[]
143 143
      */
144 144
     private function getSeeds()
145 145
     {
Please login to merge, or discard this patch.
App/src/Acme/AppBundle/DataFixtures/Seeds/Loader/VictoireYamlLoader.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
     {
20 20
         ob_start();
21 21
         $loader = $this;
22
-        $includeWrapper = function () use ($file, $loader) {
22
+        $includeWrapper = function() use ($file, $loader) {
23 23
             return include $file;
24 24
         };
25 25
         $data = $includeWrapper();
Please login to merge, or discard this patch.
Bundle/BlogBundle/Entity/Blog.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
     /**
125 125
      * Get categories.
126 126
      *
127
-     * @return string
127
+     * @return ArrayCollection
128 128
      */
129 129
     public function getCategories()
130 130
     {
@@ -176,7 +176,7 @@  discard block
 block discarded – undo
176 176
     }
177 177
 
178 178
     /**
179
-     * @return string
179
+     * @return ArrayCollection
180 180
      */
181 181
     public function getTags()
182 182
     {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@
 block discarded – undo
74 74
      */
75 75
     public function getPublishedArticles()
76 76
     {
77
-        return $this->articles->filter(function (Article $article) {
77
+        return $this->articles->filter(function(Article $article) {
78 78
             return $article->getStatus() === PageStatus::PUBLISHED
79 79
                 && $article->getPublishedAt() <= new \DateTime();
80 80
         });
Please login to merge, or discard this patch.
Bundle/BlogBundle/Entity/Article.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -164,7 +164,7 @@
 block discarded – undo
164 164
     /**
165 165
      * Get category.
166 166
      *
167
-     * @return string
167
+     * @return BlogCategory
168 168
      */
169 169
     public function getCategory()
170 170
     {
Please login to merge, or discard this patch.
Bundle/BlogBundle/Form/CategoryType.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -89,7 +89,7 @@
 block discarded – undo
89 89
     /**
90 90
      * Add the items field to the form.
91 91
      *
92
-     * @param Form $form
92
+     * @param \Symfony\Component\Form\FormInterface $form
93 93
      */
94 94
     protected function addChildrenField($form)
95 95
     {
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
          */
49 49
         $builder->addEventListener(
50 50
             FormEvents::PRE_SET_DATA,
51
-            function (FormEvent $event) {
51
+            function(FormEvent $event) {
52 52
                 $entity = $event->getData();
53 53
 
54 54
                 if ($entity !== null) {
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
          */
70 70
         $builder->addEventListener(
71 71
             FormEvents::PRE_SUBMIT,
72
-            function (FormEvent $event) {
72
+            function(FormEvent $event) {
73 73
                 $rawData = $event->getData();
74 74
                 if (isset($rawData['children'])) {
75 75
                     $addChildren = true;
Please login to merge, or discard this patch.
Bundle/BlogBundle/Form/ChooseBlogType.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -78,7 +78,7 @@
 block discarded – undo
78 78
     }
79 79
 
80 80
     /**
81
-     * @param FormInterface|FormBuilderInterface $builder
81
+     * @param FormBuilderInterface $builder
82 82
      * @param string                             $currentLocale
83 83
      * @param array                              $availableLocales
84 84
      */
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
 
55 55
         $builder->addEventListener(
56 56
             FormEvents::PRE_SET_DATA,
57
-            function (FormEvent $event) use ($currentLocale, $currentBlog, $localesNb, $blogsNb) {
57
+            function(FormEvent $event) use ($currentLocale, $currentBlog, $localesNb, $blogsNb) {
58 58
                 $data = $event->getData();
59 59
                 $event->setData([
60 60
                     'locale' => $data['locale'] !== null ? $data['locale'] : $currentLocale,
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
         if ($localesNb > 1 && $blogsNb > 1) {
68 68
             $builder->addEventListener(
69 69
                 FormEvents::PRE_SUBMIT,
70
-                function (FormEvent $event) use ($currentLocale, $currentBlog, $blogsNb, $localesNb) {
70
+                function(FormEvent $event) use ($currentLocale, $currentBlog, $blogsNb, $localesNb) {
71 71
                     $data = $event->getData();
72 72
                     $currentLocale = $data['locale'] !== null ? $data['locale'] : $currentLocale;
73 73
                     $availableBlogs = $localesNb > 1 ? $this->blogRepository->getBlogsForLocale($currentLocale) : $this->blogRepository->findAll();
@@ -124,10 +124,10 @@  discard block
 block discarded – undo
124 124
             $additionalParameters = [
125 125
                 'choices'           => $availableBlogs,
126 126
                 'choices_as_values' => true,
127
-                'choice_value'      => function (Blog $currentBlog) {
127
+                'choice_value'      => function(Blog $currentBlog) {
128 128
                     return $currentBlog->getId();
129 129
                 },
130
-                'choice_label' => function (Blog $currentBlog) use ($currentLocale) {
130
+                'choice_label' => function(Blog $currentBlog) use ($currentLocale) {
131 131
                     $currentBlog->setCurrentLocale($currentLocale);
132 132
 
133 133
                     return $currentBlog->getName();
Please login to merge, or discard this patch.
Bundle/BusinessPageBundle/Controller/BusinessTemplateController.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,6 @@
 block discarded – undo
5 5
 use Sensio\Bundle\FrameworkExtraBundle\Configuration\Method;
6 6
 use Sensio\Bundle\FrameworkExtraBundle\Configuration\ParamConverter;
7 7
 use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
8
-use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template;
9 8
 use Symfony\Bundle\FrameworkBundle\Controller\Controller;
10 9
 use Symfony\Component\Form\Extension\Core\Type\SubmitType;
11 10
 use Symfony\Component\HttpFoundation\JsonResponse;
Please login to merge, or discard this patch.
Bundle/ConfigBundle/Entity/GlobalConfig.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -115,7 +115,7 @@
 block discarded – undo
115 115
     /**
116 116
      * Get logo.
117 117
      *
118
-     * @return Media
118
+     * @return string
119 119
      */
120 120
     public function getLogo(): ?Media
121 121
     {
Please login to merge, or discard this patch.