Completed
Push — dependabot/npm_and_yarn/Bundle... ( b0a216 )
by
unknown
04:24
created
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/WidgetBundle/Twig/LinkExtension.php 1 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/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.
Bundle/PageBundle/Helper/PageHelper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -443,7 +443,7 @@
 block discarded – undo
443 443
      */
444 444
     private function getPageRoles(View $view)
445 445
     {
446
-        $insertAncestorRole = function (View $view = null) use (&$insertAncestorRole) {
446
+        $insertAncestorRole = function(View $view = null) use (&$insertAncestorRole) {
447 447
             if ($view === null) {
448 448
                 return;
449 449
             }
Please login to merge, or discard this patch.
Bundle/BusinessPageBundle/Builder/BusinessPageBuilder.php 1 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/WidgetBundle/Command/CreateWidgetCommand.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -238,7 +238,7 @@  discard block
 block discarded – undo
238 238
             ]);
239 239
 
240 240
             $question = new Question($questionHelper->getQuestion('Widget name', $input->getOption('bundle-name')));
241
-            $question->setValidator(function ($answer) {
241
+            $question->setValidator(function($answer) {
242 242
                 return self::validateWidgetName($answer, false);
243 243
             });
244 244
 
@@ -285,7 +285,7 @@  discard block
 block discarded – undo
285 285
             ]);
286 286
 
287 287
             $question = new Question($questionHelper->getQuestion('Parent widget name', false));
288
-            $question->setValidator(function ($answer) {
288
+            $question->setValidator(function($answer) {
289 289
                 return self::validateWidgetName($answer, false);
290 290
             });
291 291
             $parent = $questionHelper->ask($input, $output, $question);
@@ -310,7 +310,7 @@  discard block
 block discarded – undo
310 310
         ]);
311 311
 
312 312
         $question = new Question($questionHelper->getQuestion('Target directory', $dir), $dir);
313
-        $question->setValidator(function ($dir) use ($bundle, $namespace) {
313
+        $question->setValidator(function($dir) use ($bundle, $namespace) {
314 314
             return Validators::validateTargetDir($dir, $bundle, $namespace);
315 315
         });
316 316
         $dir = $questionHelper->ask($input, $output, $question);
@@ -486,7 +486,7 @@  discard block
 block discarded – undo
486 486
         }
487 487
         $output->writeln('');
488 488
 
489
-        $fieldValidator = function ($type) use ($types) {
489
+        $fieldValidator = function($type) use ($types) {
490 490
             if (!in_array($type, $types)) {
491 491
                 throw new \InvalidArgumentException(sprintf('Invalid type "%s".', $type));
492 492
             }
@@ -494,7 +494,7 @@  discard block
 block discarded – undo
494 494
             return $type;
495 495
         };
496 496
 
497
-        $lengthValidator = function ($length) {
497
+        $lengthValidator = function($length) {
498 498
             if (!$length) {
499 499
                 return $length;
500 500
             }
@@ -516,7 +516,7 @@  discard block
 block discarded – undo
516 516
 
517 517
             $question = new Question($questionHelper->getQuestion('New field name (press <return> to stop adding fields)', null));
518 518
             $question->setValidator(
519
-                function ($name) use ($fields, $generator) {
519
+                function($name) use ($fields, $generator) {
520 520
                     if (isset($fields[$name]) || 'id' == $name) {
521 521
                         throw new \InvalidArgumentException(sprintf('Field "%s" is already defined.', $name));
522 522
                     }
Please login to merge, or discard this patch.
Bundle/CoreBundle/Repository/ViewRepository.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -89,7 +89,7 @@
 block discarded – undo
89 89
             $pageId = $page->getId();
90 90
             $viewReference = array_filter(
91 91
                 $viewReferences,
92
-                function ($e) use ($pageId) {
92
+                function($e) use ($pageId) {
93 93
                     return $e->getViewId() == $pageId;
94 94
                 });
95 95
             if (!empty($viewReference[0])) {
Please login to merge, or discard this patch.
Bundle/CoreBundle/Form/WidgetType.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
         //we use the PRE_SUBMIT event to set the mode option
76 76
         $builder->addEventListener(
77 77
             FormEvents::PRE_SUBMIT,
78
-            function (FormEvent $event) use ($options) {
78
+            function(FormEvent $event) use ($options) {
79 79
                 //we get the raw data for the widget form
80 80
                 $rawData = $event->getData();
81 81
 
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
         ]);
119 119
         $builder->addEventListener(
120 120
             FormEvents::PRE_SET_DATA,
121
-            function (FormEvent $event) use ($options) {
121
+            function(FormEvent $event) use ($options) {
122 122
                 $dataSources = $options['dataSources']->getDataSources();
123 123
                 $widget = $event->getData();
124 124
                 foreach ($dataSources as $alias => $dataSource) {
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
         );
133 133
         $builder->addEventListener(
134 134
             FormEvents::POST_SUBMIT,
135
-            function (FormEvent $event) use ($options) {
135
+            function(FormEvent $event) use ($options) {
136 136
                 $widget = $event->getData();
137 137
                 /** @var Criteria $criteria */
138 138
                 foreach ($widget->getCriterias() as $criteria) {
Please login to merge, or discard this patch.
Bundle/CoreBundle/Form/EntityProxyFormType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@
 block discarded – undo
51 51
                 'attr'        => [
52 52
                     'class' => 'add_'.$options['business_entity_id'].'_link picker_entity_select',
53 53
                 ],
54
-                'query_builder' => function (EntityRepository $er) use ($options, $locale) {
54
+                'query_builder' => function(EntityRepository $er) use ($options, $locale) {
55 55
                     // Don't display entities that don't have translations in the current locale.
56 56
                     if (in_array(Translatable::class, class_uses($options['namespace']))) {
57 57
                         return $er->createQueryBuilder('entity')
Please login to merge, or discard this patch.