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