Completed
Branch master (429264)
by Kamil
37:02
created
src/Sylius/Bundle/RbacBundle/DependencyInjection/SyliusRbacExtension.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
     public function load(array $config, ContainerBuilder $container)
29 29
     {
30 30
         $config = $this->processConfiguration($this->getConfiguration($config, $container), $config);
31
-        $loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
31
+        $loader = new XmlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config'));
32 32
 
33 33
         $loader->load(sprintf('driver/%s.xml', $config['driver']));
34 34
 
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
             return;
91 91
         }
92 92
 
93
-        $loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
93
+        $loader = new XmlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config'));
94 94
         $loader->load('resource_integration.xml');
95 95
 
96 96
         $container->prependExtensionConfig('sylius_resource', [
Please login to merge, or discard this patch.
src/Sylius/Bundle/ReportBundle/Form/Type/ReportType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -122,7 +122,7 @@
 block discarded – undo
122 122
 
123 123
         foreach ($form->getConfig()->getAttribute('prototypes') as $group => $prototypes) {
124 124
             foreach ($prototypes as $type => $prototype) {
125
-                $view->vars['prototypes'][$group][$group.'_'.$type] = $prototype->createView($view);
125
+                $view->vars['prototypes'][$group][$group . '_' . $type] = $prototype->createView($view);
126 126
             }
127 127
         }
128 128
     }
Please login to merge, or discard this patch.
Sylius/Bundle/ReportBundle/DependencyInjection/SyliusReportExtension.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
     public function load(array $config, ContainerBuilder $container)
31 31
     {
32 32
         $config = $this->processConfiguration($this->getConfiguration($config, $container), $config);
33
-        $loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
33
+        $loader = new XmlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config'));
34 34
 
35 35
         $this->registerResources('sylius', $config['driver'], $config['resources'], $container);
36 36
 
Please login to merge, or discard this patch.
src/Sylius/Bundle/ShopBundle/DependencyInjection/SyliusShopExtension.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
 
31 31
         $loader->load('controller.xml');
32 32
         $loader->load('menu.xml');
Please login to merge, or discard this patch.
src/Sylius/Bundle/ShippingBundle/Form/Type/ShippingMethodType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -117,7 +117,7 @@
 block discarded – undo
117 117
         $view->vars['prototypes'] = [];
118 118
         foreach ($form->getConfig()->getAttribute('prototypes') as $group => $prototypes) {
119 119
             foreach ($prototypes as $type => $prototype) {
120
-                $view->vars['prototypes'][$group.'_'.$type] = $prototype->createView($view);
120
+                $view->vars['prototypes'][$group . '_' . $type] = $prototype->createView($view);
121 121
             }
122 122
         }
123 123
     }
Please login to merge, or discard this patch.
Bundle/ShippingBundle/DependencyInjection/SyliusShippingExtension.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
     public function load(array $config, ContainerBuilder $container)
29 29
     {
30 30
         $config = $this->processConfiguration($this->getConfiguration($config, $container), $config);
31
-        $loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
31
+        $loader = new XmlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config'));
32 32
 
33 33
         $loader->load(sprintf('driver/%s.xml', $config['driver']));
34 34
 
Please login to merge, or discard this patch.
src/Sylius/Bundle/ResourceBundle/Behat/DefaultContext.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -136,7 +136,7 @@  discard block
 block discarded – undo
136 136
      */
137 137
     protected function getRepository($resourceName)
138 138
     {
139
-        return $this->getService($this->applicationName.'.repository.'.$resourceName);
139
+        return $this->getService($this->applicationName . '.repository.' . $resourceName);
140 140
     }
141 141
 
142 142
     /**
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
      */
147 147
     protected function getFactory($resourceName)
148 148
     {
149
-        return $this->getService($this->applicationName.'.factory.'.$resourceName);
149
+        return $this->getService($this->applicationName . '.factory.' . $resourceName);
150 150
     }
151 151
 
152 152
     /**
@@ -243,11 +243,11 @@  discard block
 block discarded – undo
243 243
         $routes = $this->getRouter()->getRouteCollection();
244 244
 
245 245
         if (null === $routes->get($route)) {
246
-            $route = $this->applicationName.'_'.$route;
246
+            $route = $this->applicationName . '_' . $route;
247 247
         }
248 248
 
249 249
         if (null === $routes->get($route)) {
250
-            $route = str_replace($this->applicationName.'_', $this->applicationName.'_backend_', $route);
250
+            $route = str_replace($this->applicationName . '_', $this->applicationName . '_backend_', $route);
251 251
         }
252 252
 
253 253
         $route = str_replace(array_keys($this->actions), array_values($this->actions), $route);
Please login to merge, or discard this patch.
src/Sylius/Bundle/ResourceBundle/Behat/WebContext.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -149,7 +149,7 @@  discard block
 block discarded – undo
149 149
             return;
150 150
         }
151 151
 
152
-        if('product option' === $type) {
152
+        if ('product option' === $type) {
153 153
             $this->iAmDoingSomethingWithResource($action, $type, 'code', $name);
154 154
 
155 155
             return;
@@ -327,7 +327,7 @@  discard block
 block discarded – undo
327 327
     {
328 328
         $tableNode = new TableNode([
329 329
             [trim($columnName)],
330
-            [trim('%'.$value.'%')],
330
+            [trim('%' . $value . '%')],
331 331
         ]);
332 332
 
333 333
         $this->iShouldSeeTheFollowingRow($tableNode);
@@ -342,7 +342,7 @@  discard block
 block discarded – undo
342 342
     {
343 343
         $tableNode = new TableNode([
344 344
             [trim($columnName)],
345
-            [trim('%'.$value.'%')],
345
+            [trim('%' . $value . '%')],
346 346
         ]);
347 347
 
348 348
         $this->iShouldNotSeeTheFollowingRow($tableNode);
@@ -441,7 +441,7 @@  discard block
 block discarded – undo
441 441
         $this->waitForModalToAppear($attributesModalContainer);
442 442
 
443 443
         foreach ($attributes as $attribute) {
444
-            $this->getSession()->getPage()->checkField($attribute.' attribute');
444
+            $this->getSession()->getPage()->checkField($attribute . ' attribute');
445 445
         }
446 446
 
447 447
         $addAttributesButton->press();
@@ -461,7 +461,7 @@  discard block
 block discarded – undo
461 461
         $this->assertSession()->elementExists('css', '#attribute-types-modal');
462 462
 
463 463
         $attributeTypesModalContainer = $this->getSession()->getPage()->find('css', '#attribute-types-modal');
464
-        $typeButton = $attributeTypesModalContainer->find('css', 'a#'.$type);
464
+        $typeButton = $attributeTypesModalContainer->find('css', 'a#' . $type);
465 465
 
466 466
         $this->waitForModalToAppear($attributeTypesModalContainer);
467 467
 
Please login to merge, or discard this patch.
src/Sylius/Bundle/ResourceBundle/Behat/FixtureContext.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -137,9 +137,9 @@
 block discarded – undo
137 137
             $propertyParts = explode(' ', $property);
138 138
             $propertyName = implode(array_map('ucfirst', $propertyParts));
139 139
 
140
-            $method = 'set'.$propertyName;
140
+            $method = 'set' . $propertyName;
141 141
             if (method_exists($object, $method)) {
142
-                $object->{'set'.$propertyName}($value);
142
+                $object->{'set' . $propertyName}($value);
143 143
             }
144 144
         }
145 145
     }
Please login to merge, or discard this patch.