@@ -24,7 +24,7 @@ |
||
24 | 24 | $container->setParameter('codecloud_shopify.api_version', $config['api_version']); |
25 | 25 | |
26 | 26 | foreach ($config['oauth'] as $key => $value) { |
27 | - $container->setParameter('codecloud_shopify.oauth.'.$key, $value); |
|
27 | + $container->setParameter('codecloud_shopify.oauth.' . $key, $value); |
|
28 | 28 | } |
29 | 29 | |
30 | 30 | $loader = new YamlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config')); |
@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | $request = $this->applyApiVersion($request); |
44 | 44 | $response = $this->process($request); |
45 | 45 | |
46 | - if (! $response->successful()) { |
|
46 | + if (!$response->successful()) { |
|
47 | 47 | throw new FailedRequestException('Failed request. ' . $response->getHttpResponse()->getReasonPhrase()); |
48 | 48 | } |
49 | 49 | |
@@ -71,7 +71,7 @@ discard block |
||
71 | 71 | */ |
72 | 72 | protected function createCollection($items, GenericResource $prototype = null) |
73 | 73 | { |
74 | - if (! $prototype) { |
|
74 | + if (!$prototype) { |
|
75 | 75 | $prototype = new GenericResource(); |
76 | 76 | } |
77 | 77 | |
@@ -134,7 +134,7 @@ discard block |
||
134 | 134 | } |
135 | 135 | |
136 | 136 | $uri = $request->getUri(); |
137 | - $uri = $uri->withPath(str_replace("/admin/", "/admin/api/".$this->apiVersion."/", $uri->getPath())); |
|
137 | + $uri = $uri->withPath(str_replace("/admin/", "/admin/api/" . $this->apiVersion . "/", $uri->getPath())); |
|
138 | 138 | return $request->withUri($uri); |
139 | 139 | } |
140 | 140 |