Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/files_pdfviewer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2018-02-08 14:23:59 +0300
committerGitHub <noreply@github.com>2018-02-08 14:23:59 +0300
commitc8a74d5b5e345d2bf75bd351882ef7c00364198c (patch)
tree864f93111889ebac63db358fff7a5302ce01c3cf
parentf8e460fa1b942b96f07d1e41a910de34cf49854f (diff)
parentcb293ba165505ec00cdb9d8f05ee2d841783a47c (diff)
Merge pull request #53 from nextcloud/move_to_proper_structure
Move to proper app structure
-rw-r--r--appinfo/app.php1
-rw-r--r--appinfo/info.xml3
-rw-r--r--appinfo/routes.php1
-rw-r--r--lib/Controller/DisplayController.php (renamed from controller/displaycontroller.php)5
4 files changed, 7 insertions, 3 deletions
diff --git a/appinfo/app.php b/appinfo/app.php
index 72b6348..6cdc551 100644
--- a/appinfo/app.php
+++ b/appinfo/app.php
@@ -1,4 +1,5 @@
<?php
+declare(strict_types=1);
/**
* @author Lukas Reschke
* @copyright 2014 Lukas Reschke lukas@owncloud.com
diff --git a/appinfo/info.xml b/appinfo/info.xml
index 647dc12..804ffbb 100644
--- a/appinfo/info.xml
+++ b/appinfo/info.xml
@@ -17,7 +17,8 @@ about the PDF.js project at [https://mozilla.github.io/pdf.js/](https://mozilla.
</description>
<licence>AGPL</licence>
<author>Thomas Müller, Lukas Reschke</author>
- <version>1.3.0</version>
+ <version>1.3.1</version>
+ <namespace>Files_PdfViewer</namespace>
<dependencies>
<nextcloud min-version="14" max-version="14" />
</dependencies>
diff --git a/appinfo/routes.php b/appinfo/routes.php
index 232f495..3cfe624 100644
--- a/appinfo/routes.php
+++ b/appinfo/routes.php
@@ -1,4 +1,5 @@
<?php
+declare(strict_types=1);
/**
* @author Lukas Reschke
* @copyright 2014 Lukas Reschke lukas@owncloud.com
diff --git a/controller/displaycontroller.php b/lib/Controller/DisplayController.php
index 6d4da80..4de23f1 100644
--- a/controller/displaycontroller.php
+++ b/lib/Controller/DisplayController.php
@@ -1,4 +1,5 @@
<?php
+declare(strict_types=1);
/**
* @author Lukas Reschke
* @copyright 2014 Lukas Reschke lukas@owncloud.com
@@ -26,7 +27,7 @@ class DisplayController extends Controller {
* @param IRequest $request
* @param IURLGenerator $urlGenerator
*/
- public function __construct($AppName,
+ public function __construct(string $AppName,
IRequest $request,
IURLGenerator $urlGenerator) {
parent::__construct($AppName, $request);
@@ -40,7 +41,7 @@ class DisplayController extends Controller {
* @param bool $minmode
* @return TemplateResponse
*/
- public function showPdfViewer($minmode = false) {
+ public function showPdfViewer(bool $minmode = false): TemplateResponse {
$params = [
'urlGenerator' => $this->urlGenerator,
'minmode' => $minmode