Completed
Branch master (577f6f)
by Javier
02:36
created
src/Query.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -129,7 +129,7 @@  discard block
 block discarded – undo
129 129
 
130 130
         if ($this->filters) {
131 131
             foreach ($this->filters as $resource => $columns) {
132
-                if(is_array($columns)){
132
+                if (is_array($columns)) {
133 133
                     foreach ($columns as $column => $operands) {
134 134
                         foreach ($operands as $operand => $value) {
135 135
                             $query['filter'][$resource][$column][$operand] = is_array($value) ? implode(',',
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
                         }
138 138
                     }
139 139
                 }
140
-                else{
140
+                else {
141 141
                     $query['filter'][$resource] = $columns;
142 142
                 }
143 143
             }
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -136,8 +136,7 @@
 block discarded – undo
136 136
                                 $value) : $value;
137 137
                         }
138 138
                     }
139
-                }
140
-                else{
139
+                } else{
141 140
                     $query['filter'][$resource] = $columns;
142 141
                 }
143 142
             }
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
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
 
26 26
         $this->options = $options;
27 27
 
28
-        $this->client = (!empty($http_client))? $http_client: new \GuzzleHttp\Client($this->getOptions());
28
+        $this->client = (!empty($http_client)) ? $http_client : new \GuzzleHttp\Client($this->getOptions());
29 29
     }
30 30
 
31 31
     /**
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
     {
38 38
         $endpoint = Psr7\uri_for($endpoint);
39 39
 
40
-        if ($endpoint->isAbsolute($endpoint)){
40
+        if ($endpoint->isAbsolute($endpoint)) {
41 41
             throw new \Exception("Endpoint must be a relative path");
42 42
         }
43 43
 
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
             'base_uri' => $this->base_uri,
55 55
             'http_errors' => true,
56 56
             'headers' => ['Accept' => 'application/json']
57
-        ],$this->options);
57
+        ], $this->options);
58 58
     }
59 59
 
60 60
     /**
Please login to merge, or discard this patch.
src/Hydrator/ClassHydrator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -106,7 +106,7 @@
 block discarded – undo
106 106
      */
107 107
     private function getObjectFromMap($type, $id, array $resourceMap)
108 108
     {
109
-        return !empty($resourceMap[$type . "-" . $id])?$resourceMap[$type . "-" . $id]:null;
109
+        return !empty($resourceMap[$type . "-" . $id]) ? $resourceMap[$type . "-" . $id] : null;
110 110
     }
111 111
 
112 112
     /**
Please login to merge, or discard this patch.