@@ -65,7 +65,7 @@ |
||
| 65 | 65 | $objects = $this->loadFixturesFromFile('books.yml'); |
| 66 | 66 | |
| 67 | 67 | $data = |
| 68 | - <<<EOT |
|
| 68 | + <<<EOT |
|
| 69 | 69 | { |
| 70 | 70 | "title": "Star Wars: Dark Disciple" |
| 71 | 71 | } |
@@ -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 | } |
@@ -52,10 +52,10 @@ |
||
| 52 | 52 | /** |
| 53 | 53 | * @return string |
| 54 | 54 | */ |
| 55 | - public function getRefreshToken(); |
|
| 55 | + public function getRefreshToken(); |
|
| 56 | 56 | |
| 57 | - /** |
|
| 58 | - * @param string $refreshToken |
|
| 59 | - */ |
|
| 60 | - public function setRefreshToken($refreshToken); |
|
| 57 | + /** |
|
| 58 | + * @param string $refreshToken |
|
| 59 | + */ |
|
| 60 | + public function setRefreshToken($refreshToken); |
|
| 61 | 61 | } |
@@ -37,8 +37,8 @@ |
||
| 37 | 37 | public function getFunctions() |
| 38 | 38 | { |
| 39 | 39 | return [ |
| 40 | - new \Twig_SimpleFunction('sylius_inventory_is_available', [$this->helper, 'isStockAvailable']), |
|
| 41 | - new \Twig_SimpleFunction('sylius_inventory_is_sufficient', [$this->helper, 'isStockSufficient']), |
|
| 40 | + new \Twig_SimpleFunction('sylius_inventory_is_available', [$this->helper, 'isStockAvailable']), |
|
| 41 | + new \Twig_SimpleFunction('sylius_inventory_is_sufficient', [$this->helper, 'isStockSufficient']), |
|
| 42 | 42 | ]; |
| 43 | 43 | } |
| 44 | 44 | |
@@ -969,7 +969,7 @@ discard block |
||
| 969 | 969 | ], |
| 970 | 970 | ]; |
| 971 | 971 | $routeFactory->createRoute('/products/new', $createDefaults, [], [], '', [], ['GET', 'POST']) |
| 972 | - ->willReturn($createRoute); |
|
| 972 | + ->willReturn($createRoute); |
|
| 973 | 973 | $routeCollection->add('sylius_product_create', $createRoute)->shouldBeCalled(); |
| 974 | 974 | |
| 975 | 975 | $updateDefaults = [ |
@@ -979,7 +979,7 @@ discard block |
||
| 979 | 979 | ], |
| 980 | 980 | ]; |
| 981 | 981 | $routeFactory->createRoute('/products/{id}/edit', $updateDefaults, [], [], '', [], ['GET', 'PUT', 'PATCH']) |
| 982 | - ->willReturn($updateRoute); |
|
| 982 | + ->willReturn($updateRoute); |
|
| 983 | 983 | $routeCollection->add('sylius_product_update', $updateRoute)->shouldBeCalled(); |
| 984 | 984 | |
| 985 | 985 | $deleteDefaults = [ |
@@ -989,7 +989,7 @@ discard block |
||
| 989 | 989 | ], |
| 990 | 990 | ]; |
| 991 | 991 | $routeFactory->createRoute('/products/{id}', $deleteDefaults, [], [], '', [], ['DELETE']) |
| 992 | - ->willReturn($deleteRoute); |
|
| 992 | + ->willReturn($deleteRoute); |
|
| 993 | 993 | $routeCollection->add('sylius_product_delete', $deleteRoute)->shouldBeCalled(); |
| 994 | 994 | |
| 995 | 995 | $this->load($configuration, 'sylius.resource')->shouldReturn($routeCollection); |
@@ -30,26 +30,26 @@ |
||
| 30 | 30 | ->add('type', ChoiceType::class, [ |
| 31 | 31 | 'label' => 'sylius.form.credit_card.type', |
| 32 | 32 | 'expanded' => true, |
| 33 | - ]) |
|
| 34 | - ->add('cardholderName', TextType::class, [ |
|
| 33 | + ]) |
|
| 34 | + ->add('cardholderName', TextType::class, [ |
|
| 35 | 35 | 'label' => 'sylius.form.credit_card.cardholder_name', |
| 36 | - ]) |
|
| 37 | - ->add('number', TextType::class, [ |
|
| 38 | - 'label' => 'sylius.form.credit_card.number', |
|
| 39 | - ]) |
|
| 40 | - ->add('securityCode', TextType::class, [ |
|
| 41 | - 'label' => 'sylius.form.credit_card.security_code', |
|
| 42 | - ]) |
|
| 43 | - ->add('expiryMonth', ChoiceType::class, [ |
|
| 44 | - 'choices' => $this->getMonthChoices(), |
|
| 45 | - 'choice_translation_domain' => false, |
|
| 46 | - 'label' => 'sylius.form.credit_card.expiry_month', |
|
| 47 | - ]) |
|
| 48 | - ->add('expiryYear', ChoiceType::class, [ |
|
| 49 | - 'choices' => $this->getViableYears(), |
|
| 50 | - 'choice_translation_domain' => false, |
|
| 51 | - 'label' => 'sylius.form.credit_card.expiry_year', |
|
| 52 | - ]) |
|
| 36 | + ]) |
|
| 37 | + ->add('number', TextType::class, [ |
|
| 38 | + 'label' => 'sylius.form.credit_card.number', |
|
| 39 | + ]) |
|
| 40 | + ->add('securityCode', TextType::class, [ |
|
| 41 | + 'label' => 'sylius.form.credit_card.security_code', |
|
| 42 | + ]) |
|
| 43 | + ->add('expiryMonth', ChoiceType::class, [ |
|
| 44 | + 'choices' => $this->getMonthChoices(), |
|
| 45 | + 'choice_translation_domain' => false, |
|
| 46 | + 'label' => 'sylius.form.credit_card.expiry_month', |
|
| 47 | + ]) |
|
| 48 | + ->add('expiryYear', ChoiceType::class, [ |
|
| 49 | + 'choices' => $this->getViableYears(), |
|
| 50 | + 'choice_translation_domain' => false, |
|
| 51 | + 'label' => 'sylius.form.credit_card.expiry_year', |
|
| 52 | + ]) |
|
| 53 | 53 | ; |
| 54 | 54 | } |
| 55 | 55 | |
@@ -33,9 +33,9 @@ discard block |
||
| 33 | 33 | } |
| 34 | 34 | |
| 35 | 35 | /** |
| 36 | - * @param int $length |
|
| 37 | - * @return string |
|
| 38 | - */ |
|
| 36 | + * @param int $length |
|
| 37 | + * @return string |
|
| 38 | + */ |
|
| 39 | 39 | public function generate($length) |
| 40 | 40 | { |
| 41 | 41 | $token = ''; |
@@ -49,11 +49,11 @@ discard block |
||
| 49 | 49 | } |
| 50 | 50 | |
| 51 | 51 | /** |
| 52 | - * @param int $min |
|
| 53 | - * @param int $max |
|
| 52 | + * @param int $min |
|
| 53 | + * @param int $max |
|
| 54 | 54 | * |
| 55 | - * @return int |
|
| 56 | - */ |
|
| 55 | + * @return int |
|
| 56 | + */ |
|
| 57 | 57 | private function getRandomInteger($min, $max) |
| 58 | 58 | { |
| 59 | 59 | $range = ($max - $min); |
@@ -52,8 +52,8 @@ |
||
| 52 | 52 | StateMachineInterface $secondOrderStateMachine |
| 53 | 53 | ) { |
| 54 | 54 | $orderRepository->findOrdersUnpaidSince(Argument::type(\DateTime::class))->willReturn([ |
| 55 | - $firstOrder, |
|
| 56 | - $secondOrder |
|
| 55 | + $firstOrder, |
|
| 56 | + $secondOrder |
|
| 57 | 57 | ]); |
| 58 | 58 | |
| 59 | 59 | $stateMachineFactory->get($firstOrder, 'sylius_order')->willReturn($firstOrderStateMachine); |
@@ -660,7 +660,7 @@ |
||
| 660 | 660 | Assert::true( |
| 661 | 661 | $this->createPage->isUserFormHidden(), |
| 662 | 662 | 'There should not be password field, but it is.' |
| 663 | - ); |
|
| 663 | + ); |
|
| 664 | 664 | } |
| 665 | 665 | |
| 666 | 666 | /** |