Completed
Pull Request — master (#7773)
by Joas
21:48
created
apps/files/lib/AppInfo/Application.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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) {
Please login to merge, or discard this patch.
apps/files/lib/Service/TagService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -122,7 +122,7 @@
 block discarded – undo
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,
Please login to merge, or discard this patch.