Passed
Pull Request — master (#111)
by Adam
01:45
created
src/Connector/Connector.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
         if (!isset($this->accessToken) || $this->accessToken->hasExpired()) {
70 70
             $directory = sprintf('%s%s%s', Path::getHomeDirectory(), \DIRECTORY_SEPARATOR, '.acquia-php-sdk-v2');
71 71
             $cache = new FilesystemAdapter('cache', 300, $directory);
72
-            $accessToken = $cache->get('cloudapi-token', function () {
72
+            $accessToken = $cache->get('cloudapi-token', function() {
73 73
                 return $this->provider->getAccessToken('client_credentials');
74 74
             });
75 75
 
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
 
79 79
         return $this->provider->getAuthenticatedRequest(
80 80
             $verb,
81
-            self::BASE_URI . $path,
81
+            self::BASE_URI.$path,
82 82
             $this->accessToken
83 83
         );
84 84
     }
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
@@ -65,7 +65,7 @@
 block discarded – undo
65 65
      */
66 66
     public function getVersion(): string
67 67
     {
68
-        if ($file = @file_get_contents(dirname(dirname(__DIR__)) . '/VERSION')) {
68
+        if ($file = @file_get_contents(dirname(dirname(__DIR__)).'/VERSION')) {
69 69
             return trim($file);
70 70
         } else {
71 71
             throw new \Exception('No VERSION file');
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
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
      * @param  string $branch
38 38
      * @return OperationResponse
39 39
      */
40
-    public function switch($environmentUuid, $branch): OperationResponse
40
+    public function switch ($environmentUuid, $branch): OperationResponse
41 41
     {
42 42
 
43 43
         $options = [
Please login to merge, or discard this patch.
src/Response/GenericResponse.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -17,11 +17,11 @@
 block discarded – undo
17 17
     public function getLink(string $name)
18 18
     {
19 19
         if (!property_exists($this, 'links')) {
20
-            throw new NoLinkedResourceException('No linked resources for' . get_called_class());
20
+            throw new NoLinkedResourceException('No linked resources for'.get_called_class());
21 21
         } elseif (!property_exists($this->links, $name)) {
22
-            throw new LinkedResourceNotFoundException('No property exists for ' . $name);
22
+            throw new LinkedResourceNotFoundException('No property exists for '.$name);
23 23
         } elseif (!property_exists($this->links->$name, 'href')) {
24
-            throw new LinkedResourceNotFoundException('href property not found on ' . $name);
24
+            throw new LinkedResourceNotFoundException('href property not found on '.$name);
25 25
         }
26 26
         return $this->links->$name->href;
27 27
     }
Please login to merge, or discard this patch.
src/Endpoints/CloudApiBase.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
45 45
         // Get the final array element which we use to determine the response type.
46 46
         $type = end($segments);
47 47
 
48
-        switch($type) {
48
+        switch ($type) {
49 49
             case 'alerts':
50 50
                 return new \AcquiaCloudApi\Response\InsightAlertsResponse(
51 51
                     $this->client->request('get', $path)
Please login to merge, or discard this patch.