@@ -65,7 +65,7 @@ discard block |
||
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 |
||
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 |
||
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 { |
@@ -62,16 +62,19 @@ |
||
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 |