@@ -67,7 +67,7 @@ |
||
67 | 67 | public function getMatchers() |
68 | 68 | { |
69 | 69 | return [ |
70 | - 'beSameResourceGridViewAs' => function ($subject, $key) { |
|
70 | + 'beSameResourceGridViewAs' => function($subject, $key) { |
|
71 | 71 | if (!$subject instanceof ResourceGridView || !$key instanceof ResourceGridView) { |
72 | 72 | return false; |
73 | 73 | } |
@@ -82,22 +82,22 @@ |
||
82 | 82 | } |
83 | 83 | |
84 | 84 | if (in_array('create', $routesToGenerate)) { |
85 | - $createRoute = $this->createRoute($metadata, $configuration, $isApi ? $rootPath : $rootPath . 'new', 'create', $isApi ? ['POST'] : ['GET', 'POST'], $isApi); |
|
85 | + $createRoute = $this->createRoute($metadata, $configuration, $isApi ? $rootPath : $rootPath.'new', 'create', $isApi ? ['POST'] : ['GET', 'POST'], $isApi); |
|
86 | 86 | $routes->add($this->getRouteName($metadata, $configuration, 'create'), $createRoute); |
87 | 87 | } |
88 | 88 | |
89 | 89 | if (in_array('update', $routesToGenerate)) { |
90 | - $updateRoute = $this->createRoute($metadata, $configuration, $isApi ? $rootPath . '{id}' : $rootPath . '{id}/edit', 'update', $isApi ? ['PUT', 'PATCH'] : ['GET', 'PUT', 'PATCH'], $isApi); |
|
90 | + $updateRoute = $this->createRoute($metadata, $configuration, $isApi ? $rootPath.'{id}' : $rootPath.'{id}/edit', 'update', $isApi ? ['PUT', 'PATCH'] : ['GET', 'PUT', 'PATCH'], $isApi); |
|
91 | 91 | $routes->add($this->getRouteName($metadata, $configuration, 'update'), $updateRoute); |
92 | 92 | } |
93 | 93 | |
94 | 94 | if (in_array('show', $routesToGenerate)) { |
95 | - $showRoute = $this->createRoute($metadata, $configuration, $rootPath . '{id}', 'show', ['GET'], $isApi); |
|
95 | + $showRoute = $this->createRoute($metadata, $configuration, $rootPath.'{id}', 'show', ['GET'], $isApi); |
|
96 | 96 | $routes->add($this->getRouteName($metadata, $configuration, 'show'), $showRoute); |
97 | 97 | } |
98 | 98 | |
99 | 99 | if (in_array('delete', $routesToGenerate)) { |
100 | - $deleteRoute = $this->createRoute($metadata, $configuration, $rootPath . '{id}', 'delete', ['DELETE'], $isApi); |
|
100 | + $deleteRoute = $this->createRoute($metadata, $configuration, $rootPath.'{id}', 'delete', ['DELETE'], $isApi); |
|
101 | 101 | $routes->add($this->getRouteName($metadata, $configuration, 'delete'), $deleteRoute); |
102 | 102 | } |
103 | 103 |
@@ -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 |
@@ -53,7 +53,7 @@ |
||
53 | 53 | public function getMatchers() |
54 | 54 | { |
55 | 55 | return [ |
56 | - 'beSameAs' => function ($subject, $key) { |
|
56 | + 'beSameAs' => function($subject, $key) { |
|
57 | 57 | if (!$subject instanceof OrderItemUnitInterface || !$key instanceof OrderItemUnitInterface) { |
58 | 58 | return false; |
59 | 59 | } |
@@ -53,7 +53,7 @@ |
||
53 | 53 | public function getMatchers() |
54 | 54 | { |
55 | 55 | return [ |
56 | - 'beSameAs' => function ($subject, $key) { |
|
56 | + 'beSameAs' => function($subject, $key) { |
|
57 | 57 | if (!$subject instanceof OrderItemUnitInterface || !$key instanceof OrderItemUnitInterface) { |
58 | 58 | return false; |
59 | 59 | } |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | */ |
45 | 45 | public function pay() |
46 | 46 | { |
47 | - $this->getDriver()->visit($this->findCaptureToken()->getTargetUrl() . '?token=EC-2d9EV13959UR209410U&PayerID=UX8WBNYWGBVMG'); |
|
47 | + $this->getDriver()->visit($this->findCaptureToken()->getTargetUrl().'?token=EC-2d9EV13959UR209410U&PayerID=UX8WBNYWGBVMG'); |
|
48 | 48 | } |
49 | 49 | |
50 | 50 | /** |
@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | */ |
53 | 53 | public function cancel() |
54 | 54 | { |
55 | - $this->getDriver()->visit($this->findCaptureToken()->getTargetUrl() . '?token=EC-2d9EV13959UR209410U&cancelled=1'); |
|
55 | + $this->getDriver()->visit($this->findCaptureToken()->getTargetUrl().'?token=EC-2d9EV13959UR209410U&cancelled=1'); |
|
56 | 56 | } |
57 | 57 | |
58 | 58 | /** |
@@ -40,7 +40,7 @@ |
||
40 | 40 | */ |
41 | 41 | public function waitForResponse($timeout, array $parameters = []) |
42 | 42 | { |
43 | - $this->getDocument()->waitFor($timeout, function () use ($parameters) { |
|
43 | + $this->getDocument()->waitFor($timeout, function() use ($parameters) { |
|
44 | 44 | return $this->isOpen($parameters); |
45 | 45 | }); |
46 | 46 | } |
@@ -53,7 +53,7 @@ |
||
53 | 53 | $builder->add('payment', 'sylius_checkout_payment')->willReturn($builder)->shouldBeCalled(); |
54 | 54 | $builder->add('finalize', 'sylius_checkout_finalize')->willReturn($builder)->shouldBeCalled(); |
55 | 55 | $builder->setRedirect('sylius_order_purchase')->willReturn($builder)->shouldBeCalled(); |
56 | - $builder->setRedirectParams(['paymentId' => 1])->willReturn($builder)->shouldBeCalled();; |
|
56 | + $builder->setRedirectParams(['paymentId' => 1])->willReturn($builder)->shouldBeCalled(); ; |
|
57 | 57 | |
58 | 58 | $cart->getId()->willReturn(1); |
59 | 59 |
@@ -40,7 +40,7 @@ |
||
40 | 40 | */ |
41 | 41 | public function waitForResponse($timeout, array $parameters = []) |
42 | 42 | { |
43 | - $this->getDocument()->waitFor($timeout, function () use ($parameters) { |
|
43 | + $this->getDocument()->waitFor($timeout, function() use ($parameters) { |
|
44 | 44 | return $this->isOpen($parameters); |
45 | 45 | }); |
46 | 46 | } |