summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2014-12-15 17:20:41 +0100
committerVincent Petry <pvince81@owncloud.com>2014-12-15 17:20:41 +0100
commit207d77e5cdf6386dd22d87a5851adae38ad9f77f (patch)
tree5f9ac1b17b057d2760422578ada81393df02fc15
parent976baed5f9dec891fedc4756fa272dd5a0f4eae2 (diff)
downloadnextcloud-server-207d77e5cdf6386dd22d87a5851adae38ad9f77f.tar.gz
nextcloud-server-207d77e5cdf6386dd22d87a5851adae38ad9f77f.zip
Fixed small code style issues
-rw-r--r--apps/files/appinfo/application.php6
-rw-r--r--apps/files/controller/apicontroller.php5
-rw-r--r--apps/files/index.php10
-rw-r--r--apps/files/js/tagsplugin.js4
-rw-r--r--apps/files/simplelist.php3
5 files changed, 16 insertions, 12 deletions
diff --git a/apps/files/appinfo/application.php b/apps/files/appinfo/application.php
index fcf974a701b..13ff60daf89 100644
--- a/apps/files/appinfo/application.php
+++ b/apps/files/appinfo/application.php
@@ -31,9 +31,9 @@ class Application extends App {
);
});
- /**
- * Core
- */
+ /**
+ * Core
+ */
$container->registerService('L10N', function(IContainer $c) {
return $c->query('ServerContainer')->getL10N($c->query('AppName'));
});
diff --git a/apps/files/controller/apicontroller.php b/apps/files/controller/apicontroller.php
index 1990971438b..902731a0492 100644
--- a/apps/files/controller/apicontroller.php
+++ b/apps/files/controller/apicontroller.php
@@ -19,6 +19,11 @@ use OCA\Files\Service\TagService;
class ApiController extends Controller {
+ /**
+ * @var TagService $tagService
+ */
+ private $tagService;
+
public function __construct($appName, IRequest $request, TagService $tagService){
parent::__construct($appName, $request);
$this->tagService = $tagService;
diff --git a/apps/files/index.php b/apps/files/index.php
index 6f5989820b9..02076226c1a 100644
--- a/apps/files/index.php
+++ b/apps/files/index.php
@@ -90,11 +90,11 @@ function sortNavigationItems($item1, $item2) {
\OCA\Files\App::getNavigationManager()->add(
array(
- "id" => 'favorites',
- "appname" => 'files',
- "script" => 'simplelist.php',
- "order" => 50,
- "name" => $l->t('Favorites')
+ 'id' => 'favorites',
+ 'appname' => 'files',
+ 'script' => 'simplelist.php',
+ 'order' => 50,
+ 'name' => $l->t('Favorites')
)
);
diff --git a/apps/files/js/tagsplugin.js b/apps/files/js/tagsplugin.js
index 550026e3b48..a6757431ffa 100644
--- a/apps/files/js/tagsplugin.js
+++ b/apps/files/js/tagsplugin.js
@@ -12,7 +12,7 @@
(function(OCA) {
- var TEMPLATE_FAVORITE_ACTION =
+ var TEMPLATE_FAVORITE_ACTION =
'<a href="#" ' +
'class="action action-favorite {{#isFavorite}}permanent{{/isFavorite}}">' +
'<img class="svg" alt="{{altText}}" src="{{imgFile}}" />' +
@@ -30,7 +30,7 @@
/**
* Render the star icon with the given state
- *
+ *
* @param {boolean} state true if starred, false otherwise
* @return {Object} jQuery object
*/
diff --git a/apps/files/simplelist.php b/apps/files/simplelist.php
index e3fdf6cd1de..53e56b4ed32 100644
--- a/apps/files/simplelist.php
+++ b/apps/files/simplelist.php
@@ -21,8 +21,7 @@
*
*/
-// Check if we are a user
-OCP\User::checkLoggedIn();
+// TODO: move to handlebars
// renders the controls and table headers template
$tmpl = new OCP\Template('files', 'simplelist', '');