Completed
Pull Request — master (#490)
by
unknown
01:58
created
lib/Db/FileProperties.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -4,5 +4,5 @@
 block discarded – undo
4 4
 use OCP\AppFramework\Db\Entity;
5 5
 
6 6
 class FileProperties extends Entity {
7
-    protected $modifications;
7
+	protected $modifications;
8 8
 }
Please login to merge, or discard this patch.
lib/Db/FilePropertiesMapper.php 2 patches
Indentation   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -6,22 +6,22 @@
 block discarded – undo
6 6
 
7 7
 class FilePropertiesMapper extends Mapper {
8 8
 
9
-    public function __construct(IDBConnection $db) {
10
-        parent::__construct($db, 'gallery_file_properties');
11
-    }
9
+	public function __construct(IDBConnection $db) {
10
+		parent::__construct($db, 'gallery_file_properties');
11
+	}
12 12
 
13
-    /**
14
-     * @throws \OCP\AppFramework\Db\DoesNotExistException if not found
15
-     * @throws \OCP\AppFramework\Db\MultipleObjectsReturnedException if more than one result
16
-     */
17
-    public function find($id) {
18
-        $sql = 'SELECT * FROM `*PREFIX*gallery_file_properties` ' .
19
-            'WHERE `id` = ?';
20
-        return $this->findEntity($sql, [$id]);
21
-    }
13
+	/**
14
+	 * @throws \OCP\AppFramework\Db\DoesNotExistException if not found
15
+	 * @throws \OCP\AppFramework\Db\MultipleObjectsReturnedException if more than one result
16
+	 */
17
+	public function find($id) {
18
+		$sql = 'SELECT * FROM `*PREFIX*gallery_file_properties` ' .
19
+			'WHERE `id` = ?';
20
+		return $this->findEntity($sql, [$id]);
21
+	}
22 22
 
23
-    public function findAll($limit=null, $offset=null) {
24
-        $sql = 'SELECT * FROM `*PREFIX*gallery_file_properties`';
25
-        return $this->findEntities($sql, $limit, $offset);
26
-    }
23
+	public function findAll($limit=null, $offset=null) {
24
+		$sql = 'SELECT * FROM `*PREFIX*gallery_file_properties`';
25
+		return $this->findEntities($sql, $limit, $offset);
26
+	}
27 27
 }
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -15,12 +15,12 @@
 block discarded – undo
15 15
      * @throws \OCP\AppFramework\Db\MultipleObjectsReturnedException if more than one result
16 16
      */
17 17
     public function find($id) {
18
-        $sql = 'SELECT * FROM `*PREFIX*gallery_file_properties` ' .
18
+        $sql = 'SELECT * FROM `*PREFIX*gallery_file_properties` '.
19 19
             'WHERE `id` = ?';
20 20
         return $this->findEntity($sql, [$id]);
21 21
     }
22 22
 
23
-    public function findAll($limit=null, $offset=null) {
23
+    public function findAll($limit = null, $offset = null) {
24 24
         $sql = 'SELECT * FROM `*PREFIX*gallery_file_properties`';
25 25
         return $this->findEntities($sql, $limit, $offset);
26 26
     }
Please login to merge, or discard this patch.
lib/AppInfo/Application.php 1 patch
Spacing   +32 added lines, -32 removed lines patch added patch discarded remove patch
@@ -14,11 +14,11 @@  discard block
 block discarded – undo
14 14
 
15 15
 ini_set("gd.jpeg_ignore_warning", true);
16 16
 
17
-require_once __DIR__ . '/../../vendor/autoload.php';
17
+require_once __DIR__.'/../../vendor/autoload.php';
18 18
 
19 19
 // A production environment will not have xdebug enabled and
20 20
 // a development environment should have the dev packages installed
21
-$c3 = __DIR__ . '/../../c3.php';
21
+$c3 = __DIR__.'/../../c3.php';
22 22
 if (extension_loaded('xdebug') && file_exists($c3)) {
23 23
 	include_once $c3;
24 24
 }
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
 		 * Controllers
78 78
 		 */
79 79
 		$container->registerService(
80
-			'FilePropertiesService', function (IContainer $c) {
80
+			'FilePropertiesService', function(IContainer $c) {
81 81
 			return new FilePropertiesService(
82 82
 				$c->query('AppName'),
83 83
 				$c->query('Environment'),
@@ -87,14 +87,14 @@  discard block
 block discarded – undo
87 87
 		}
88 88
 		);
89 89
 		$container->registerService(
90
-			'FilePropertiesMapper', function (IContainer $c) {
90
+			'FilePropertiesMapper', function(IContainer $c) {
91 91
 			return new FilePropertiesMapper(
92 92
 				$c->query('ServerContainer')->getDatabaseConnection()
93 93
 			);
94 94
 		}
95 95
 		);
96 96
 		$container->registerService(
97
-			'PageController', function (IContainer $c) {
97
+			'PageController', function(IContainer $c) {
98 98
 			return new PageController(
99 99
 				$c->query('AppName'),
100 100
 				$c->query('Request'),
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
 		}
108 108
 		);
109 109
 		$container->registerService(
110
-			'ConfigController', function (IContainer $c) {
110
+			'ConfigController', function(IContainer $c) {
111 111
 			return new ConfigController(
112 112
 				$c->query('AppName'),
113 113
 				$c->query('Request'),
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
 		}
118 118
 		);
119 119
 		$container->registerService(
120
-			'ConfigPublicController', function (IContainer $c) {
120
+			'ConfigPublicController', function(IContainer $c) {
121 121
 			return new ConfigPublicController(
122 122
 				$c->query('AppName'),
123 123
 				$c->query('Request'),
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
 		}
128 128
 		);
129 129
 		$container->registerService(
130
-			'ConfigApiController', function (IContainer $c) {
130
+			'ConfigApiController', function(IContainer $c) {
131 131
 			return new ConfigApiController(
132 132
 				$c->query('AppName'),
133 133
 				$c->query('Request'),
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
 		}
138 138
 		);
139 139
 		$container->registerService(
140
-			'FilesController', function (IContainer $c) {
140
+			'FilesController', function(IContainer $c) {
141 141
 			return new FilesController(
142 142
 				$c->query('AppName'),
143 143
 				$c->query('Request'),
@@ -151,7 +151,7 @@  discard block
 block discarded – undo
151 151
 		}
152 152
 		);
153 153
 		$container->registerService(
154
-			'FilesPublicController', function (IContainer $c) {
154
+			'FilesPublicController', function(IContainer $c) {
155 155
 			return new FilesPublicController(
156 156
 				$c->query('AppName'),
157 157
 				$c->query('Request'),
@@ -165,7 +165,7 @@  discard block
 block discarded – undo
165 165
 		}
166 166
 		);
167 167
 		$container->registerService(
168
-			'FilesApiController', function (IContainer $c) {
168
+			'FilesApiController', function(IContainer $c) {
169 169
 			return new FilesApiController(
170 170
 				$c->query('AppName'),
171 171
 				$c->query('Request'),
@@ -179,7 +179,7 @@  discard block
 block discarded – undo
179 179
 		}
180 180
 		);
181 181
 		$container->registerService(
182
-			'PreviewController', function (IContainer $c) {
182
+			'PreviewController', function(IContainer $c) {
183 183
 			return new PreviewController(
184 184
 				$c->query('AppName'),
185 185
 				$c->query('Request'),
@@ -195,7 +195,7 @@  discard block
 block discarded – undo
195 195
 		}
196 196
 		);
197 197
 		$container->registerService(
198
-			'PreviewPublicController', function (IContainer $c) {
198
+			'PreviewPublicController', function(IContainer $c) {
199 199
 			return new PreviewPublicController(
200 200
 				$c->query('AppName'),
201 201
 				$c->query('Request'),
@@ -210,7 +210,7 @@  discard block
 block discarded – undo
210 210
 		}
211 211
 		);
212 212
 		$container->registerService(
213
-			'PreviewApiController', function (IContainer $c) {
213
+			'PreviewApiController', function(IContainer $c) {
214 214
 			return new PreviewApiController(
215 215
 				$c->query('AppName'),
216 216
 				$c->query('Request'),
@@ -229,30 +229,30 @@  discard block
 block discarded – undo
229 229
 		 * Core
230 230
 		 */
231 231
 		$container->registerService(
232
-			'EventSource', function (IAppContainer $c) {
232
+			'EventSource', function(IAppContainer $c) {
233 233
 			return new EventSource();
234 234
 		}
235 235
 		);
236 236
 		$container->registerService(
237
-			'Token', function (IContainer $c) {
237
+			'Token', function(IContainer $c) {
238 238
 			return $c->query('Request')
239 239
 					 ->getParam('token');
240 240
 		}
241 241
 		);
242 242
 		$container->registerService(
243
-			'Session', function (IAppContainer $c) {
243
+			'Session', function(IAppContainer $c) {
244 244
 			return $c->getServer()
245 245
 					 ->getSession();
246 246
 		}
247 247
 		);
248 248
 		$container->registerService(
249
-			'L10N', function (IAppContainer $c) {
249
+			'L10N', function(IAppContainer $c) {
250 250
 			return $c->getServer()
251 251
 					 ->getL10N('gallery'); // Keep the same translations
252 252
 		}
253 253
 		);
254 254
 		$container->registerService(
255
-			'UserFolder', function (IAppContainer $c) {
255
+			'UserFolder', function(IAppContainer $c) {
256 256
 			return $c->getServer()
257 257
 					 ->getUserFolder($c->query('UserId'));
258 258
 		}
@@ -262,12 +262,12 @@  discard block
 block discarded – undo
262 262
 		 * OCA
263 263
 		 */
264 264
 		$container->registerService(
265
-			'ConfigParser', function () {
265
+			'ConfigParser', function() {
266 266
 			return new ConfigParser();
267 267
 		}
268 268
 		);
269 269
 		$container->registerService(
270
-			'Environment', function (IContainer $c) {
270
+			'Environment', function(IContainer $c) {
271 271
 			return new Environment(
272 272
 				$c->query('AppName'),
273 273
 				$c->query('UserId'),
@@ -294,14 +294,14 @@  discard block
 block discarded – undo
294 294
 		if (\OCP\App::isEnabled('ocutility')) {
295 295
 			// @codeCoverageIgnoreStart
296 296
 			$container->registerService(
297
-				'UtilityContainer', function () {
297
+				'UtilityContainer', function() {
298 298
 				$app = new OcUtility();
299 299
 
300 300
 				return $app->getContainer();
301 301
 			}
302 302
 			);
303 303
 			$container->registerService(
304
-				'Helper', function (IContainer $c) {
304
+				'Helper', function(IContainer $c) {
305 305
 				return $c->query('UtilityContainer')
306 306
 						 ->query('OCA\OcUtility\Service\Helper');
307 307
 			}
@@ -309,7 +309,7 @@  discard block
 block discarded – undo
309 309
 		} else {
310 310
 			// @codeCoverageIgnoreEnd
311 311
 			$container->registerService(
312
-				'Logger', function (IContainer $c) {
312
+				'Logger', function(IContainer $c) {
313 313
 				return $c->query('OCP\ILogger');
314 314
 			}
315 315
 			);
@@ -318,7 +318,7 @@  discard block
 block discarded – undo
318 318
 		 * Services
319 319
 		 */
320 320
 		$container->registerService(
321
-			'SearchFolderService', function (IContainer $c) {
321
+			'SearchFolderService', function(IContainer $c) {
322 322
 			return new SearchFolderService(
323 323
 				$c->query('AppName'),
324 324
 				$c->query('Environment'),
@@ -327,7 +327,7 @@  discard block
 block discarded – undo
327 327
 		}
328 328
 		);
329 329
 		$container->registerService(
330
-			'ConfigService', function (IContainer $c) {
330
+			'ConfigService', function(IContainer $c) {
331 331
 			return new ConfigService(
332 332
 				$c->query('AppName'),
333 333
 				$c->query('Environment'),
@@ -338,7 +338,7 @@  discard block
 block discarded – undo
338 338
 		}
339 339
 		);
340 340
 		$container->registerService(
341
-			'SearchMediaService', function (IContainer $c) {
341
+			'SearchMediaService', function(IContainer $c) {
342 342
 			return new SearchMediaService(
343 343
 				$c->query('AppName'),
344 344
 				$c->query('Environment'),
@@ -347,12 +347,12 @@  discard block
 block discarded – undo
347 347
 		}
348 348
 		);
349 349
 		$container->registerService(
350
-			'ThumbnailService', function () {
350
+			'ThumbnailService', function() {
351 351
 			return new ThumbnailService();
352 352
 		}
353 353
 		);
354 354
 		$container->registerService(
355
-			'PreviewService', function (IContainer $c) {
355
+			'PreviewService', function(IContainer $c) {
356 356
 			return new PreviewService(
357 357
 				$c->query('AppName'),
358 358
 				$c->query('Environment'),
@@ -362,7 +362,7 @@  discard block
 block discarded – undo
362 362
 		}
363 363
 		);
364 364
 		$container->registerService(
365
-			'DownloadService', function (IContainer $c) {
365
+			'DownloadService', function(IContainer $c) {
366 366
 			return new DownloadService(
367 367
 				$c->query('AppName'),
368 368
 				$c->query('Environment'),
@@ -376,7 +376,7 @@  discard block
 block discarded – undo
376 376
 		 */
377 377
 		$container->registerService(
378 378
 			'SharingCheckMiddleware',
379
-			function (IAppContainer $c) {
379
+			function(IAppContainer $c) {
380 380
 				return new SharingCheckMiddleware(
381 381
 					$c->query('AppName'),
382 382
 					$c->query('Request'),
@@ -389,7 +389,7 @@  discard block
 block discarded – undo
389 389
 		);
390 390
 		$container->registerService(
391 391
 			'EnvCheckMiddleware',
392
-			function (IContainer $c) {
392
+			function(IContainer $c) {
393 393
 				return new EnvCheckMiddleware(
394 394
 					$c->query('AppName'),
395 395
 					$c->query('Request'),
Please login to merge, or discard this patch.