@@ -1241,7 +1241,7 @@ |
||
| 1241 | 1241 | */ |
| 1242 | 1242 | private function getViewComparingCallback(View $expectedView) |
| 1243 | 1243 | { |
| 1244 | - return function ($value) use ($expectedView) { |
|
| 1244 | + return function($value) use ($expectedView) { |
|
| 1245 | 1245 | if (!$value instanceof View) { |
| 1246 | 1246 | return false; |
| 1247 | 1247 | } |
@@ -39,9 +39,9 @@ |
||
| 39 | 39 | public function getFunctions() |
| 40 | 40 | { |
| 41 | 41 | return [ |
| 42 | - new \Twig_SimpleFunction('sylius_settings_all', [$this, 'getSettings']), |
|
| 43 | - new \Twig_SimpleFunction('sylius_settings_get', [$this, 'getSettingsParameter']), |
|
| 44 | - new \Twig_SimpleFunction('sylius_settings_has', [$this, 'hasSettingsParameter']), |
|
| 42 | + new \Twig_SimpleFunction('sylius_settings_all', [$this, 'getSettings']), |
|
| 43 | + new \Twig_SimpleFunction('sylius_settings_get', [$this, 'getSettingsParameter']), |
|
| 44 | + new \Twig_SimpleFunction('sylius_settings_has', [$this, 'hasSettingsParameter']), |
|
| 45 | 45 | ]; |
| 46 | 46 | } |
| 47 | 47 | |
@@ -53,7 +53,7 @@ discard block |
||
| 53 | 53 | */ |
| 54 | 54 | public function getConfigurations() |
| 55 | 55 | { |
| 56 | - return $this->processFileResources(function ($file) { |
|
| 56 | + return $this->processFileResources(function($file) { |
|
| 57 | 57 | return $this->loader->load($file); |
| 58 | 58 | }); |
| 59 | 59 | } |
@@ -63,7 +63,7 @@ discard block |
||
| 63 | 63 | */ |
| 64 | 64 | public function getResources() |
| 65 | 65 | { |
| 66 | - return $this->processFileResources(function ($file) { |
|
| 66 | + return $this->processFileResources(function($file) { |
|
| 67 | 67 | return new FileResource($file); |
| 68 | 68 | }); |
| 69 | 69 | } |
@@ -27,11 +27,11 @@ |
||
| 27 | 27 | public function it_uses_app_themes_filesystem_as_the_default_source() |
| 28 | 28 | { |
| 29 | 29 | $this->assertProcessedConfigurationEquals( |
| 30 | - [ |
|
| 31 | - [], |
|
| 32 | - ], |
|
| 33 | - ['sources' => ['filesystem' => ['locations' => ['%kernel.root_dir%/themes', '%kernel.root_dir%/../vendor/sylius/themes']]]] |
|
| 34 | - ); |
|
| 30 | + [ |
|
| 31 | + [], |
|
| 32 | + ], |
|
| 33 | + ['sources' => ['filesystem' => ['locations' => ['%kernel.root_dir%/themes', '%kernel.root_dir%/../vendor/sylius/themes']]]] |
|
| 34 | + ); |
|
| 35 | 35 | } |
| 36 | 36 | |
| 37 | 37 | /** |
@@ -88,7 +88,7 @@ discard block |
||
| 88 | 88 | $email = $this->getHelper('dialog')->askAndValidate( |
| 89 | 89 | $output, |
| 90 | 90 | 'Please enter an email:', |
| 91 | - function ($username) { |
|
| 91 | + function($username) { |
|
| 92 | 92 | if (empty($username)) { |
| 93 | 93 | throw new \Exception('Email can not be empty'); |
| 94 | 94 | } |
@@ -104,7 +104,7 @@ discard block |
||
| 104 | 104 | $password = $this->getHelper('dialog')->askHiddenResponseAndValidate( |
| 105 | 105 | $output, |
| 106 | 106 | 'Please choose a password:', |
| 107 | - function ($password) { |
|
| 107 | + function($password) { |
|
| 108 | 108 | if (empty($password)) { |
| 109 | 109 | throw new \Exception('Password can not be empty'); |
| 110 | 110 | } |
@@ -61,7 +61,7 @@ |
||
| 61 | 61 | */ |
| 62 | 62 | protected function waitForTabToActivate($tabContainer) |
| 63 | 63 | { |
| 64 | - $this->waitFor(function () use ($tabContainer) { |
|
| 64 | + $this->waitFor(function() use ($tabContainer) { |
|
| 65 | 65 | return false !== strpos($tabContainer->getAttribute('class'), 'active'); |
| 66 | 66 | }); |
| 67 | 67 | } |
@@ -34,7 +34,7 @@ discard block |
||
| 34 | 34 | function it_assumes_quantity_is_1_if_not_provided_in_context(PriceableInterface $priceable) |
| 35 | 35 | { |
| 36 | 36 | $configuration = [ |
| 37 | - ['min' => 0, 'max' => 9, 'price' => 1699], |
|
| 37 | + ['min' => 0, 'max' => 9, 'price' => 1699], |
|
| 38 | 38 | ['min' => 10, 'max' => 19, 'price' => 1499], |
| 39 | 39 | ['min' => 20, 'max' => 29, 'price' => 1299], |
| 40 | 40 | ]; |
@@ -45,7 +45,7 @@ discard block |
||
| 45 | 45 | function it_returns_the_price_based_on_the_quantity(PriceableInterface $priceable) |
| 46 | 46 | { |
| 47 | 47 | $configuration = [ |
| 48 | - ['min' => 0, 'max' => 9, 'price' => 1699], |
|
| 48 | + ['min' => 0, 'max' => 9, 'price' => 1699], |
|
| 49 | 49 | ['min' => 10, 'max' => 19, 'price' => 1499], |
| 50 | 50 | ['min' => 20, 'max' => 29, 'price' => 1299], |
| 51 | 51 | ]; |
@@ -57,9 +57,9 @@ discard block |
||
| 57 | 57 | function it_returns_the_correct_price_for_highest_quantity_range(PriceableInterface $priceable) |
| 58 | 58 | { |
| 59 | 59 | $configuration = [ |
| 60 | - ['min' => 0, 'max' => 9, 'price' => 1699], |
|
| 61 | - ['min' => 10, 'max' => 19, 'price' => 1499], |
|
| 62 | - ['min' => 20, 'max' => 29, 'price' => 1299], |
|
| 60 | + ['min' => 0, 'max' => 9, 'price' => 1699], |
|
| 61 | + ['min' => 10, 'max' => 19, 'price' => 1499], |
|
| 62 | + ['min' => 20, 'max' => 29, 'price' => 1299], |
|
| 63 | 63 | ['min' => 30, 'max' => null, 'price' => 1099], |
| 64 | 64 | ]; |
| 65 | 65 | |
@@ -520,7 +520,7 @@ |
||
| 520 | 520 | |
| 521 | 521 | // can it be handled by an extension? |
| 522 | 522 | if (!$this->container->hasExtension($node->namespaceURI)) { |
| 523 | - $extensionNamespaces = array_filter(array_map(function ($ext) { return $ext->getNamespace(); }, $this->container->getExtensions())); |
|
| 523 | + $extensionNamespaces = array_filter(array_map(function($ext) { return $ext->getNamespace(); }, $this->container->getExtensions())); |
|
| 524 | 524 | throw new InvalidArgumentException(sprintf( |
| 525 | 525 | 'There is no extension able to load the configuration for "%s" (in %s). Looked for namespace "%s", found %s', |
| 526 | 526 | $node->tagName, |
@@ -140,7 +140,7 @@ |
||
| 140 | 140 | $product = $this->productFactory->createNew(); |
| 141 | 141 | $product->setName($productName); |
| 142 | 142 | $product->setPrice(0); |
| 143 | - $product->setDescription('Awesome ' . $productName); |
|
| 143 | + $product->setDescription('Awesome '.$productName); |
|
| 144 | 144 | $product->addChannel($channel); |
| 145 | 145 | |
| 146 | 146 | $this->productRepository->add($product); |