Completed
Push — master ( 312fc5...9a0c85 )
by Stephen
02:13
created
src/Organisations/Organisations.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
      */
39 39
     protected static function find($id, $action = Organisations::ORG, $cache = false, $raw = false)
40 40
     {
41
-        $cache = ($cache === true)? "cache" : "live";
41
+        $cache = ($cache === true) ? "cache" : "live";
42 42
 
43 43
         $params = [
44 44
             'api_source' => $cache,
Please login to merge, or discard this patch.
Braces   +5 added lines, -4 removed lines patch added patch discarded remove patch
@@ -50,11 +50,12 @@
 block discarded – undo
50 50
         ];
51 51
 
52 52
         $response = json_decode(self::$client->getResult($params)->getBody()->getContents(), true);
53
-        if ($response['request_stats']['query_status'] == "success")
54
-            if ($raw === true)
53
+        if ($response['request_stats']['query_status'] == "success") {
54
+                    if ($raw === true)
55 55
                 return $response;
56
-            else
57
-                return self::fillModel($action, $response['data']);
56
+        } else {
57
+                            return self::fillModel($action, $response['data']);
58
+            }
58 59
 
59 60
         return false;
60 61
     }
Please login to merge, or discard this patch.