Completed
Pull Request — master (#295)
by Sébastien
09:26 queued 02:35
created
Bundle/PageBundle/DependencyInjection/VictoirePageExtension.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
             'indexes' => [
40 40
                 'pages' => [
41 41
                     'types' => [
42
-                         'Pages' => [
42
+                            'Pages' => [
43 43
                             'serializer'  => [
44 44
                                 'groups' => ['search'],
45 45
                             ],
Please login to merge, or discard this patch.
Bundle/TwigBundle/Repository/ErrorPageRepository.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
         if (!$page && $deepMode) {
30 30
             // Check for a same family error
31 31
             // for example, for a 404 code, if the 404 error page doesn't exist, we check for a 400 errorPage
32
-            $page = $this->findOneByCode(floor($code / 100) * 100);
32
+            $page = $this->findOneByCode(floor($code/100)*100);
33 33
         }
34 34
 
35 35
         return $page;
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
@@ -236,7 +236,7 @@  discard block
 block discarded – undo
236 236
             ]);
237 237
 
238 238
             $question = new Question($questionHelper->getQuestion('Widget name', $input->getOption('bundle-name')));
239
-            $question->setValidator(function ($answer) {
239
+            $question->setValidator(function($answer) {
240 240
                 return self::validateWidgetName($answer, false);
241 241
             });
242 242
 
@@ -283,7 +283,7 @@  discard block
 block discarded – undo
283 283
             ]);
284 284
 
285 285
             $question = new Question($questionHelper->getQuestion('Parent widget name', false));
286
-            $question->setValidator(function ($answer) {
286
+            $question->setValidator(function($answer) {
287 287
                 return self::validateWidgetName($answer, false);
288 288
             });
289 289
             $parent = $questionHelper->ask($input, $output, $question);
@@ -308,7 +308,7 @@  discard block
 block discarded – undo
308 308
         ]);
309 309
 
310 310
         $question = new Question($questionHelper->getQuestion('Target directory', $dir), $dir);
311
-        $question->setValidator(function ($dir) use ($bundle, $namespace) {
311
+        $question->setValidator(function($dir) use ($bundle, $namespace) {
312 312
                 return Validators::validateTargetDir($dir, $bundle, $namespace);
313 313
         });
314 314
         $dir = $questionHelper->ask($input, $output, $question);
@@ -477,7 +477,7 @@  discard block
 block discarded – undo
477 477
         }
478 478
         $output->writeln('');
479 479
 
480
-        $fieldValidator = function ($type) use ($types) {
480
+        $fieldValidator = function($type) use ($types) {
481 481
             if (!in_array($type, $types)) {
482 482
                 throw new \InvalidArgumentException(sprintf('Invalid type "%s".', $type));
483 483
             }
@@ -485,7 +485,7 @@  discard block
 block discarded – undo
485 485
             return $type;
486 486
         };
487 487
 
488
-        $lengthValidator = function ($length) {
488
+        $lengthValidator = function($length) {
489 489
             if (!$length) {
490 490
                 return $length;
491 491
             }
@@ -507,7 +507,7 @@  discard block
 block discarded – undo
507 507
 
508 508
             $question = new Question($questionHelper->getQuestion('New field name (press <return> to stop adding fields)', null));
509 509
             $question->setValidator(
510
-                function ($name) use ($fields, $generator) {
510
+                function($name) use ($fields, $generator) {
511 511
                     if (isset($fields[$name]) || 'id' == $name) {
512 512
                         throw new \InvalidArgumentException(sprintf('Field "%s" is already defined.', $name));
513 513
                     }
Please login to merge, or discard this patch.
Bundle/WidgetBundle/Form/WidgetStyleType.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
                 'required' => false,
61 61
                 'mapped'   => false,
62 62
             ])
63
-            ->addEventListener(FormEvents::PRE_SET_DATA, function (FormEvent $event) {
63
+            ->addEventListener(FormEvents::PRE_SET_DATA, function(FormEvent $event) {
64 64
                 /*
65 65
                  * Generate form fields for each part of form
66 66
                  * Example, generate Static content, XS and SM as color forms
@@ -118,13 +118,13 @@  discard block
 block discarded – undo
118 118
                         'data-refreshOnChange' => 'true',
119 119
                     ],
120 120
                 ])
121
-                ->get('containerBackgroundType'.$key)->addEventListener(FormEvents::PRE_SUBMIT, function (FormEvent $event) use ($key) {
121
+                ->get('containerBackgroundType'.$key)->addEventListener(FormEvents::PRE_SUBMIT, function(FormEvent $event) use ($key) {
122 122
                     self::generateBackgroundFields($event->getForm()->getParent(), $key, $event->getData());
123 123
                 });
124 124
         }
125 125
 
126 126
         // add theme field
127
-        $builder->addEventListener(FormEvents::PRE_SET_DATA, function (FormEvent $event) {
127
+        $builder->addEventListener(FormEvents::PRE_SET_DATA, function(FormEvent $event) {
128 128
             $data = $event->getData();
129 129
             $form = $event->getForm();
130 130
             //guess the bundle name
Please login to merge, or discard this patch.
Tests/Features/Context/FeatureContext.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
      */
24 24
     public function iWaitSeconds($nbr)
25 25
     {
26
-        $this->getSession()->wait($nbr * 1000);
26
+        $this->getSession()->wait($nbr*1000);
27 27
     }
28 28
 
29 29
     public function getSymfonyProfile()
Please login to merge, or discard this patch.
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.
Functionnal/src/Acme/AppBundle/DataFixtures/Seeds/ORM/LoadFixtureData.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -151,7 +151,7 @@
 block discarded – undo
151 151
         while ($file = readdir($openFolder)) {
152 152
             if ($file != '.' && $file != '..') {
153 153
                 // Remove file
154
-            $recursiveDelete = function ($str) use (&$recursiveDelete) {
154
+            $recursiveDelete = function($str) use (&$recursiveDelete) {
155 155
             if (is_file($str)) {
156 156
                 return @unlink($str);
157 157
             } elseif (is_dir($str)) {
Please login to merge, or discard this patch.
Tests/bootstrap.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -746,7 +746,7 @@  discard block
 block discarded – undo
746 746
 
747 747
         public static function setTrustedHosts(array $hostPatterns)
748 748
         {
749
-            self::$trustedHostPatterns = array_map(function ($hostPattern) {
749
+            self::$trustedHostPatterns = array_map(function($hostPattern) {
750 750
                     return sprintf('#%s#i', $hostPattern);
751 751
                 }, $hostPatterns);
752 752
             self::$trustedHosts = [];
@@ -2525,7 +2525,7 @@  discard block
 block discarded – undo
2525 2525
                     $alternatives = [];
2526 2526
                     foreach ($this->services as $key => $associatedService) {
2527 2527
                         $lev = levenshtein($id, $key);
2528
-                        if ($lev <= strlen($id) / 3 || false !== strpos($key, $id)) {
2528
+                        if ($lev <= strlen($id)/3 || false !== strpos($key, $id)) {
2529 2529
                             $alternatives[] = $key;
2530 2530
                         }
2531 2531
                     }
Please login to merge, or discard this patch.
Bundle/ViewReferenceBundle/Builder/Chain/ViewReferenceTransformerChain.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,6 @@
 block discarded – undo
19 19
     /**
20 20
      * add a view Manager.
21 21
      *
22
-     * @param DataTransformerInterface $viewManager
23 22
      * @param string                   $viewNamespace
24 23
      */
25 24
     public function addTransformer(DataTransformerInterface $transformer, $viewNamespace, $outputFormat)
Please login to merge, or discard this patch.