@@ -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 | */ |
@@ -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 ) { |