@@ -76,7 +76,7 @@ |
||
| 76 | 76 | { |
| 77 | 77 | $this->shouldThrow( |
| 78 | 78 | new \RuntimeException('Unknown restrict condition "foo"') |
| 79 | - )->during('restrict', [ $comparison, 'foo' ]); |
|
| 79 | + )->during('restrict', [$comparison, 'foo']); |
|
| 80 | 80 | } |
| 81 | 81 | |
| 82 | 82 | function it_should_return_the_expression_builder( |
@@ -151,7 +151,7 @@ |
||
| 151 | 151 | */ |
| 152 | 152 | public function theTypeFieldShouldBeDisabled() |
| 153 | 153 | { |
| 154 | - $currentPage = $this->currentPageResolver->getCurrentPageWithForm([$this->createPage, $this->updatePage]); |
|
| 154 | + $currentPage = $this->currentPageResolver->getCurrentPageWithForm([$this->createPage, $this->updatePage]); |
|
| 155 | 155 | |
| 156 | 156 | Assert::true( |
| 157 | 157 | $currentPage->isTypeDisabled(), |
@@ -51,13 +51,13 @@ |
||
| 51 | 51 | |
| 52 | 52 | foreach ($securityRoles as $securityRole) { |
| 53 | 53 | if ($user->hasRole($securityRole)) { |
| 54 | - $output->writeln(sprintf('<error>User "%s" did already have "%s" security role.</error>', (string)$user, $securityRole)); |
|
| 54 | + $output->writeln(sprintf('<error>User "%s" did already have "%s" security role.</error>', (string) $user, $securityRole)); |
|
| 55 | 55 | $error = true; |
| 56 | 56 | continue; |
| 57 | 57 | } |
| 58 | 58 | |
| 59 | 59 | $user->addRole($securityRole); |
| 60 | - $output->writeln(sprintf('Security role <comment>%s</comment> has been added to user <comment>%s</comment>', $securityRole, (string)$user)); |
|
| 60 | + $output->writeln(sprintf('Security role <comment>%s</comment> has been added to user <comment>%s</comment>', $securityRole, (string) $user)); |
|
| 61 | 61 | } |
| 62 | 62 | |
| 63 | 63 | if (!$error) { |
@@ -30,7 +30,7 @@ |
||
| 30 | 30 | ->setDescription('Initialize default permissions & roles in the application.') |
| 31 | 31 | ->setHelp(<<<EOT |
| 32 | 32 | The <info>%command.name%</info> command initializes default RBAC setup. |
| 33 | -EOT |
|
| 33 | +eot |
|
| 34 | 34 | ) |
| 35 | 35 | ; |
| 36 | 36 | } |
@@ -82,7 +82,7 @@ |
||
| 82 | 82 | $this->summaryPage->open(); |
| 83 | 83 | |
| 84 | 84 | Assert::true( |
| 85 | - $this->summaryPage->isEmpty(), |
|
| 85 | + $this->summaryPage->isEmpty(), |
|
| 86 | 86 | 'There should appear information about empty cart, but it does not.' |
| 87 | 87 | ); |
| 88 | 88 | } |
@@ -13,8 +13,8 @@ |
||
| 13 | 13 | |
| 14 | 14 | use Behat\Mink\Exception\ElementNotFoundException; |
| 15 | 15 | use Sylius\Behat\Page\PageInterface; |
| 16 | -use Sylius\Component\Product\Model\ProductOptionInterface; |
|
| 17 | 16 | use Sylius\Component\Product\Model\ProductInterface; |
| 17 | +use Sylius\Component\Product\Model\ProductOptionInterface; |
|
| 18 | 18 | |
| 19 | 19 | /** |
| 20 | 20 | * @author Łukasz Chruściel <[email protected]> |
@@ -49,7 +49,7 @@ |
||
| 49 | 49 | $documentManager->getClassMetadata('stdClass')->willReturn($metadata); |
| 50 | 50 | $metadata->nodename = null; |
| 51 | 51 | |
| 52 | - $this->shouldThrow(new \RuntimeException('In order to use the node name filter on "stdClass" it is necessary to map a field as the "nodename"'))->during('onEvent', [ $event ]); |
|
| 52 | + $this->shouldThrow(new \RuntimeException('In order to use the node name filter on "stdClass" it is necessary to map a field as the "nodename"'))->during('onEvent', [$event]); |
|
| 53 | 53 | } |
| 54 | 54 | |
| 55 | 55 | function it_should_clean_the_name( |
@@ -50,7 +50,7 @@ |
||
| 50 | 50 | $metadata->idGenerator = 'foo'; |
| 51 | 51 | |
| 52 | 52 | $this->shouldThrow(new \RuntimeException('Document of class "stdClass" must be using the GENERATOR_TYPE_PARENT identificatio strategy (value 3), it is current using "foo" (this may be an automatic configuration: be sure to map both the `nodename` and the `parentDocument`).'))->during( |
| 53 | - 'onEvent', [ $event ] |
|
| 53 | + 'onEvent', [$event] |
|
| 54 | 54 | ); |
| 55 | 55 | } |
| 56 | 56 | |
@@ -58,7 +58,7 @@ discard block |
||
| 58 | 58 | 'A default parent path has been specified, but no parent mapping has been applied to document "stdClass"' |
| 59 | 59 | ))->during( |
| 60 | 60 | 'onPreCreate', |
| 61 | - [ $event ] |
|
| 61 | + [$event] |
|
| 62 | 62 | ); |
| 63 | 63 | } |
| 64 | 64 | |
@@ -84,7 +84,7 @@ discard block |
||
| 84 | 84 | 'Document at default parent path "/path/to" does not exist. `autocreate` was set to "false"' |
| 85 | 85 | ))->during( |
| 86 | 86 | 'onPreCreate', |
| 87 | - [ $event ] |
|
| 87 | + [$event] |
|
| 88 | 88 | ); |
| 89 | 89 | } |
| 90 | 90 | |
@@ -132,7 +132,7 @@ discard block |
||
| 132 | 132 | */ |
| 133 | 133 | public function hasItemNamed($name) |
| 134 | 134 | { |
| 135 | - return $this->hasItemWith($name, '.sylius-product-name'); |
|
| 135 | + return $this->hasItemWith($name, '.sylius-product-name'); |
|
| 136 | 136 | } |
| 137 | 137 | |
| 138 | 138 | /** |
@@ -140,7 +140,7 @@ discard block |
||
| 140 | 140 | */ |
| 141 | 141 | public function hasItemWithVariantNamed($variantName) |
| 142 | 142 | { |
| 143 | - return $this->hasItemWith($variantName, '.sylius-product-variant-name'); |
|
| 143 | + return $this->hasItemWith($variantName, '.sylius-product-variant-name'); |
|
| 144 | 144 | } |
| 145 | 145 | |
| 146 | 146 | /** |
@@ -227,7 +227,7 @@ |
||
| 227 | 227 | { |
| 228 | 228 | $cartTotalText = $this->getElement('cart_total')->getText(); |
| 229 | 229 | |
| 230 | - if (strpos($cartTotalText, ',') !== false ) { |
|
| 230 | + if (strpos($cartTotalText, ',') !== false) { |
|
| 231 | 231 | return strstr($cartTotalText, ',', true); |
| 232 | 232 | } |
| 233 | 233 | |
@@ -19,17 +19,25 @@ discard block |
||
| 19 | 19 | */ |
| 20 | 20 | interface UpdatePageInterface extends BaseUpdatePageInterface |
| 21 | 21 | { |
| 22 | + /** |
|
| 23 | + * @return void |
|
| 24 | + */ |
|
| 22 | 25 | public function enable(); |
| 23 | 26 | |
| 27 | + /** |
|
| 28 | + * @return void |
|
| 29 | + */ |
|
| 24 | 30 | public function disable(); |
| 25 | 31 | |
| 26 | 32 | /** |
| 27 | 33 | * @param string $themeName |
| 34 | + * @return void |
|
| 28 | 35 | */ |
| 29 | 36 | public function setTheme($themeName); |
| 30 | 37 | |
| 31 | 38 | /** |
| 32 | 39 | * @throws ElementNotFoundException |
| 40 | + * @return void |
|
| 33 | 41 | */ |
| 34 | 42 | public function unsetTheme(); |
| 35 | 43 | |
@@ -40,6 +48,7 @@ discard block |
||
| 40 | 48 | |
| 41 | 49 | /** |
| 42 | 50 | * @param string $language |
| 51 | + * @return void |
|
| 43 | 52 | */ |
| 44 | 53 | public function chooseLocale($language); |
| 45 | 54 | |
@@ -52,6 +61,7 @@ discard block |
||
| 52 | 61 | |
| 53 | 62 | /** |
| 54 | 63 | * @param string $currencyCode |
| 64 | + * @return void |
|
| 55 | 65 | */ |
| 56 | 66 | public function chooseCurrency($currencyCode); |
| 57 | 67 | |
@@ -64,6 +74,7 @@ discard block |
||
| 64 | 74 | |
| 65 | 75 | /** |
| 66 | 76 | * @param string $shippingMethod |
| 77 | + * @return void |
|
| 67 | 78 | */ |
| 68 | 79 | public function chooseShippingMethod($shippingMethod); |
| 69 | 80 | |
@@ -76,6 +87,7 @@ discard block |
||
| 76 | 87 | |
| 77 | 88 | /** |
| 78 | 89 | * @param string $paymentMethod |
| 90 | + * @return void |
|
| 79 | 91 | */ |
| 80 | 92 | public function choosePaymentMethod($paymentMethod); |
| 81 | 93 | |