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

github.com/juliushaertl/apporder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulius Haertl <jus@bitgrid.net>2016-09-05 13:51:28 +0300
committerJulius Haertl <jus@bitgrid.net>2016-09-05 13:51:28 +0300
commit5d7a14730bdf5e0a589566541b58cd2a861df8b4 (patch)
treeb1cd0b37442e2c0597ff718df7b77447b3d868a4
parent126b486f622b0fcd184848d342785d5e02a0e0e0 (diff)
Fix indentation
-rw-r--r--controller/appcontroller.php26
1 files changed, 13 insertions, 13 deletions
diff --git a/controller/appcontroller.php b/controller/appcontroller.php
index 426a028..1024b2f 100644
--- a/controller/appcontroller.php
+++ b/controller/appcontroller.php
@@ -32,38 +32,38 @@ use OCP\IURLGenerator;
class AppController extends Controller {
- private $userId;
- private $urlGenerator;
+ private $userId;
+ private $urlGenerator;
private $util;
- public function __construct($appName,
+ public function __construct($appName,
IRequest $request,
IURLGenerator $urlGenerator,
Util $util, $userId) {
- parent::__construct($appName, $request);
- $this->userId = $userId;
- $this->urlGenerator = $urlGenerator;
+ parent::__construct($appName, $request);
+ $this->userId = $userId;
+ $this->urlGenerator = $urlGenerator;
$this->util = $util;
- }
+ }
/**
* @NoCSRFRequired
* @NoAdminRequired
* @return RedirectResponse
*/
- public function index() {
- $order = json_decode($this->util->getAppOrder());
- if($order !== null && sizeof($order)>0) {
+ public function index() {
+ $order = json_decode($this->util->getAppOrder());
+ if ($order !== null && sizeof($order) > 0) {
$firstPage = $order[0];
} else {
$appId = 'files';
- if(getenv('front_controller_active') === 'true') {
+ if (getenv('front_controller_active') === 'true') {
$firstPage = $this->urlGenerator->getAbsoluteURL('/apps/' . $appId . '/');
} else {
$firstPage = $this->urlGenerator->getAbsoluteURL('/index.php/apps/' . $appId . '/');
}
}
- return new RedirectResponse($firstPage);
- }
+ return new RedirectResponse($firstPage);
+ }
}