Completed
Branch master (429264)
by Kamil
37:02
created
src/Sylius/Behat/Context/Cli/InstallerContext.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -200,7 +200,7 @@  discard block
 block discarded – undo
200 200
     {
201 201
         $this->dialog = $this->command->getHelper('dialog');
202 202
         $inputString = join(PHP_EOL, $this->inputChoices);
203
-        $this->dialog->setInputStream($this->getInputStream($inputString.PHP_EOL));
203
+        $this->dialog->setInputStream($this->getInputStream($inputString . PHP_EOL));
204 204
 
205 205
         $this->tester->execute(['command' => $name]);
206 206
     }
@@ -211,7 +211,7 @@  discard block
 block discarded – undo
211 211
     private function iExecuteCommandAndConfirm($name)
212 212
     {
213 213
         $this->dialog = $this->command->getHelper('dialog');
214
-        $inputString = 'y'.PHP_EOL;
214
+        $inputString = 'y' . PHP_EOL;
215 215
         $this->dialog->setInputStream($this->getInputStream($inputString));
216 216
 
217 217
         $this->tester->execute(['command' => $name]);
Please login to merge, or discard this patch.
src/Sylius/Behat/Extension/MultiContainerExtension/Loader/XmlFileLoader.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -177,7 +177,7 @@  discard block
 block discarded – undo
177 177
                 if (in_array($key, ['factory-class', 'factory-method', 'factory-service'])) {
178 178
                     @trigger_error(sprintf('The "%s" attribute of service "%s" in file "%s" is deprecated since version 2.6 and will be removed in 3.0. Use the "factory" element instead.', $key, (string) $service->getAttribute('id'), $file), E_USER_DEPRECATED);
179 179
                 }
180
-                $method = 'set'.str_replace('-', '', $key);
180
+                $method = 'set' . str_replace('-', '', $key);
181 181
                 $definition->$method(XmlUtils::phpize($value));
182 182
             }
183 183
         }
@@ -384,7 +384,7 @@  discard block
 block discarded – undo
384 384
             // this is used by DefinitionDecorator to overwrite a specific
385 385
             // argument of the parent definition
386 386
             if ($arg->hasAttribute('index')) {
387
-                $key = 'index_'.$arg->getAttribute('index');
387
+                $key = 'index_' . $arg->getAttribute('index');
388 388
             }
389 389
 
390 390
             switch ($arg->getAttribute('type')) {
@@ -442,7 +442,7 @@  discard block
 block discarded – undo
442 442
      */
443 443
     public function validateSchema(\DOMDocument $dom)
444 444
     {
445
-        $schemaLocations = ['http://symfony.com/schema/dic/services' => str_replace('\\', '/', __DIR__.'/schema/dic/services/services-1.0.xsd')];
445
+        $schemaLocations = ['http://symfony.com/schema/dic/services' => str_replace('\\', '/', __DIR__ . '/schema/dic/services/services-1.0.xsd')];
446 446
 
447 447
         if ($element = $dom->documentElement->getAttributeNS('http://www.w3.org/2001/XMLSchema-instance', 'schemaLocation')) {
448 448
             $items = preg_split('/\s+/', $element);
@@ -452,7 +452,7 @@  discard block
 block discarded – undo
452 452
                 }
453 453
 
454 454
                 if (($extension = $this->container->getExtension($items[$i])) && false !== $extension->getXsdValidationBasePath()) {
455
-                    $path = str_replace($extension->getNamespace(), str_replace('\\', '/', $extension->getXsdValidationBasePath()).'/', $items[$i + 1]);
455
+                    $path = str_replace($extension->getNamespace(), str_replace('\\', '/', $extension->getXsdValidationBasePath()) . '/', $items[$i + 1]);
456 456
 
457 457
                     if (!is_file($path)) {
458 458
                         throw new RuntimeException(sprintf('Extension "%s" references a non-existent XSD file "%s"', get_class($extension), $path));
@@ -475,10 +475,10 @@  discard block
 block discarded – undo
475 475
                     $parts = explode('/', str_replace('\\', '/', $tmpfile));
476 476
                 }
477 477
             }
478
-            $drive = '\\' === DIRECTORY_SEPARATOR ? array_shift($parts).'/' : '';
479
-            $location = 'file:///'.$drive.implode('/', array_map('rawurlencode', $parts));
478
+            $drive = '\\' === DIRECTORY_SEPARATOR ? array_shift($parts) . '/' : '';
479
+            $location = 'file:///' . $drive . implode('/', array_map('rawurlencode', $parts));
480 480
 
481
-            $imports .= sprintf('  <xsd:import namespace="%s" schemaLocation="%s" />'."\n", $namespace, $location);
481
+            $imports .= sprintf('  <xsd:import namespace="%s" schemaLocation="%s" />' . "\n", $namespace, $location);
482 482
         }
483 483
 
484 484
         $source = <<<EOF
Please login to merge, or discard this patch.
src/Sylius/Behat/Page/Shop/Account/Order/ShowPage.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -159,7 +159,7 @@
 block discarded – undo
159 159
             (stripos($elementText, $customerName) !== false) &&
160 160
             (stripos($elementText, $street) !== false) &&
161 161
             (stripos($elementText, $city) !== false) &&
162
-            (stripos($elementText, $countryName.' '.$postcode) !== false)
162
+            (stripos($elementText, $countryName . ' ' . $postcode) !== false)
163 163
         ;
164 164
     }
