Completed
Push — master ( 1268a0...fb80c8 )
by Stephen
03:23
created
src/StarCitizens.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
         if ($argumentCount == 0)
66 66
             throw new \InvalidArgumentException("Requires an argument");
67 67
 
68
-        if ($argumentCount > 0 && $argumentCount< 2)
68
+        if ($argumentCount > 0 && $argumentCount < 2)
69 69
             return $this->find($arguments[0], $name, $this->systems[$name]['base_action']);
70 70
 
71 71
         if ($argumentCount == 2) {
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
             return $this->find($id, $name, $profileType);
76 76
         }
77 77
 
78
-        if ($argumentCount == 4 ) {
78
+        if ($argumentCount == 4) {
79 79
             list($id, $profileType, $cache, $raw) = $arguments;
80 80
             return $this->find($id, $name, $profileType, $cache, $raw);
81 81
         }
@@ -187,7 +187,7 @@  discard block
 block discarded – undo
187 187
     private function fillModel($model, $fillData)
188 188
     {
189 189
         if (is_array($model)) {
190
-            list($className, $dataRoot, $idName) =$model;
190
+            list($className, $dataRoot, $idName) = $model;
191 191
             $object = new \ReflectionClass('StarCitizen\Models\Store');
192 192
             return $object->newInstance($fillData, $className, $dataRoot, $idName);
193 193
         } else {
Please login to merge, or discard this patch.
Braces   +9 added lines, -6 removed lines patch added patch discarded remove patch
@@ -62,16 +62,19 @@
 block discarded – undo
62 62
     {
63 63
         $argumentCount = count($arguments);
64 64
 
65
-        if ($argumentCount == 0)
66
-            throw new \InvalidArgumentException("Requires an argument");
65
+        if ($argumentCount == 0) {
66
+                    throw new \InvalidArgumentException("Requires an argument");
67
+        }
67 68
 
68
-        if ($argumentCount > 0 && $argumentCount< 2)
69
-            return $this->find($arguments[0], $name, $this->systems[$name]['base_action']);
69
+        if ($argumentCount > 0 && $argumentCount< 2) {
70
+                    return $this->find($arguments[0], $name, $this->systems[$name]['base_action']);
71
+        }
70 72
 
71 73
         if ($argumentCount == 2) {
72 74
             list($id, $profileType) = $arguments;
73
-            if ($profileType == false)
74
-                $profileType = $this->systems[$name]['base_action'];
75
+            if ($profileType == false) {
76
+                            $profileType = $this->systems[$name]['base_action'];
77
+            }
75 78
             return $this->find($id, $name, $profileType);
76 79
         }
77 80
 
Please login to merge, or discard this patch.