Completed
Push — dependabot/npm_and_yarn/Bundle... ( 2dadcb )
by
unknown
49s
created
Bundle/FormBundle/Form/Type/LinkType.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
                 'choices'           => $options['linkTypeChoices'],
65 65
                 'choices_as_values' => true,
66 66
             ])
67
-            ->addEventListener(FormEvents::PRE_SET_DATA, function (FormEvent $event) use ($builder, $options) {
67
+            ->addEventListener(FormEvents::PRE_SET_DATA, function(FormEvent $event) use ($builder, $options) {
68 68
                 /** @var Link $data */
69 69
                 $data = $event->getData();
70 70
                 $form = $event->getForm();
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
             });
75 75
 
76 76
         $builder
77
-            ->addEventListener(FormEvents::PRE_SUBMIT, function (FormEvent $event) use ($builder, $options) {
77
+            ->addEventListener(FormEvents::PRE_SUBMIT, function(FormEvent $event) use ($builder, $options) {
78 78
                 $form = $event->getForm();
79 79
                 $data = $event->getData();
80 80
                 $locale = isset($data['locale']) ? $data['locale'] : null;
@@ -212,7 +212,7 @@  discard block
 block discarded – undo
212 212
                 'label'        => 'form.link_type.target.modalLayouts.label',
213 213
                 'required'     => true,
214 214
                 'choices'      => $this->modalLayouts,
215
-                'choice_label' => function ($value, $key, $index) {
215
+                'choice_label' => function($value, $key, $index) {
216 216
                     return 'form.link_type.target.modalLayouts.choices.'.$value;
217 217
                 },
218 218
                 'choices_as_values'              => true,
Please login to merge, or discard this patch.
Bundle/CriteriaBundle/DataSource/RequestDataSource.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
             'options' => [
43 43
                 'choices'           => $this->availableLocales,
44 44
                 'choices_as_values' => true,
45
-                'choice_label'      => function ($value) {
45
+                'choice_label'      => function($value) {
46 46
                     return $value;
47 47
                 },
48 48
             ],
Please login to merge, or discard this patch.
Bundle/CriteriaBundle/DataSource/DomainNameDataSource.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@
 block discarded – undo
59 59
             'options' => [
60 60
                 'choices'           => $this->getDomainName(),
61 61
                 'choices_as_values' => true,
62
-                'choice_label'      => function ($value) {
62
+                'choice_label'      => function($value) {
63 63
                     return $value;
64 64
                 },
65 65
             ],
Please login to merge, or discard this patch.
Bundle/CriteriaBundle/Form/Type/CriteriaType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
 
25 25
         $builder->addEventListener(
26 26
             FormEvents::PRE_SET_DATA,
27
-            function (FormEvent $event) use ($options) {
27
+            function(FormEvent $event) use ($options) {
28 28
                 //we get the raw data for the widget form
29 29
                 $name = $event->getData()->getName();
30 30
                 $formParams = $options['dataSources']->getDataSource($name)->{$options['dataSources']->getDataSourceParameters($name)['method'].'FormParams'}();
Please login to merge, or discard this patch.
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.
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.
Tests/App/src/Acme/AppBundle/DataFixtures/Seeds/ORM/LoadFixtureData.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -141,7 +141,7 @@
 block discarded – undo
141 141
             while ($file = readdir($openFolder)) {
142 142
                 if ($file != '.' && $file != '..') {
143 143
                     // Remove file
144
-                    $recursiveDelete = function ($str) use (&$recursiveDelete) {
144
+                    $recursiveDelete = function($str) use (&$recursiveDelete) {
145 145
                         if (is_file($str)) {
146 146
                             return @unlink($str);
147 147
                         } elseif (is_dir($str)) {
Please login to merge, or discard this patch.
Bundle/CoreBundle/Form/ViewType.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -53,18 +53,18 @@  discard block
 block discarded – undo
53 53
      */
54 54
     public function buildForm(FormBuilderInterface $builder, array $options)
55 55
     {
56
-        $builder->addEventListener(FormEvents::PRE_SET_DATA, function (FormEvent $event) {
56
+        $builder->addEventListener(FormEvents::PRE_SET_DATA, function(FormEvent $event) {
57 57
             $view = $event->getData();
58 58
             $form = $event->getForm();
59 59
 
60 60
             $this->isNew = !$view || null === $view->getId();
61 61
 
62 62
             if ($this->isNew) {
63
-                $getAllTemplateWithoutMe = function (EntityRepository $tr) {
63
+                $getAllTemplateWithoutMe = function(EntityRepository $tr) {
64 64
                     return $tr->getAll()->getInstance();
65 65
                 };
66 66
             } else {
67
-                $getAllTemplateWithoutMe = function (EntityRepository $tr) use ($view) {
67
+                $getAllTemplateWithoutMe = function(EntityRepository $tr) use ($view) {
68 68
                     return $tr->getAll()
69 69
                         ->getInstance()
70 70
                         ->andWhere('template.id != :templateId')
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
             if (!$form->has('template')) {
75 75
                 $form->add('template', null, [
76 76
                     'label'        => 'form.view.type.template.label',
77
-                    'choice_label' => function ($view) {
77
+                    'choice_label' => function($view) {
78 78
                         return $view->getName();
79 79
                     },
80 80
                     'required'      => !$view instanceof Template || $view instanceof BusinessTemplate,
@@ -85,11 +85,11 @@  discard block
 block discarded – undo
85 85
             //If view is an Article BEP, we do not allow to choose parent because it will be set automatically
86 86
             if (!$view instanceof ArticleTemplate && ClassUtils::getClass($view) != 'Victoire\Bundle\TemplateBundle\Entity\Template') {
87 87
                 if (!$view || null === $view->getId()) {
88
-                    $getAllPageWithoutMe = function (EntityRepository $repo) {
88
+                    $getAllPageWithoutMe = function(EntityRepository $repo) {
89 89
                         return $repo->getAll()->getInstance();
90 90
                     };
91 91
                 } else {
92
-                    $getAllPageWithoutMe = function (EntityRepository $repo) use ($view) {
92
+                    $getAllPageWithoutMe = function(EntityRepository $repo) use ($view) {
93 93
                         return $repo->getAll()
94 94
                             ->getInstance()
95 95
                             ->andWhere('view.id != :pageId')
Please login to merge, or discard this patch.
Bundle/WidgetMapBundle/Warmer/WidgetDataWarmer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -207,7 +207,7 @@
 block discarded – undo
207 207
                     $associatedEntitiesToWarm = $groupedAssociatedEntitiesToWarm['entitiesToWarm'];
208 208
 
209 209
                     //Extract ids to search
210
-                    $idsToSearch = array_map(function ($associatedEntityToWarm) {
210
+                    $idsToSearch = array_map(function($associatedEntityToWarm) {
211 211
                         return $associatedEntityToWarm->getEntityId();
212 212
                     }, $associatedEntitiesToWarm);
213 213
 
Please login to merge, or discard this patch.