Completed
Push — master ( dd33b3...946b97 )
by Lyal
19:36 queued 17:10
created
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.
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)
Please login to merge, or discard this patch.
src/Client.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -208,12 +208,12 @@
 block discarded – undo
208 208
     {
209 209
         $body = '';
210 210
         $options = array_merge($this->getOptions(), $options);
211
-        $options['auth'] = [$this->getKey() . ':', ''];
211
+        $options['auth'] = [$this->getKey().':', ''];
212 212
 
213 213
         try {
214
-            $response = $this->getHttpClient()->request($method, $this->getApiEndPoint() . $path, $options);
214
+            $response = $this->getHttpClient()->request($method, $this->getApiEndPoint().$path, $options);
215 215
             $this->setLastResponse($response);
216
-            $body = json_decode((string)$response->getBody());
216
+            $body = json_decode((string) $response->getBody());
217 217
         } catch (BadResponseException $exception) {
218 218
             $this->handleError($exception);
219 219
         }
Please login to merge, or discard this patch.
src/Entities/AbstractEntity.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
      */
47 47
     public function setPreviousObject(AbstractEntity $object)
48 48
     {
49
-        $objectId = strtolower((new \ReflectionClass($object))->getShortName()) . '_id';
49
+        $objectId = strtolower((new \ReflectionClass($object))->getShortName()).'_id';
50 50
         if (null !== $object->getAttribute('id') && $this->checkField($objectId)) {
51 51
             $this->setAttribute($objectId, $object->getAttribute('id'));
52 52
         }
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
             return;
70 70
         }
71 71
 
72
-        foreach ((array)$values as $key => $value) {
72
+        foreach ((array) $values as $key => $value) {
73 73
             if (isset($value->object)) {
74 74
                 $className = checkrEntityClassName($value->object);
75 75
                 $value = new $className($value, $this->getClient());
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
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
         if ($this->getAttribute('id') === null) {
38 38
             throw new IdMissing($this);
39 39
         }
40
-        $path = $this->getSavePath() ?? $this->getResourceName() . '/' . $this->getAttribute('id');
40
+        $path = $this->getSavePath() ?? $this->getResourceName().'/'.$this->getAttribute('id');
41 41
         $this->setValues($this->postRequest($path));
42 42
 
43 43
         return $this;
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
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
         }
39 39
 
40 40
         if ($parameters) {
41
-            $path .= '?' . http_build_query($parameters);
41
+            $path .= '?'.http_build_query($parameters);
42 42
         }
43 43
 
44 44
         return $this->getClient()->request('get', $path);
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
     public function load(array $parameters = null)
55 55
     {
56 56
         $parameters = $parameters ?? ['id' => $this->getAttribute('id')];
57
-        $path = $this->processPath($this->getLoadPath() ?? $this->getResourceName() . '/' . $this->getAttribute('id'));
57
+        $path = $this->processPath($this->getLoadPath() ?? $this->getResourceName().'/'.$this->getAttribute('id'));
58 58
         $this->setValues($this->getRequest($path, $parameters));
59 59
 
60 60
         return $this;
Please login to merge, or discard this patch.
src/RequestErrorHandler.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -27,8 +27,8 @@
 block discarded – undo
27 27
     {
28 28
         $errorCode = $this->exception->getResponse()->getStatusCode();
29 29
 
30
-        if (method_exists($this, 'handle' . $errorCode)) {
31
-            $this->{'handle' . $errorCode}();
30
+        if (method_exists($this, 'handle'.$errorCode)) {
31
+            $this->{'handle'.$errorCode}();
32 32
         }
33 33
         $this->handleUnknown();
34 34
 
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
@@ -93,8 +93,8 @@
 block discarded – undo
93 93
 
94 94
         return
95 95
             $field === 'include'
96
-            || in_array(str_singular($field) . '_id', $this->getFields(), false)
97
-            || in_array(str_singular($field) . '_ids', $this->getFields(), false)
96
+            || in_array(str_singular($field).'_id', $this->getFields(), false)
97
+            || in_array(str_singular($field).'_ids', $this->getFields(), false)
98 98
             || in_array($field, $this->getFields(), false)
99 99
             || in_array($field, $this->getHidden(), false);
100 100
     }
Please login to merge, or discard this patch.
src/Laravel/CheckrServiceProvider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -13,13 +13,13 @@
 block discarded – undo
13 13
 
14 14
     public function boot()
15 15
     {
16
-        $this->loadRoutesFrom(__DIR__ . '/Routes/api.php');
16
+        $this->loadRoutesFrom(__DIR__.'/Routes/api.php');
17 17
     }
18 18
 
19 19
     public function register()
20 20
     {
21 21
         $this->app['router']->aliasMiddleware('checkr_webhook', Webhook::class);
22
-        $this->app->bind('lyalt.checkr', function () {
22
+        $this->app->bind('lyalt.checkr', function() {
23 23
             return new Client(new Guzzle);
24 24
         });
25 25
     }
Please login to merge, or discard this patch.