Passed
Pull Request — master (#111)
by Dane
02:49 queued 16s
created
src/Exception/ApiErrorException.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
      */
42 42
     public function __toString()
43 43
     {
44
-        return __CLASS__ . ": [{$this->errorType}]: {$this->message}\n";
44
+        return __CLASS__.": [{$this->errorType}]: {$this->message}\n";
45 45
     }
46 46
 
47 47
     /**
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
         if (is_array($response_body->message) || is_object($response_body->message)) {
55 55
             $output = '';
56 56
             foreach ($response_body->message as $message) {
57
-                $output .= $message . PHP_EOL;
57
+                $output .= $message.PHP_EOL;
58 58
             }
59 59
             $this->message = $output;
60 60
         } 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
@@ -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/Traits/LinkedResourceTrait.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -22,11 +22,11 @@
 block discarded – undo
22 22
     public function getLink(string $name)
23 23
     {
24 24
         if (!property_exists($this, 'links')) {
25
-            throw new NoLinkedResourceException('No linked resources for ' . get_called_class());
25
+            throw new NoLinkedResourceException('No linked resources for '.get_called_class());
26 26
         } elseif (!property_exists($this->links, $name)) {
27
-            throw new LinkedResourceNotFoundException('No property exists for ' . $name . '. Available links are ' . implode(' ', array_keys((array) $this->links)));
27
+            throw new LinkedResourceNotFoundException('No property exists for '.$name.'. Available links are '.implode(' ', array_keys((array) $this->links)));
28 28
         } elseif (!property_exists($this->links->$name, 'href')) {
29
-            throw new LinkedResourceNotFoundException('No href property exists for ' . $name);
29
+            throw new LinkedResourceNotFoundException('No href property exists for '.$name);
30 30
         }
31 31
 
32 32
         return ['type' => $name, 'path' => $this->links->$name->href, 'responseClass' => get_class($this)];
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
@@ -70,6 +70,6 @@
 block discarded – undo
70 70
             );
71 71
         }
72 72
 
73
-        throw new LinkedResourceNotImplementedException($type . ' link not implemented in this SDK. Please file an issue here: https://github.com/typhonius/acquia-php-sdk-v2/issues');
73
+        throw new LinkedResourceNotImplementedException($type.' link not implemented in this SDK. Please file an issue here: https://github.com/typhonius/acquia-php-sdk-v2/issues');
74 74
     }
75 75
 }
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
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
             $directory = sprintf('%s%s%s', Path::getHomeDirectory(), \DIRECTORY_SEPARATOR, '.acquia-php-sdk-v2');
80 80
             /** @infection-ignore-all */
81 81
             $cache = new FilesystemAdapter('cache', 300, $directory);
82
-            $accessToken = $cache->get('cloudapi-token', function () {
82
+            $accessToken = $cache->get('cloudapi-token', function() {
83 83
                 return $this->provider->getAccessToken('client_credentials');
84 84
             });
85 85
 
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
 
89 89
         return $this->provider->getAuthenticatedRequest(
90 90
             $verb,
91
-            $this->baseUri . $path,
91
+            $this->baseUri.$path,
92 92
             $this->accessToken
93 93
         );
94 94
     }
Please login to merge, or discard this patch.
src/Response/CollectionResponse.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -36,11 +36,11 @@
 block discarded – undo
36 36
             $items = $body;
37 37
         }
38 38
 
39
-        $class = '\AcquiaCloudApi\Response\\' . $class;
39
+        $class = '\AcquiaCloudApi\Response\\'.$class;
40 40
 
41 41
         parent::__construct(
42 42
             array_map(
43
-                static function ($child) use ($class) {
43
+                static function($child) use ($class) {
44 44
                     return new $class($child);
45 45
                 },
46 46
                 $items
Please login to merge, or discard this patch.