diff options
author | Bernhard Posselt <nukeawhale@gmail.com> | 2012-11-28 04:55:21 +0400 |
---|---|---|
committer | Bernhard Posselt <nukeawhale@gmail.com> | 2012-11-28 04:55:21 +0400 |
commit | 77f673b943b07aa4363ba92764d512e1e981266a (patch) | |
tree | 19fa1f874685cf4435235d8ecfdf3ddf1b520f45 /apptemplate | |
parent | ba8ab5f360e1a9ec215b71d612b02152b55fef5c (diff) |
spaces to tabs
Diffstat (limited to 'apptemplate')
-rw-r--r-- | apptemplate/controllers/ajax.controller.php | 10 | ||||
-rw-r--r-- | apptemplate/controllers/index.controller.php | 18 | ||||
-rw-r--r-- | apptemplate/controllers/settings.controller.php | 14 | ||||
-rw-r--r-- | apptemplate/lib/controller.php | 6 |
4 files changed, 24 insertions, 24 deletions
diff --git a/apptemplate/controllers/ajax.controller.php b/apptemplate/controllers/ajax.controller.php index 9713af871..e665a6604 100644 --- a/apptemplate/controllers/ajax.controller.php +++ b/apptemplate/controllers/ajax.controller.php @@ -42,15 +42,15 @@ class AjaxController extends Controller { * the routes file */ public function setSystemValue($urlParams=array()){ - $value = $this->params('somesetting'); + $value = $this->params('somesetting'); $this->api->setSystemValue('somesetting', $value); - $response = new JSONResponse($this->appName); + $response = new JSONResponse($this->appName); - $params = array('somesetting' => $value); - $response->setParams($params); + $params = array('somesetting' => $value); + $response->setParams($params); - return $response; + return $response; } }
\ No newline at end of file diff --git a/apptemplate/controllers/index.controller.php b/apptemplate/controllers/index.controller.php index 51173f03b..27cc2aad6 100644 --- a/apptemplate/controllers/index.controller.php +++ b/apptemplate/controllers/index.controller.php @@ -44,17 +44,17 @@ class IndexController extends Controller { * @brief renders the index page * @param array $urlParams: an array with the values, which were matched in * the routes file - * @return an instance of a Response implementation + * @return an instance of a Response implementation */ public function index($urlParams=array()){ - $response = new TemplateResponse($this->appName, 'main'); - - $params = array( - 'somesetting' => $this->api->getSystemValue('somesetting') - ); - $response->setParams($params); - - return $response; + $response = new TemplateResponse($this->appName, 'main'); + + $params = array( + 'somesetting' => $this->api->getSystemValue('somesetting') + ); + $response->setParams($params); + + return $response; } }
\ No newline at end of file diff --git a/apptemplate/controllers/settings.controller.php b/apptemplate/controllers/settings.controller.php index a1b736bbd..b0ae87e64 100644 --- a/apptemplate/controllers/settings.controller.php +++ b/apptemplate/controllers/settings.controller.php @@ -44,15 +44,15 @@ class SettingsController extends Controller { public function index($urlParams=array()){ $this->api->addScript('admin'); - $response = new TemplateResponse($this->appName, 'settings'); - $response->renderAs('admin'); + $response = new TemplateResponse($this->appName, 'settings'); + $response->renderAs('admin'); - $params = array( - 'url' => $this->api->getSystemValue('somesetting') - ); - $response->setParams($params); + $params = array( + 'url' => $this->api->getSystemValue('somesetting') + ); + $response->setParams($params); - return $response; + return $response; } }
\ No newline at end of file diff --git a/apptemplate/lib/controller.php b/apptemplate/lib/controller.php index 1402f8dfd..84bc593fd 100644 --- a/apptemplate/lib/controller.php +++ b/apptemplate/lib/controller.php @@ -27,9 +27,9 @@ namespace OCA\AppTemplate; class Controller { protected $api; - protected $appName; + protected $appName; - private $request; + private $request; /** * @param API $api: an api wrapper instance @@ -38,7 +38,7 @@ class Controller { public function __construct($api, $request){ $this->api = $api; $this->request = $request; - $this->appName = $api->getAppName(); + $this->appName = $api->getAppName(); } |