Passed
Pull Request — master (#384)
by Dane
01:57
created
src/Response/BranchesResponse.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
     {
17 17
         parent::__construct(
18 18
             array_map(
19
-                static function ($branch) {
19
+                static function($branch) {
20 20
                     return new BranchResponse($branch);
21 21
                 },
22 22
                 $branches
Please login to merge, or discard this patch.
src/Response/ApplicationsResponse.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
     {
17 17
         parent::__construct(
18 18
             array_map(
19
-                static function ($application) {
19
+                static function($application) {
20 20
                     return new ApplicationResponse($application);
21 21
                 },
22 22
                 $applications
Please login to merge, or discard this patch.
src/Response/BackupsResponse.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
     {
17 17
         parent::__construct(
18 18
             array_map(
19
-                static function ($backup) {
19
+                static function($backup) {
20 20
                     return new BackupResponse($backup);
21 21
                 },
22 22
                 $backups
Please login to merge, or discard this patch.
src/Connector/Connector.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
             $directory = Path::join(Path::getHomeDirectory(), '.acquia-php-sdk-v2');
98 98
             /** @infection-ignore-all */
99 99
             $cache = new FilesystemAdapter('cache', 300, $directory);
100
-            $accessToken = $cache->get('cloudapi-token', function () {
100
+            $accessToken = $cache->get('cloudapi-token', function() {
101 101
                 return $this->provider->getAccessToken('client_credentials');
102 102
             });
103 103
 
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
 
107 107
         return $this->provider->getAuthenticatedRequest(
108 108
             $verb,
109
-            $this->getBaseUri() . $path,
109
+            $this->getBaseUri().$path,
110 110
             $this->accessToken
111 111
         );
112 112
     }
Please login to merge, or discard this patch.
src/Connector/Client.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -186,7 +186,7 @@
 block discarded – undo
186 186
     /**
187 187
      * @inheritdoc
188 188
      */
189
-    public function addQuery(string $name, int|string $value): void
189
+    public function addQuery(string $name, int | string $value): void
190 190
     {
191 191
         $this->query = array_merge_recursive($this->query, [$name => $value]);
192 192
     }
Please login to merge, or discard this patch.
src/Exception/ApiErrorException.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
      */
31 31
     public function __toString(): string
32 32
     {
33
-        return __CLASS__ . ": [{$this->errorType}]: {$this->message}\n";
33
+        return __CLASS__.": [{$this->errorType}]: {$this->message}\n";
34 34
     }
35 35
 
36 36
     /**
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
         if (is_array($response_body->message) || is_object($response_body->message)) {
43 43
             $output = '';
44 44
             foreach ($response_body->message as $message) {
45
-                $output .= $message . PHP_EOL;
45
+                $output .= $message.PHP_EOL;
46 46
             }
47 47
             $this->message = $output;
48 48
         } else {
Please login to merge, or discard this patch.
src/Endpoints/Code.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
     /**
32 32
      * Deploys a code branch/tag to an environment.
33 33
      */
34
-    public function switch(string $environmentUuid, string $branch): OperationResponse
34
+    public function switch (string $environmentUuid, string $branch): OperationResponse
35 35
     {
36 36
 
37 37
         $options = [
Please login to merge, or discard this patch.
src/Response/TagsResponse.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
     {
15 15
         parent::__construct(
16 16
             array_map(
17
-                static function ($tag) {
17
+                static function($tag) {
18 18
                     return new TagResponse($tag);
19 19
                 },
20 20
                 $tags
Please login to merge, or discard this patch.
src/Response/InsightModulesResponse.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
     {
15 15
         parent::__construct(
16 16
             array_map(
17
-                static function ($module) {
17
+                static function($module) {
18 18
                     return new InsightModuleResponse($module);
19 19
                 },
20 20
                 $modules
Please login to merge, or discard this patch.