Passed
Pull Request — master (#111)
by Adam
03:34 queued 01:29
created
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/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
-                function ($child) use ($class) {
43
+                function($child) use ($class) {
44 44
                     return new $class($child);
45 45
                 },
46 46
                 $items
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.