Completed
Branch master (ea5582)
by Toni
04:11
created
Category
src/Adlogix/Confluence/Client/Entity/Connect/Descriptor.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -82,11 +82,11 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
Confluence/Client/HttpClient/Middleware/AuthenticationMiddleware.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@
 block discarded – undo
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()
Please login to merge, or discard this patch.
src/Adlogix/Confluence/Client/ClientBuilder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -118,7 +118,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/Adlogix/Confluence/Client/Service/ContentService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
src/Adlogix/Confluence/Client/Service/AbstractApiService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
index.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -98,7 +98,7 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.