@@ -1,5 +1,5 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | /** |
| 4 | 4 | * @copyright Copyright (c) 2016, ownCloud, Inc. |
| 5 | 5 | * |
@@ -51,7 +51,7 @@ discard block |
||
| 51 | 51 | */ |
| 52 | 52 | public function getCapabilities(bool $public = false) : array { |
| 53 | 53 | $capabilities = []; |
| 54 | - foreach($this->capabilities as $capability) { |
|
| 54 | + foreach ($this->capabilities as $capability) { |
|
| 55 | 55 | try { |
| 56 | 56 | $c = $capability(); |
| 57 | 57 | } catch (QueryException $e) { |
@@ -60,11 +60,11 @@ discard block |
||
| 60 | 60 | } |
| 61 | 61 | |
| 62 | 62 | if ($c instanceof ICapability) { |
| 63 | - if(!$public || $c instanceof IPublicCapability) { |
|
| 63 | + if (!$public || $c instanceof IPublicCapability) { |
|
| 64 | 64 | $capabilities = array_replace_recursive($capabilities, $c->getCapabilities()); |
| 65 | 65 | } |
| 66 | 66 | } else { |
| 67 | - throw new \InvalidArgumentException('The given Capability (' . get_class($c) . ') does not implement the ICapability interface'); |
|
| 67 | + throw new \InvalidArgumentException('The given Capability ('.get_class($c).') does not implement the ICapability interface'); |
|
| 68 | 68 | } |
| 69 | 69 | } |
| 70 | 70 | |