@@ -82,11 +82,11 @@ |
||
82 | 82 | */ |
83 | 83 | public function __construct($baseUrl, $key) |
84 | 84 | { |
85 | - if(strlen($key) >= 80){ |
|
85 | + if (strlen($key) >= 80) { |
|
86 | 86 | throw new \InvalidArgumentException('Atlassian requires that the application key is less than or equals to 80 characters'); |
87 | 87 | } |
88 | 88 | |
89 | - if(preg_match('/^[a-zA-Z0-9-._]+$/', $key) !== 1){ |
|
89 | + if (preg_match('/^[a-zA-Z0-9-._]+$/', $key) !== 1) { |
|
90 | 90 | throw new \InvalidArgumentException('Invalid character : The application key may only contain characters including ".", "_", "-" and alphanumeric characters'); |
91 | 91 | } |
92 | 92 |
@@ -60,7 +60,7 @@ |
||
60 | 60 | */ |
61 | 61 | public function __invoke(callable $handler) |
62 | 62 | { |
63 | - return function (RequestInterface $request, array $options) use ($handler) { |
|
63 | + return function(RequestInterface $request, array $options) use ($handler) { |
|
64 | 64 | |
65 | 65 | $this->authentication |
66 | 66 | ->getToken() |
@@ -118,7 +118,7 @@ |
||
118 | 118 | private function buildDefaultSerializer() |
119 | 119 | { |
120 | 120 | return SerializerBuilder::create() |
121 | - ->addMetadataDir(__DIR__ . '/Resources/serializer', __NAMESPACE__) |
|
121 | + ->addMetadataDir(__DIR__.'/Resources/serializer', __NAMESPACE__) |
|
122 | 122 | ->addDefaultHandlers() |
123 | 123 | ->build(); |
124 | 124 | } |
@@ -50,7 +50,7 @@ |
||
50 | 50 | |
51 | 51 | public function findById($id) |
52 | 52 | { |
53 | - $content = $this->get('content/' . $id); |
|
53 | + $content = $this->get('content/'.$id); |
|
54 | 54 | return $this->deserialize( |
55 | 55 | $content, |
56 | 56 | Content::class |
@@ -61,7 +61,7 @@ |
||
61 | 61 | * |
62 | 62 | * @return mixed |
63 | 63 | */ |
64 | - protected function mergeQueryOptions(array $oldQueryOptions, array $newQueryOptions){ |
|
64 | + protected function mergeQueryOptions(array $oldQueryOptions, array $newQueryOptions) { |
|
65 | 65 | return array_merge_recursive( |
66 | 66 | $oldQueryOptions, |
67 | 67 | $newQueryOptions |
@@ -98,7 +98,7 @@ |
||
98 | 98 | try { |
99 | 99 | var_dump($client->space()->all()); |
100 | 100 | } catch (ApiException $e) { |
101 | - echo 'ApiException' . $e->getMessage(); |
|
101 | + echo 'ApiException'.$e->getMessage(); |
|
102 | 102 | } |
103 | 103 | |
104 | 104 | break; |