@@ -34,45 +34,45 @@ |
||
| 34 | 34 | */ |
| 35 | 35 | class Capabilities implements ICapability { |
| 36 | 36 | |
| 37 | - /** @var ThemingDefaults */ |
|
| 38 | - protected $theming; |
|
| 37 | + /** @var ThemingDefaults */ |
|
| 38 | + protected $theming; |
|
| 39 | 39 | |
| 40 | - /** @var IURLGenerator */ |
|
| 41 | - protected $url; |
|
| 40 | + /** @var IURLGenerator */ |
|
| 41 | + protected $url; |
|
| 42 | 42 | |
| 43 | - /** @var IConfig */ |
|
| 44 | - protected $config; |
|
| 43 | + /** @var IConfig */ |
|
| 44 | + protected $config; |
|
| 45 | 45 | |
| 46 | - /** |
|
| 47 | - * @param ThemingDefaults $theming |
|
| 48 | - * @param IURLGenerator $url |
|
| 49 | - * @param IConfig $config |
|
| 50 | - */ |
|
| 51 | - public function __construct(ThemingDefaults $theming, IURLGenerator $url, IConfig $config) { |
|
| 52 | - $this->theming = $theming; |
|
| 53 | - $this->url = $url; |
|
| 54 | - $this->config = $config; |
|
| 55 | - } |
|
| 46 | + /** |
|
| 47 | + * @param ThemingDefaults $theming |
|
| 48 | + * @param IURLGenerator $url |
|
| 49 | + * @param IConfig $config |
|
| 50 | + */ |
|
| 51 | + public function __construct(ThemingDefaults $theming, IURLGenerator $url, IConfig $config) { |
|
| 52 | + $this->theming = $theming; |
|
| 53 | + $this->url = $url; |
|
| 54 | + $this->config = $config; |
|
| 55 | + } |
|
| 56 | 56 | |
| 57 | - /** |
|
| 58 | - * Return this classes capabilities |
|
| 59 | - * |
|
| 60 | - * @return array |
|
| 61 | - */ |
|
| 62 | - public function getCapabilities() { |
|
| 63 | - $backgroundLogo = $this->config->getAppValue('theming', 'backgroundMime', false); |
|
| 57 | + /** |
|
| 58 | + * Return this classes capabilities |
|
| 59 | + * |
|
| 60 | + * @return array |
|
| 61 | + */ |
|
| 62 | + public function getCapabilities() { |
|
| 63 | + $backgroundLogo = $this->config->getAppValue('theming', 'backgroundMime', false); |
|
| 64 | 64 | |
| 65 | - return [ |
|
| 66 | - 'theming' => [ |
|
| 67 | - 'name' => $this->theming->getName(), |
|
| 68 | - 'url' => $this->theming->getBaseUrl(), |
|
| 69 | - 'slogan' => $this->theming->getSlogan(), |
|
| 70 | - 'color' => $this->theming->getColorPrimary(), |
|
| 71 | - 'logo' => $this->url->getAbsoluteURL($this->theming->getLogo()), |
|
| 72 | - 'background' => $backgroundLogo === 'backgroundColor' ? |
|
| 73 | - $this->theming->getColorPrimary() : |
|
| 74 | - $this->url->getAbsoluteURL($this->theming->getBackground()), |
|
| 75 | - ], |
|
| 76 | - ]; |
|
| 77 | - } |
|
| 65 | + return [ |
|
| 66 | + 'theming' => [ |
|
| 67 | + 'name' => $this->theming->getName(), |
|
| 68 | + 'url' => $this->theming->getBaseUrl(), |
|
| 69 | + 'slogan' => $this->theming->getSlogan(), |
|
| 70 | + 'color' => $this->theming->getColorPrimary(), |
|
| 71 | + 'logo' => $this->url->getAbsoluteURL($this->theming->getLogo()), |
|
| 72 | + 'background' => $backgroundLogo === 'backgroundColor' ? |
|
| 73 | + $this->theming->getColorPrimary() : |
|
| 74 | + $this->url->getAbsoluteURL($this->theming->getBackground()), |
|
| 75 | + ], |
|
| 76 | + ]; |
|
| 77 | + } |
|
| 78 | 78 | } |