@@ -101,7 +101,7 @@ discard block |
||
101 | 101 | * @param $id |
102 | 102 | * @param $system |
103 | 103 | * @param $profileType |
104 | - * @param $cache |
|
104 | + * @param boolean $cache |
|
105 | 105 | * @return array |
106 | 106 | */ |
107 | 107 | private function getParams($id, $system, $profileType, $cache) |
@@ -123,7 +123,7 @@ discard block |
||
123 | 123 | /** |
124 | 124 | * @param $response |
125 | 125 | * @param $profileType |
126 | - * @param $raw |
|
126 | + * @param boolean $raw |
|
127 | 127 | * |
128 | 128 | * @return bool|mixed |
129 | 129 | */ |
@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | if ($argumentCount == 0) |
52 | 52 | throw new \InvalidArgumentException("Requires an argument"); |
53 | 53 | |
54 | - if ($argumentCount > 0 && $argumentCount< 2) |
|
54 | + if ($argumentCount > 0 && $argumentCount < 2) |
|
55 | 55 | return $this->find($arguments[0], $name, $this->systems[$name]['base_action']); |
56 | 56 | |
57 | 57 | if ($argumentCount == 2) { |
@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | $profileType = $this->systems[$name]['base_action']; |
61 | 61 | return $this->find($id, $name, $profileType); |
62 | 62 | } |
63 | - if ($argumentCount == 4 ) { |
|
63 | + if ($argumentCount == 4) { |
|
64 | 64 | list($id, $profileType, $cache, $raw) = $arguments; |
65 | 65 | return $this->find($id, $name, $profileType, $cache, $raw); |
66 | 66 | } else { |
@@ -161,7 +161,7 @@ discard block |
||
161 | 161 | private function fillModel($model, $fillData) |
162 | 162 | { |
163 | 163 | if (is_array($model)) { |
164 | - list($className, $dataRoot, $idName) =$model; |
|
164 | + list($className, $dataRoot, $idName) = $model; |
|
165 | 165 | $object = new \ReflectionClass('StarCitizen\Models\Store'); |
166 | 166 | return $object->newInstance($fillData, $className, $dataRoot, $idName); |
167 | 167 | } else { |
@@ -48,16 +48,19 @@ |
||
48 | 48 | { |
49 | 49 | if (array_key_exists($name, $this->systems)) { |
50 | 50 | $argumentCount = count($arguments); |
51 | - if ($argumentCount == 0) |
|
52 | - throw new \InvalidArgumentException("Requires an argument"); |
|
51 | + if ($argumentCount == 0) { |
|
52 | + throw new \InvalidArgumentException("Requires an argument"); |
|
53 | + } |
|
53 | 54 | |
54 | - if ($argumentCount > 0 && $argumentCount< 2) |
|
55 | - return $this->find($arguments[0], $name, $this->systems[$name]['base_action']); |
|
55 | + if ($argumentCount > 0 && $argumentCount< 2) { |
|
56 | + return $this->find($arguments[0], $name, $this->systems[$name]['base_action']); |
|
57 | + } |
|
56 | 58 | |
57 | 59 | if ($argumentCount == 2) { |
58 | 60 | list($id, $profileType) = $arguments; |
59 | - if ($profileType == false) |
|
60 | - $profileType = $this->systems[$name]['base_action']; |
|
61 | + if ($profileType == false) { |
|
62 | + $profileType = $this->systems[$name]['base_action']; |
|
63 | + } |
|
61 | 64 | return $this->find($id, $name, $profileType); |
62 | 65 | } |
63 | 66 | if ($argumentCount == 4 ) { |