Test Failed
Push — master ( 3167ce...8fca71 )
by Lyal
06:02
created
src/Exceptions/Client/Conflict.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@
 block discarded – undo
6 6
 {
7 7
     public function __construct($response)
8 8
     {
9
-        $message = 'The request failed due to a resource conflict. This can occur if you attempt to to create a duplicate of an existing resource as well as when you attempt to delete a resource that is needed for the functioning of other resources.  Response: ' . $response;
9
+        $message = 'The request failed due to a resource conflict. This can occur if you attempt to to create a duplicate of an existing resource as well as when you attempt to delete a resource that is needed for the functioning of other resources.  Response: '.$response;
10 10
         parent::__construct($message);
11 11
     }
12 12
 }
13 13
\ No newline at end of file
Please login to merge, or discard this patch.
src/Exceptions/Client/Unauthorized.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@
 block discarded – undo
6 6
 {
7 7
     public function __construct($response)
8 8
     {
9
-        $message = 'Authentication with the API key failed.  Make sure you are using the correct API key. Response: ' . $response;
9
+        $message = 'Authentication with the API key failed.  Make sure you are using the correct API key. Response: '.$response;
10 10
         parent::__construct($message);
11 11
     }
12 12
 }
13 13
\ No newline at end of file
Please login to merge, or discard this patch.
src/Exceptions/Client/BadRequest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@
 block discarded – undo
6 6
 {
7 7
     public function __construct($response)
8 8
     {
9
-        $message = 'The request failed. This is most commonly the result of failing to include all required fields or failing validation on the object. Response: ' . $response;
9
+        $message = 'The request failed. This is most commonly the result of failing to include all required fields or failing validation on the object. Response: '.$response;
10 10
         parent::__construct($message);
11 11
     }
12 12
 }
13 13
\ No newline at end of file
Please login to merge, or discard this patch.
src/Exceptions/ResourceNotCreated.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@
 block discarded – undo
6 6
 {
7 7
     public function __construct($response)
8 8
     {
9
-        $message = 'Object could not be created ' . $response;
9
+        $message = 'Object could not be created '.$response;
10 10
         parent::__construct($message);
11 11
     }
12 12
 }
13 13
\ No newline at end of file
Please login to merge, or discard this patch.
src/Traits/Deleteable.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
 
22 22
     public function getDeletePath()
23 23
     {
24
-        return $this->deletePath ?? $this->getResourceName() . '/' . $this->getAttribute('id');
24
+        return $this->deletePath ?? $this->getResourceName().'/'.$this->getAttribute('id');
25 25
     }
26 26
 
27 27
     public function setDeletePath($path) : void
Please login to merge, or discard this patch.
src/Traits/HasAttributes.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -89,8 +89,8 @@
 block discarded – undo
89 89
 
90 90
         if ($this->checkFields) {
91 91
             return
92
-                in_array(str_singular($field) . '_id', $this->getFields(), false)
93
-                || in_array(str_singular($field) . '_ids', $this->getFields(), false)
92
+                in_array(str_singular($field).'_id', $this->getFields(), false)
93
+                || in_array(str_singular($field).'_ids', $this->getFields(), false)
94 94
                 || in_array($field, $this->getFields(), false)
95 95
                 || in_array($field, $this->getHidden(), false);
96 96
         }
Please login to merge, or discard this patch.
src/Traits/Getable.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
         }
27 27
 
28 28
         if ($parameters) {
29
-            $path .= '?' . http_build_query($parameters);
29
+            $path .= '?'.http_build_query($parameters);
30 30
         }
31 31
         return $this->getClient()->request('get', $path);
32 32
     }
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
     public function load(array $parameters = NULL)
43 43
     {
44 44
         $parameters = $parameters ?? ['id' => $this->getAttribute('id')];
45
-        $path = $this->processPath($this->getLoadPath() ?? $this->getResourceName() . '/' . $this->getAttribute('id'));
45
+        $path = $this->processPath($this->getLoadPath() ?? $this->getResourceName().'/'.$this->getAttribute('id'));
46 46
         $this->setValues($this->getRequest($path, $parameters));
47 47
         return $this;
48 48
     }
Please login to merge, or discard this patch.
src/Traits/Saveable.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
         if ($this->getAttribute('id') === NULL) {
21 21
             throw new IdMissing($this);
22 22
         }
23
-        $path = $this->getSavePath() ?? $this->getResourceName() . '/' . $this->getAttribute('id');
23
+        $path = $this->getSavePath() ?? $this->getResourceName().'/'.$this->getAttribute('id');
24 24
         $this->setValues($this->postRequest($path));
25 25
         return $this;
26 26
     }
Please login to merge, or discard this patch.
src/Traits/Listable.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -124,7 +124,7 @@
 block discarded – undo
124 124
         $this->setCount($items->count);
125 125
         $this->setNextPage();
126 126
 
127
-        foreach ((array)$items->data as $item) {
127
+        foreach ((array) $items->data as $item) {
128 128
             $list[] = new $this($item, $this->getClient());
129 129
         }
130 130
 
Please login to merge, or discard this patch.