165 165
 }
Please login to merge, or discard this patch.
src/Sylius/Behat/Page/Admin/Country/UpdatePage.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
     {
41 41
         $provinces = $this->getElement('provinces');
42 42
 
43
-        return $provinces->has('css', '[value = "'.$provinceName.'"]');
43
+        return $provinces->has('css', '[value = "' . $provinceName . '"]');
44 44
     }
45 45
 
46 46
     /**
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
     {
51 51
         $provinces = $this->getElement('provinces');
52 52
 
53
-        return $provinces->has('css', '[value = "'.$provinceCode.'"]');
53
+        return $provinces->has('css', '[value = "' . $provinceCode . '"]');
54 54
     }
55 55
 
56 56
     /**
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
         if ($this->isThereProvince($provinceName)) {
138 138
             $provinces = $this->getElement('provinces');
139 139
 
140
-            $item = $provinces->find('css', 'div[data-form-collection="item"] input[value="'.$provinceName.'"]')->getParent();
140
+            $item = $provinces->find('css', 'div[data-form-collection="item"] input[value="' . $provinceName . '"]')->getParent();
141 141
             $item->fillField('Name', '');
142 142
         }
143 143
     }
Please login to merge, or discard this patch.
src/Sylius/Behat/Page/Admin/Order/ShowPage.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -385,7 +385,7 @@  discard block
 block discarded – undo
385 385
             (stripos($elementText, $customerName) !== false) &&
386 386
             (stripos($elementText, $street) !== false) &&
387 387
             (stripos($elementText, $city) !== false) &&
388
-            (stripos($elementText, $countryName.' '.$postcode) !== false)
388
+            (stripos($elementText, $countryName . ' ' . $postcode) !== false)
389 389
         ;
390 390
     }
391 391
 
@@ -402,7 +402,7 @@  discard block
 block discarded – undo
402 402
             ['item' => $itemName]
403 403
         );
404 404
 
405
-        return $rows[0]->find('css', '.'.$property)->getText();
405
+        return $rows[0]->find('css', '.' . $property)->getText();
406 406
     }
407 407
 
408 408
     /**
Please login to merge, or discard this patch.
src/Sylius/Behat/Page/SymfonyPage.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -75,8 +75,8 @@
 block discarded – undo
75 75
      */
76 76
     final protected function makePathAbsolute($path)
77 77
     {
78
-        $baseUrl = rtrim($this->getParameter('base_url'), '/').'/';
78
+        $baseUrl = rtrim($this->getParameter('base_url'), '/') . '/';
79 79
 
80
-        return 0 !== strpos($path, 'http') ? $baseUrl.ltrim($path, '/') : $path;
80
+        return 0 !== strpos($path, 'http') ? $baseUrl . ltrim($path, '/') : $path;
81 81
     }
82 82
 }
Please login to merge, or discard this patch.
Sylius/Bundle/ChannelBundle/DependencyInjection/SyliusChannelExtension.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
     public function load(array $config, ContainerBuilder $container)
30 30
     {
31 31
         $config = $this->processConfiguration($this->getConfiguration($config, $container), $config);
32
-        $loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
32
+        $loader = new XmlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config'));
33 33
 
34 34
         $loader->load(sprintf('driver/%s.xml', $config['driver']));
35 35
 
Please login to merge, or discard this patch.
src/Sylius/Bundle/UiBundle/Twig/PercentageExtension.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
     {
36 36
         $percentage = $number * 100;
37 37
 
38
-        return $percentage.' %';
38
+        return $percentage . ' %';
39 39
     }
40 40
 
41 41
     /**
Please login to merge, or discard this patch.
src/Sylius/Bundle/UiBundle/DependencyInjection/SyliusUiExtension.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
      */
27 27
     public function load(array $config, ContainerBuilder $container)
28 28
     {
29
-        $loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
29
+        $loader = new XmlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config'));
30 30
         $loader->load('controller.xml');
31 31
         $loader->load('menu.xml');
32 32
         $loader->load('form.xml');
Please login to merge, or discard this patch.