Passed
Pull Request — master (#418)
by Dane
02:09
created
src/Response/CronsResponse.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 ($cron) {
17
+                static function($cron) {
18 18
                     return new CronResponse($cron);
19 19
                 },
20 20
                 $crons
Please login to merge, or discard this patch.
src/Response/EnvironmentsResponse.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 ($environment) {
17
+                static function($environment) {
18 18
                     return new EnvironmentResponse($environment);
19 19
                 },
20 20
                 $environments
Please login to merge, or discard this patch.
src/Connector/ClientInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@
 block discarded – undo
74 74
     /**
75 75
      * Add a query parameter to filter results.
76 76
      */
77
-    public function addQuery(string $name, int|string $value): void;
77
+    public function addQuery(string $name, int | string $value): void;
78 78
 
79 79
     /**
80 80
      * Get options from Client.
Please login to merge, or discard this patch.
src/Connector/Connector.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -91,10 +91,10 @@  discard block
 block discarded – undo
91 91
             $directory = Path::join(Path::getHomeDirectory(), '.acquia-php-sdk-v2');
92 92
             /** @infection-ignore-all */
93 93
             $cache = new FilesystemAdapter('cache', 300, $directory);
94
-            $accessToken = $cache->get('cloudapi-token', function () {
94
+            $accessToken = $cache->get('cloudapi-token', function() {
95 95
                 $options = [];
96 96
                 if ($orgUuid = getenv('AH_ORGANIZATION_UUID')) {
97
-                    $options['scope'] = 'organization:' . $orgUuid;
97
+                    $options['scope'] = 'organization:'.$orgUuid;
98 98
                 }
99 99
                 return $this->provider->getAccessToken('client_credentials', $options);
100 100
             });
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
 
105 105
         return $this->provider->getAuthenticatedRequest(
106 106
             $verb,
107
-            $this->getBaseUri() . $path,
107
+            $this->getBaseUri().$path,
108 108
             $this->accessToken
109 109
         );
110 110
     }
Please login to merge, or discard this patch.