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