@@ -30,21 +30,21 @@ |
||
| 30 | 30 | use OCP\IL10N; |
| 31 | 31 | |
| 32 | 32 | abstract class CalDAVSetting extends ActivitySettings { |
| 33 | - /** @var IL10N */ |
|
| 34 | - protected $l; |
|
| 35 | - |
|
| 36 | - /** |
|
| 37 | - * @param IL10N $l |
|
| 38 | - */ |
|
| 39 | - public function __construct(IL10N $l) { |
|
| 40 | - $this->l = $l; |
|
| 41 | - } |
|
| 42 | - |
|
| 43 | - public function getGroupIdentifier() { |
|
| 44 | - return 'calendar'; |
|
| 45 | - } |
|
| 46 | - |
|
| 47 | - public function getGroupName() { |
|
| 48 | - return $this->l->t('Calendar and tasks'); |
|
| 49 | - } |
|
| 33 | + /** @var IL10N */ |
|
| 34 | + protected $l; |
|
| 35 | + |
|
| 36 | + /** |
|
| 37 | + * @param IL10N $l |
|
| 38 | + */ |
|
| 39 | + public function __construct(IL10N $l) { |
|
| 40 | + $this->l = $l; |
|
| 41 | + } |
|
| 42 | + |
|
| 43 | + public function getGroupIdentifier() { |
|
| 44 | + return 'calendar'; |
|
| 45 | + } |
|
| 46 | + |
|
| 47 | + public function getGroupName() { |
|
| 48 | + return $this->l->t('Calendar and tasks'); |
|
| 49 | + } |
|
| 50 | 50 | } |
@@ -31,17 +31,17 @@ |
||
| 31 | 31 | |
| 32 | 32 | class ReasonsController extends Controller { |
| 33 | 33 | |
| 34 | - /** |
|
| 35 | - * @NoCSRFRequired |
|
| 36 | - * @NoAdminRequired |
|
| 37 | - * @NoSubAdminRequired |
|
| 38 | - */ |
|
| 39 | - public function getPdf() { |
|
| 40 | - $data = file_get_contents(__DIR__ . '/../../data/Reasons to use Nextcloud.pdf'); |
|
| 41 | - |
|
| 42 | - $resp = new DataDisplayResponse($data); |
|
| 43 | - $resp->addHeader('Content-Type', 'application/pdf'); |
|
| 44 | - |
|
| 45 | - return $resp; |
|
| 46 | - } |
|
| 34 | + /** |
|
| 35 | + * @NoCSRFRequired |
|
| 36 | + * @NoAdminRequired |
|
| 37 | + * @NoSubAdminRequired |
|
| 38 | + */ |
|
| 39 | + public function getPdf() { |
|
| 40 | + $data = file_get_contents(__DIR__ . '/../../data/Reasons to use Nextcloud.pdf'); |
|
| 41 | + |
|
| 42 | + $resp = new DataDisplayResponse($data); |
|
| 43 | + $resp->addHeader('Content-Type', 'application/pdf'); |
|
| 44 | + |
|
| 45 | + return $resp; |
|
| 46 | + } |
|
| 47 | 47 | } |