Passed
Push — master ( 96636a...396363 )
by Alex
09:19 queued 05:52
created
src/Models/Model.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
         $except = is_array($keys) ? $keys : [$keys];
46 46
 
47 47
         foreach (array_keys($this->toArray()) as $key) {
48
-            if (! in_array($key, $except)) {
48
+            if (!in_array($key, $except)) {
49 49
                 $results[$key] = $this->$key;
50 50
             }
51 51
         }
Please login to merge, or discard this patch.
src/PhpIPAMServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
 
20 20
     public function register()
21 21
     {
22
-        $this->app->bind('phpipam', function () {
22
+        $this->app->bind('phpipam', function() {
23 23
             return new PhpIPAM();
24 24
         });
25 25
 
Please login to merge, or discard this patch.
src/helpers.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-if (! function_exists('response_to_collect')) {
3
+if (!function_exists('response_to_collect')) {
4 4
     /**
5 5
      * Return PhpIPAM response content into a collect of the specified class.
6 6
      *
@@ -23,14 +23,14 @@  discard block
 block discarded – undo
23 23
     }
24 24
 }
25 25
 
26
-if (! function_exists('get_key_or_null')) {
26
+if (!function_exists('get_key_or_null')) {
27 27
     function get_key_or_null($response, $key = 'data')
28 28
     {
29 29
         return $response['success'] ? $response[$key] : null;
30 30
     }
31 31
 }
32 32
 
33
-if (! function_exists('standardize_booleans')) {
33
+if (!function_exists('standardize_booleans')) {
34 34
     function standardize_booleans(array $data)
35 35
     {
36 36
         $result = [];
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
     }
51 51
 }
52 52
 
53
-if (! function_exists('unset_null_values')) {
53
+if (!function_exists('unset_null_values')) {
54 54
     function unset_null_values(array $data)
55 55
     {
56 56
         foreach (array_keys($data) as $key) {
@@ -63,14 +63,14 @@  discard block
 block discarded – undo
63 63
     }
64 64
 }
65 65
 
66
-if (! function_exists('standarize_request_body')) {
66
+if (!function_exists('standarize_request_body')) {
67 67
     function standarize_request_body(array $data)
68 68
     {
69 69
         return standardize_booleans(unset_null_values($data));
70 70
     }
71 71
 }
72 72
 
73
-if (! function_exists('get_id_from_variable')) {
73
+if (!function_exists('get_id_from_variable')) {
74 74
     function get_id_from_variable($data)
75 75
     {
76 76
         if (is_object($data)) {
Please login to merge, or discard this patch.
src/Http/Requests/Connector.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
 
53 53
             return json_decode($response->getBody()->getContents(), true);
54 54
         } catch (\GuzzleHttp\Exception\ClientException $e) {
55
-            if (! $firstTry && $e->getCode() == self::UNAUTHORIZED_CODE) {
55
+            if (!$firstTry && $e->getCode() == self::UNAUTHORIZED_CODE) {
56 56
                 Cache::forget(PhpIPAM::getCacheKey());
57 57
                 $this->configHeaders();
58 58
 
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
             }
76 76
         }
77 77
 
78
-        if (! $cachedData) {
78
+        if (!$cachedData) {
79 79
             $token = $this->login();
80 80
         }
81 81
 
Please login to merge, or discard this patch.