Passed
Push — master ( 62dee2...4b8e5c )
by Dane
02:13
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   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -99,11 +99,11 @@  discard block
 block discarded – undo
99 99
             /** @infection-ignore-all */
100 100
             $cache = new FilesystemAdapter('cache', 300, $directory);
101 101
             $orgUuid = getenv('AH_ORGANIZATION_UUID');
102
-            $cacheKey = 'cloudapi-token-' . $this->clientId . $orgUuid;
103
-            $accessToken = $cache->get($cacheKey, function () use ($orgUuid) {
102
+            $cacheKey = 'cloudapi-token-'.$this->clientId.$orgUuid;
103
+            $accessToken = $cache->get($cacheKey, function() use ($orgUuid) {
104 104
                 $options = [];
105 105
                 if ($orgUuid) {
106
-                    $options['scope'] = 'organization:' . $orgUuid;
106
+                    $options['scope'] = 'organization:'.$orgUuid;
107 107
                 }
108 108
                 return $this->provider->getAccessToken('client_credentials', $options);
109 109
             });
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
 
114 114
         return $this->provider->getAuthenticatedRequest(
115 115
             $verb,
116
-            $this->getBaseUri() . $path,
116
+            $this->getBaseUri().$path,
117 117
             $this->accessToken
118 118
         );
119 119
     }
Please login to merge, or discard this patch.
src/Response/CronResponse.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
9 9
     /**
10 10
      * @var null[]|object
11 11
      */
12
-    public array|object $server;
12
+    public array | object $server;
13 13
 
14 14
     public string $command;
15 15
 
Please login to merge, or discard this patch.
src/Response/SitesResponse.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 ($site) {
19
+                static function($site) {
20 20
                     return new SiteResponse($site);
21 21
                 },
22 22
                 $sites
Please login to merge, or discard this patch.
src/Response/CodebaseEnvironmentsResponse.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 ($environment) {
19
+                static function($environment) {
20 20
                     return new CodebaseEnvironmentResponse($environment);
21 21
                 },
22 22
                 $environments
Please login to merge, or discard this patch.
src/Response/ReferencesResponse.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 ($reference) {
19
+                static function($reference) {
20 20
                     return new ReferenceResponse($reference);
21 21
                 },
22 22
                 $references
Please login to merge, or discard this patch.
src/Response/BulkCodeSwitchResponse.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -12,13 +12,13 @@
 block discarded – undo
12 12
     /**
13 13
      * @param array<object>|object|array<int,array<string,string>> $bulkCodeSwitch
14 14
      */
15
-    public function __construct(array|object $bulkCodeSwitch)
15
+    public function __construct(array | object $bulkCodeSwitch)
16 16
     {
17 17
         if (is_array($bulkCodeSwitch)) {
18 18
             // Handle array of bulk code switches
19 19
             parent::__construct(
20 20
                 array_map(
21
-                    static function ($item) {
21
+                    static function($item) {
22 22
                         return (object) $item;
23 23
                     },
24 24
                     $bulkCodeSwitch
Please login to merge, or discard this patch.