]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fixed small code style issues
authorVincent Petry <pvince81@owncloud.com>
Mon, 15 Dec 2014 16:20:41 +0000 (17:20 +0100)
committerVincent Petry <pvince81@owncloud.com>
Mon, 15 Dec 2014 16:20:41 +0000 (17:20 +0100)
apps/files/appinfo/application.php
apps/files/controller/apicontroller.php
apps/files/index.php
apps/files/js/tagsplugin.js
apps/files/simplelist.php

index fcf974a701b6a39c89d0f0f60954925bcab37c16..13ff60daf89cc8b3b109215e55b1f2f675e18d78 100644 (file)
@@ -31,9 +31,9 @@ class Application extends App {
                        );
                });
 
-        /**
-         * Core
-         */
+               /**
+                * Core
+                */
                $container->registerService('L10N', function(IContainer $c) {
                        return $c->query('ServerContainer')->getL10N($c->query('AppName'));
                });
index 1990971438bd046d9883719bb9f79a97811ca2e1..902731a0492c9058592104378130e4e5def177b5 100644 (file)
@@ -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;
index 6f5989820b9e067f81b28a2963a4b10b43282af9..02076226c1abeca94fec1a184ca780306b34762e 100644 (file)
@@ -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')
        )
 );
 
index 550026e3b486fc0cc79217274ee8c93121f538d2..a6757431ffaeea2f49a051a92ef83244a9f14fa8 100644 (file)
@@ -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
         */
index e3fdf6cd1de008f3f40801e23987c7eb31dd24f5..53e56b4ed323a9ce964eaa04cfdd1e3629fd3be0 100644 (file)
@@ -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', '');