| @@ -32,7 +32,7 @@ | ||
| 32 | 32 |          $registry = $container->findDefinition('sylius.registry.grid_driver'); | 
| 33 | 33 | |
| 34 | 34 |          foreach ($container->findTaggedServiceIds('sylius.grid_driver') as $id => $attributes) { | 
| 35 | -            if (!isset($attributes[0]['alias']))  { | |
| 35 | +            if (!isset($attributes[0]['alias'])) { | |
| 36 | 36 |                  throw new \InvalidArgumentException('Tagged grid drivers needs to have `alias` attribute.'); | 
| 37 | 37 | } | 
| 38 | 38 | |
| @@ -124,7 +124,8 @@ | ||
| 124 | 124 |              if (isset($options['suffix'])) { | 
| 125 | 125 | $suffix = $options['suffix']; | 
| 126 | 126 | |
| 127 | -                if (substr($this->parentSlug, -strlen($suffix)) === $suffix) { //endsWith | |
| 127 | +                if (substr($this->parentSlug, -strlen($suffix)) === $suffix) { | |
| 128 | +//endsWith | |
| 128 | 129 | $this->parentSlug = substr_replace($this->parentSlug, '', -1 * strlen($suffix)); | 
| 129 | 130 | } | 
| 130 | 131 | } | 
| @@ -28,7 +28,8 @@ | ||
| 28 | 28 | */ | 
| 29 | 29 | class ThemeAwareTranslatorSpec extends ObjectBehavior | 
| 30 | 30 |  { | 
| 31 | -    function let(TranslatorInterface $translator, ThemeContextInterface $themeContext) { | |
| 31 | + function let(TranslatorInterface $translator, ThemeContextInterface $themeContext) | |
| 32 | +    { | |
| 32 | 33 | $translator->implement(TranslatorBagInterface::class); | 
| 33 | 34 | |
| 34 | 35 | $this->beConstructedWith($translator, $themeContext); | 
| @@ -32,7 +32,7 @@ | ||
| 32 | 32 |          $registry = $container->getDefinition('sylius.registry.grid_filter'); | 
| 33 | 33 | |
| 34 | 34 |          foreach ($container->findTaggedServiceIds('sylius.grid_filter') as $id => $attributes) { | 
| 35 | -            if (!isset($attributes[0]['type']))  { | |
| 35 | +            if (!isset($attributes[0]['type'])) { | |
| 36 | 36 |                  throw new \InvalidArgumentException('Tagged grid filters needs to have `type` attribute.'); | 
| 37 | 37 | } | 
| 38 | 38 | |
| @@ -65,8 +65,7 @@ | ||
| 65 | 65 | |
| 66 | 66 | function is_configures_options( | 
| 67 | 67 | OptionsResolver $resolver | 
| 68 | - ) | |
| 69 | -    { | |
| 68 | +    ) { | |
| 70 | 69 | $resolver->setDefaults([ | 
| 71 | 70 | 'format' => 'Y:m:d H:i:s' | 
| 72 | 71 | ])->shouldBeCalled(); | 
| @@ -144,7 +144,8 @@ | ||
| 144 | 144 | /** | 
| 145 | 145 |       * {@inheritdoc} | 
| 146 | 146 | */ | 
| 147 | -    public function getValidationMessageForImageAtPlace($place) { | |
| 147 | + public function getValidationMessageForImageAtPlace($place) | |
| 148 | +    { | |
| 148 | 149 | |
| 149 | 150 | $images = $this->getImageElements(); | 
| 150 | 151 | |
| @@ -45,7 +45,7 @@ | ||
| 45 | 45 | function it_throws_unexpected_type_excepotion_if_data_is_not_customer_type( | 
| 46 | 46 | FormEvent $event, | 
| 47 | 47 | ShopUserInterface $user | 
| 48 | -    ){ | |
| 48 | +    ) { | |
| 49 | 49 | $event->getData()->willReturn($user); | 
| 50 | 50 | |
| 51 | 51 |          $this->shouldThrow(UnexpectedTypeException::class)->during('submit', [$event]); | 
| @@ -45,7 +45,7 @@ | ||
| 45 | 45 | SessionInterface $session, | 
| 46 | 46 | OrderRepositoryInterface $orderRepository, | 
| 47 | 47 | OrderInterface $cart | 
| 48 | -    )  { | |
| 48 | +    ) { | |
| 49 | 49 |          $session->has('session_key_name')->willReturn(true); | 
| 50 | 50 |          $session->get('session_key_name')->willReturn(12345); | 
| 51 | 51 | $orderRepository->findCartById(12345)->willReturn($cart); | 
| @@ -47,7 +47,7 @@ discard block | ||
| 47 | 47 | array $parameters, | 
| 48 | 48 | RouterInterface $router, | 
| 49 | 49 | AddressFactoryInterface $addressFactory | 
| 50 | -    ){ | |
| 50 | +    ) { | |
| 51 | 51 | parent::__construct($session, $parameters, $router); | 
| 52 | 52 | |
| 53 | 53 | $this->addressFactory = $addressFactory; | 
| @@ -412,7 +412,7 @@ discard block | ||
| 412 | 412 | */ | 
| 413 | 413 | private function waitForElement($timeout, $elementName) | 
| 414 | 414 |      { | 
| 415 | -        return $this->getDocument()->waitFor($timeout, function () use ($elementName){ | |
| 415 | +        return $this->getDocument()->waitFor($timeout, function () use ($elementName) { | |
| 416 | 416 | return $this->hasElement($elementName); | 
| 417 | 417 | }); | 
| 418 | 418 | } |