@@ -250,16 +250,13 @@ |
||
250 | 250 | if ($object instanceof RoleInterface) |
251 | 251 | { |
252 | 252 | $this->addRole((string)$object); |
253 | - } |
|
254 | - else if ($object instanceof ResourceInterface) |
|
253 | + } else if ($object instanceof ResourceInterface) |
|
255 | 254 | { |
256 | 255 | $this->addResource((string)$object); |
257 | - } |
|
258 | - else if ($object instanceof PermissionInterface) |
|
256 | + } else if ($object instanceof PermissionInterface) |
|
259 | 257 | { |
260 | 258 | $this->addPermission((string)$object); |
261 | - } |
|
262 | - else { |
|
259 | + } else { |
|
263 | 260 | throw new \Exception( |
264 | 261 | sprintf( |
265 | 262 | "%s must implement one of RoleInterface, '. |