@@ -33,7 +33,7 @@ discard block |
||
| 33 | 33 | use OCA\Files\Controller\ViewController; |
| 34 | 34 | |
| 35 | 35 | class Application extends App { |
| 36 | - public function __construct(array $urlParams=array()) { |
|
| 36 | + public function __construct(array $urlParams = array()) { |
|
| 37 | 37 | parent::__construct('files', $urlParams); |
| 38 | 38 | $container = $this->getContainer(); |
| 39 | 39 | $server = $container->getServer(); |
@@ -41,7 +41,7 @@ discard block |
||
| 41 | 41 | /** |
| 42 | 42 | * Controllers |
| 43 | 43 | */ |
| 44 | - $container->registerService('APIController', function (IContainer $c) use ($server) { |
|
| 44 | + $container->registerService('APIController', function(IContainer $c) use ($server) { |
|
| 45 | 45 | return new ApiController( |
| 46 | 46 | $c->query('AppName'), |
| 47 | 47 | $c->query('Request'), |
@@ -54,7 +54,7 @@ discard block |
||
| 54 | 54 | ); |
| 55 | 55 | }); |
| 56 | 56 | |
| 57 | - $container->registerService('ViewController', function (IContainer $c) use ($server) { |
|
| 57 | + $container->registerService('ViewController', function(IContainer $c) use ($server) { |
|
| 58 | 58 | return new ViewController( |
| 59 | 59 | $c->query('AppName'), |
| 60 | 60 | $c->query('Request'), |
@@ -78,7 +78,7 @@ discard block |
||
| 78 | 78 | /** |
| 79 | 79 | * Services |
| 80 | 80 | */ |
| 81 | - $container->registerService('Tagger', function(IContainer $c) { |
|
| 81 | + $container->registerService('Tagger', function(IContainer $c) { |
|
| 82 | 82 | return $c->query('ServerContainer')->getTagManager()->load('files'); |
| 83 | 83 | }); |
| 84 | 84 | $container->registerService('TagService', function(IContainer $c) use ($server) { |
@@ -122,7 +122,7 @@ |
||
| 122 | 122 | } |
| 123 | 123 | |
| 124 | 124 | $eventName = $addToFavorite ? 'addFavorite' : 'removeFavorite'; |
| 125 | - $this->dispatcher->dispatch(self::class . '::' . $eventName, new GenericEvent(null, [ |
|
| 125 | + $this->dispatcher->dispatch(self::class.'::'.$eventName, new GenericEvent(null, [ |
|
| 126 | 126 | 'userId' => $user->getUID(), |
| 127 | 127 | 'fileId' => $fileId, |
| 128 | 128 | 'path' => $path, |