Completed
Push — master ( 07b6e2...f6f7b5 )
by Lukas
14:22
created
apps/files_sharing/composer/composer/ClassLoader.php 2 patches
Doc Comments   +5 added lines, -1 removed lines patch added patch discarded remove patch
@@ -148,7 +148,7 @@  discard block
 block discarded – undo
148 148
      * appending or prepending to the ones previously set for this namespace.
149 149
      *
150 150
      * @param string       $prefix  The prefix/namespace, with trailing '\\'
151
-     * @param array|string $paths   The PSR-4 base directories
151
+     * @param string $paths   The PSR-4 base directories
152 152
      * @param bool         $prepend Whether to prepend the directories
153 153
      *
154 154
      * @throws \InvalidArgumentException
@@ -367,6 +367,10 @@  discard block
 block discarded – undo
367 367
         return $file;
368 368
     }
369 369
 
370
+    /**
371
+     * @param string $class
372
+     * @param string $ext
373
+     */
370 374
     private function findFileWithExtension($class, $ext)
371 375
     {
372 376
         // PSR-4 lookup
Please login to merge, or discard this patch.
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -370,7 +370,7 @@  discard block
 block discarded – undo
370 370
     private function findFileWithExtension($class, $ext)
371 371
     {
372 372
         // PSR-4 lookup
373
-        $logicalPathPsr4 = strtr($class, '\\', DIRECTORY_SEPARATOR) . $ext;
373
+        $logicalPathPsr4 = strtr($class, '\\', DIRECTORY_SEPARATOR).$ext;
374 374
 
375 375
         $first = $class[0];
376 376
         if (isset($this->prefixLengthsPsr4[$first])) {
@@ -381,7 +381,7 @@  discard block
 block discarded – undo
381 381
                 if (isset($this->prefixDirsPsr4[$search])) {
382 382
                     foreach ($this->prefixDirsPsr4[$search] as $dir) {
383 383
                         $length = $this->prefixLengthsPsr4[$first][$search];
384
-                        if (file_exists($file = $dir . DIRECTORY_SEPARATOR . substr($logicalPathPsr4, $length))) {
384
+                        if (file_exists($file = $dir.DIRECTORY_SEPARATOR.substr($logicalPathPsr4, $length))) {
385 385
                             return $file;
386 386
                         }
387 387
                     }
@@ -391,7 +391,7 @@  discard block
 block discarded – undo
391 391
 
392 392
         // PSR-4 fallback dirs
393 393
         foreach ($this->fallbackDirsPsr4 as $dir) {
394
-            if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr4)) {
394
+            if (file_exists($file = $dir.DIRECTORY_SEPARATOR.$logicalPathPsr4)) {
395 395
                 return $file;
396 396
             }
397 397
         }
@@ -403,14 +403,14 @@  discard block
 block discarded – undo
403 403
                 . strtr(substr($logicalPathPsr4, $pos + 1), '_', DIRECTORY_SEPARATOR);
404 404
         } else {
405 405
             // PEAR-like class name
406
-            $logicalPathPsr0 = strtr($class, '_', DIRECTORY_SEPARATOR) . $ext;
406
+            $logicalPathPsr0 = strtr($class, '_', DIRECTORY_SEPARATOR).$ext;
407 407
         }
408 408
 
409 409
         if (isset($this->prefixesPsr0[$first])) {
410 410
             foreach ($this->prefixesPsr0[$first] as $prefix => $dirs) {
411 411
                 if (0 === strpos($class, $prefix)) {
412 412
                     foreach ($dirs as $dir) {
413
-                        if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr0)) {
413
+                        if (file_exists($file = $dir.DIRECTORY_SEPARATOR.$logicalPathPsr0)) {
414 414
                             return $file;
415 415
                         }
416 416
                     }
@@ -420,7 +420,7 @@  discard block
 block discarded – undo
420 420
 
421 421
         // PSR-0 fallback dirs
422 422
         foreach ($this->fallbackDirsPsr0 as $dir) {
423
-            if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr0)) {
423
+            if (file_exists($file = $dir.DIRECTORY_SEPARATOR.$logicalPathPsr0)) {
424 424
                 return $file;
425 425
             }
426 426
         }
Please login to merge, or discard this patch.
apps/files_sharing/composer/composer/autoload_classmap.php 1 patch
Spacing   +47 added lines, -47 removed lines patch added patch discarded remove patch
@@ -6,51 +6,51 @@
 block discarded – undo
6 6
 $baseDir = $vendorDir;
7 7
 
8 8
 return array(
9
-    'OCA\\Files_Sharing\\Activity\\Filter' => $baseDir . '/../lib/Activity/Filter.php',
10
-    'OCA\\Files_Sharing\\Activity\\Providers\\Base' => $baseDir . '/../lib/Activity/Providers/Base.php',
11
-    'OCA\\Files_Sharing\\Activity\\Providers\\Downloads' => $baseDir . '/../lib/Activity/Providers/Downloads.php',
12
-    'OCA\\Files_Sharing\\Activity\\Providers\\Groups' => $baseDir . '/../lib/Activity/Providers/Groups.php',
13
-    'OCA\\Files_Sharing\\Activity\\Providers\\PublicLinks' => $baseDir . '/../lib/Activity/Providers/PublicLinks.php',
14
-    'OCA\\Files_Sharing\\Activity\\Providers\\RemoteShares' => $baseDir . '/../lib/Activity/Providers/RemoteShares.php',
15
-    'OCA\\Files_Sharing\\Activity\\Providers\\Users' => $baseDir . '/../lib/Activity/Providers/Users.php',
16
-    'OCA\\Files_Sharing\\Activity\\Settings\\PublicLinks' => $baseDir . '/../lib/Activity/Settings/PublicLinks.php',
17
-    'OCA\\Files_Sharing\\Activity\\Settings\\RemoteShare' => $baseDir . '/../lib/Activity/Settings/RemoteShare.php',
18
-    'OCA\\Files_Sharing\\Activity\\Settings\\Shared' => $baseDir . '/../lib/Activity/Settings/Shared.php',
19
-    'OCA\\Files_Sharing\\AppInfo\\Application' => $baseDir . '/../lib/AppInfo/Application.php',
20
-    'OCA\\Files_Sharing\\Cache' => $baseDir . '/../lib/Cache.php',
21
-    'OCA\\Files_Sharing\\Capabilities' => $baseDir . '/../lib/Capabilities.php',
22
-    'OCA\\Files_Sharing\\Command\\CleanupRemoteStorages' => $baseDir . '/../lib/Command/CleanupRemoteStorages.php',
23
-    'OCA\\Files_Sharing\\Controller\\ExternalSharesController' => $baseDir . '/../lib/Controller/ExternalSharesController.php',
24
-    'OCA\\Files_Sharing\\Controller\\PublicPreviewController' => $baseDir . '/../lib/Controller/PublicPreviewController.php',
25
-    'OCA\\Files_Sharing\\Controller\\RemoteController' => $baseDir . '/../lib/Controller/RemoteController.php',
26
-    'OCA\\Files_Sharing\\Controller\\ShareAPIController' => $baseDir . '/../lib/Controller/ShareAPIController.php',
27
-    'OCA\\Files_Sharing\\Controller\\ShareController' => $baseDir . '/../lib/Controller/ShareController.php',
28
-    'OCA\\Files_Sharing\\Controller\\ShareInfoController' => $baseDir . '/../lib/Controller/ShareInfoController.php',
29
-    'OCA\\Files_Sharing\\Controller\\ShareesAPIController' => $baseDir . '/../lib/Controller/ShareesAPIController.php',
30
-    'OCA\\Files_Sharing\\DeleteOrphanedSharesJob' => $baseDir . '/../lib/DeleteOrphanedSharesJob.php',
31
-    'OCA\\Files_Sharing\\Exceptions\\BrokenPath' => $baseDir . '/../lib/Exceptions/BrokenPath.php',
32
-    'OCA\\Files_Sharing\\Exceptions\\S2SException' => $baseDir . '/../lib/Exceptions/S2SException.php',
33
-    'OCA\\Files_Sharing\\ExpireSharesJob' => $baseDir . '/../lib/ExpireSharesJob.php',
34
-    'OCA\\Files_Sharing\\External\\Cache' => $baseDir . '/../lib/External/Cache.php',
35
-    'OCA\\Files_Sharing\\External\\Manager' => $baseDir . '/../lib/External/Manager.php',
36
-    'OCA\\Files_Sharing\\External\\Mount' => $baseDir . '/../lib/External/Mount.php',
37
-    'OCA\\Files_Sharing\\External\\MountProvider' => $baseDir . '/../lib/External/MountProvider.php',
38
-    'OCA\\Files_Sharing\\External\\Scanner' => $baseDir . '/../lib/External/Scanner.php',
39
-    'OCA\\Files_Sharing\\External\\Storage' => $baseDir . '/../lib/External/Storage.php',
40
-    'OCA\\Files_Sharing\\External\\Watcher' => $baseDir . '/../lib/External/Watcher.php',
41
-    'OCA\\Files_Sharing\\Helper' => $baseDir . '/../lib/Helper.php',
42
-    'OCA\\Files_Sharing\\Hooks' => $baseDir . '/../lib/Hooks.php',
43
-    'OCA\\Files_Sharing\\ISharedStorage' => $baseDir . '/../lib/ISharedStorage.php',
44
-    'OCA\\Files_Sharing\\Middleware\\OCSShareAPIMiddleware' => $baseDir . '/../lib/Middleware/OCSShareAPIMiddleware.php',
45
-    'OCA\\Files_Sharing\\Middleware\\ShareInfoMiddleware' => $baseDir . '/../lib/Middleware/ShareInfoMiddleware.php',
46
-    'OCA\\Files_Sharing\\Middleware\\SharingCheckMiddleware' => $baseDir . '/../lib/Middleware/SharingCheckMiddleware.php',
47
-    'OCA\\Files_Sharing\\Migration\\OwncloudGuestShareType' => $baseDir . '/../lib/Migration/OwncloudGuestShareType.php',
48
-    'OCA\\Files_Sharing\\Migration\\SetPasswordColumn' => $baseDir . '/../lib/Migration/SetPasswordColumn.php',
49
-    'OCA\\Files_Sharing\\MountProvider' => $baseDir . '/../lib/MountProvider.php',
50
-    'OCA\\Files_Sharing\\Scanner' => $baseDir . '/../lib/Scanner.php',
51
-    'OCA\\Files_Sharing\\ShareBackend\\File' => $baseDir . '/../lib/ShareBackend/File.php',
52
-    'OCA\\Files_Sharing\\ShareBackend\\Folder' => $baseDir . '/../lib/ShareBackend/Folder.php',
53
-    'OCA\\Files_Sharing\\SharedMount' => $baseDir . '/../lib/SharedMount.php',
54
-    'OCA\\Files_Sharing\\SharedStorage' => $baseDir . '/../lib/SharedStorage.php',
55
-    'OCA\\Files_Sharing\\Updater' => $baseDir . '/../lib/Updater.php',
9
+    'OCA\\Files_Sharing\\Activity\\Filter' => $baseDir.'/../lib/Activity/Filter.php',
10
+    'OCA\\Files_Sharing\\Activity\\Providers\\Base' => $baseDir.'/../lib/Activity/Providers/Base.php',
11
+    'OCA\\Files_Sharing\\Activity\\Providers\\Downloads' => $baseDir.'/../lib/Activity/Providers/Downloads.php',
12
+    'OCA\\Files_Sharing\\Activity\\Providers\\Groups' => $baseDir.'/../lib/Activity/Providers/Groups.php',
13
+    'OCA\\Files_Sharing\\Activity\\Providers\\PublicLinks' => $baseDir.'/../lib/Activity/Providers/PublicLinks.php',
14
+    'OCA\\Files_Sharing\\Activity\\Providers\\RemoteShares' => $baseDir.'/../lib/Activity/Providers/RemoteShares.php',
15
+    'OCA\\Files_Sharing\\Activity\\Providers\\Users' => $baseDir.'/../lib/Activity/Providers/Users.php',
16
+    'OCA\\Files_Sharing\\Activity\\Settings\\PublicLinks' => $baseDir.'/../lib/Activity/Settings/PublicLinks.php',
17
+    'OCA\\Files_Sharing\\Activity\\Settings\\RemoteShare' => $baseDir.'/../lib/Activity/Settings/RemoteShare.php',
18
+    'OCA\\Files_Sharing\\Activity\\Settings\\Shared' => $baseDir.'/../lib/Activity/Settings/Shared.php',
19
+    'OCA\\Files_Sharing\\AppInfo\\Application' => $baseDir.'/../lib/AppInfo/Application.php',
20
+    'OCA\\Files_Sharing\\Cache' => $baseDir.'/../lib/Cache.php',
21
+    'OCA\\Files_Sharing\\Capabilities' => $baseDir.'/../lib/Capabilities.php',
22
+    'OCA\\Files_Sharing\\Command\\CleanupRemoteStorages' => $baseDir.'/../lib/Command/CleanupRemoteStorages.php',
23
+    'OCA\\Files_Sharing\\Controller\\ExternalSharesController' => $baseDir.'/../lib/Controller/ExternalSharesController.php',
24
+    'OCA\\Files_Sharing\\Controller\\PublicPreviewController' => $baseDir.'/../lib/Controller/PublicPreviewController.php',
25
+    'OCA\\Files_Sharing\\Controller\\RemoteController' => $baseDir.'/../lib/Controller/RemoteController.php',
26
+    'OCA\\Files_Sharing\\Controller\\ShareAPIController' => $baseDir.'/../lib/Controller/ShareAPIController.php',
27
+    'OCA\\Files_Sharing\\Controller\\ShareController' => $baseDir.'/../lib/Controller/ShareController.php',
28
+    'OCA\\Files_Sharing\\Controller\\ShareInfoController' => $baseDir.'/../lib/Controller/ShareInfoController.php',
29
+    'OCA\\Files_Sharing\\Controller\\ShareesAPIController' => $baseDir.'/../lib/Controller/ShareesAPIController.php',
30
+    'OCA\\Files_Sharing\\DeleteOrphanedSharesJob' => $baseDir.'/../lib/DeleteOrphanedSharesJob.php',
31
+    'OCA\\Files_Sharing\\Exceptions\\BrokenPath' => $baseDir.'/../lib/Exceptions/BrokenPath.php',
32
+    'OCA\\Files_Sharing\\Exceptions\\S2SException' => $baseDir.'/../lib/Exceptions/S2SException.php',
33
+    'OCA\\Files_Sharing\\ExpireSharesJob' => $baseDir.'/../lib/ExpireSharesJob.php',
34
+    'OCA\\Files_Sharing\\External\\Cache' => $baseDir.'/../lib/External/Cache.php',
35
+    'OCA\\Files_Sharing\\External\\Manager' => $baseDir.'/../lib/External/Manager.php',
36
+    'OCA\\Files_Sharing\\External\\Mount' => $baseDir.'/../lib/External/Mount.php',
37
+    'OCA\\Files_Sharing\\External\\MountProvider' => $baseDir.'/../lib/External/MountProvider.php',
38
+    'OCA\\Files_Sharing\\External\\Scanner' => $baseDir.'/../lib/External/Scanner.php',
39
+    'OCA\\Files_Sharing\\External\\Storage' => $baseDir.'/../lib/External/Storage.php',
40
+    'OCA\\Files_Sharing\\External\\Watcher' => $baseDir.'/../lib/External/Watcher.php',
41
+    'OCA\\Files_Sharing\\Helper' => $baseDir.'/../lib/Helper.php',
42
+    'OCA\\Files_Sharing\\Hooks' => $baseDir.'/../lib/Hooks.php',
43
+    'OCA\\Files_Sharing\\ISharedStorage' => $baseDir.'/../lib/ISharedStorage.php',
44
+    'OCA\\Files_Sharing\\Middleware\\OCSShareAPIMiddleware' => $baseDir.'/../lib/Middleware/OCSShareAPIMiddleware.php',
45
+    'OCA\\Files_Sharing\\Middleware\\ShareInfoMiddleware' => $baseDir.'/../lib/Middleware/ShareInfoMiddleware.php',
46
+    'OCA\\Files_Sharing\\Middleware\\SharingCheckMiddleware' => $baseDir.'/../lib/Middleware/SharingCheckMiddleware.php',
47
+    'OCA\\Files_Sharing\\Migration\\OwncloudGuestShareType' => $baseDir.'/../lib/Migration/OwncloudGuestShareType.php',
48
+    'OCA\\Files_Sharing\\Migration\\SetPasswordColumn' => $baseDir.'/../lib/Migration/SetPasswordColumn.php',
49
+    'OCA\\Files_Sharing\\MountProvider' => $baseDir.'/../lib/MountProvider.php',
50
+    'OCA\\Files_Sharing\\Scanner' => $baseDir.'/../lib/Scanner.php',
51
+    'OCA\\Files_Sharing\\ShareBackend\\File' => $baseDir.'/../lib/ShareBackend/File.php',
52
+    'OCA\\Files_Sharing\\ShareBackend\\Folder' => $baseDir.'/../lib/ShareBackend/Folder.php',
53
+    'OCA\\Files_Sharing\\SharedMount' => $baseDir.'/../lib/SharedMount.php',
54
+    'OCA\\Files_Sharing\\SharedStorage' => $baseDir.'/../lib/SharedStorage.php',
55
+    'OCA\\Files_Sharing\\Updater' => $baseDir.'/../lib/Updater.php',
56 56
 );
Please login to merge, or discard this patch.
apps/files_sharing/composer/composer/autoload_real.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
     public static function loadClassLoader($class)
10 10
     {
11 11
         if ('Composer\Autoload\ClassLoader' === $class) {
12
-            require __DIR__ . '/ClassLoader.php';
12
+            require __DIR__.'/ClassLoader.php';
13 13
         }
14 14
     }
15 15
 
@@ -25,21 +25,21 @@  discard block
 block discarded – undo
25 25
 
26 26
         $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
27 27
         if ($useStaticLoader) {
28
-            require_once __DIR__ . '/autoload_static.php';
28
+            require_once __DIR__.'/autoload_static.php';
29 29
 
30 30
             call_user_func(\Composer\Autoload\ComposerStaticInitf32f03f7cd82bff20d6a51be16689441::getInitializer($loader));
31 31
         } else {
32
-            $map = require __DIR__ . '/autoload_namespaces.php';
32
+            $map = require __DIR__.'/autoload_namespaces.php';
33 33
             foreach ($map as $namespace => $path) {
34 34
                 $loader->set($namespace, $path);
35 35
             }
36 36
 
37
-            $map = require __DIR__ . '/autoload_psr4.php';
37
+            $map = require __DIR__.'/autoload_psr4.php';
38 38
             foreach ($map as $namespace => $path) {
39 39
                 $loader->setPsr4($namespace, $path);
40 40
             }
41 41
 
42
-            $classMap = require __DIR__ . '/autoload_classmap.php';
42
+            $classMap = require __DIR__.'/autoload_classmap.php';
43 43
             if ($classMap) {
44 44
                 $loader->addClassMap($classMap);
45 45
             }
Please login to merge, or discard this patch.
apps/files_sharing/composer/composer/autoload_psr4.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,5 +6,5 @@
 block discarded – undo
6 6
 $baseDir = $vendorDir;
7 7
 
8 8
 return array(
9
-    'OCA\\Files_Sharing\\' => array($baseDir . '/../lib'),
9
+    'OCA\\Files_Sharing\\' => array($baseDir.'/../lib'),
10 10
 );
Please login to merge, or discard this patch.
apps/files_sharing/composer/composer/autoload_static.php 1 patch
Spacing   +54 added lines, -54 removed lines patch added patch discarded remove patch
@@ -6,73 +6,73 @@
 block discarded – undo
6 6
 
7 7
 class ComposerStaticInitf32f03f7cd82bff20d6a51be16689441
8 8
 {
9
-    public static $prefixLengthsPsr4 = array (
9
+    public static $prefixLengthsPsr4 = array(
10 10
         'O' => 
11
-        array (
11
+        array(
12 12
             'OCA\\Files_Sharing\\' => 18,
13 13
         ),
14 14
     );
15 15
 
16
-    public static $prefixDirsPsr4 = array (
16
+    public static $prefixDirsPsr4 = array(
17 17
         'OCA\\Files_Sharing\\' => 
18
-        array (
19
-            0 => __DIR__ . '/..' . '/../lib',
18
+        array(
19
+            0 => __DIR__.'/..'.'/../lib',
20 20
         ),
21 21
     );
22 22
 
23
-    public static $classMap = array (
24
-        'OCA\\Files_Sharing\\Activity\\Filter' => __DIR__ . '/..' . '/../lib/Activity/Filter.php',
25
-        'OCA\\Files_Sharing\\Activity\\Providers\\Base' => __DIR__ . '/..' . '/../lib/Activity/Providers/Base.php',
26
-        'OCA\\Files_Sharing\\Activity\\Providers\\Downloads' => __DIR__ . '/..' . '/../lib/Activity/Providers/Downloads.php',
27
-        'OCA\\Files_Sharing\\Activity\\Providers\\Groups' => __DIR__ . '/..' . '/../lib/Activity/Providers/Groups.php',
28
-        'OCA\\Files_Sharing\\Activity\\Providers\\PublicLinks' => __DIR__ . '/..' . '/../lib/Activity/Providers/PublicLinks.php',
29
-        'OCA\\Files_Sharing\\Activity\\Providers\\RemoteShares' => __DIR__ . '/..' . '/../lib/Activity/Providers/RemoteShares.php',
30
-        'OCA\\Files_Sharing\\Activity\\Providers\\Users' => __DIR__ . '/..' . '/../lib/Activity/Providers/Users.php',
31
-        'OCA\\Files_Sharing\\Activity\\Settings\\PublicLinks' => __DIR__ . '/..' . '/../lib/Activity/Settings/PublicLinks.php',
32
-        'OCA\\Files_Sharing\\Activity\\Settings\\RemoteShare' => __DIR__ . '/..' . '/../lib/Activity/Settings/RemoteShare.php',
33
-        'OCA\\Files_Sharing\\Activity\\Settings\\Shared' => __DIR__ . '/..' . '/../lib/Activity/Settings/Shared.php',
34
-        'OCA\\Files_Sharing\\AppInfo\\Application' => __DIR__ . '/..' . '/../lib/AppInfo/Application.php',
35
-        'OCA\\Files_Sharing\\Cache' => __DIR__ . '/..' . '/../lib/Cache.php',
36
-        'OCA\\Files_Sharing\\Capabilities' => __DIR__ . '/..' . '/../lib/Capabilities.php',
37
-        'OCA\\Files_Sharing\\Command\\CleanupRemoteStorages' => __DIR__ . '/..' . '/../lib/Command/CleanupRemoteStorages.php',
38
-        'OCA\\Files_Sharing\\Controller\\ExternalSharesController' => __DIR__ . '/..' . '/../lib/Controller/ExternalSharesController.php',
39
-        'OCA\\Files_Sharing\\Controller\\PublicPreviewController' => __DIR__ . '/..' . '/../lib/Controller/PublicPreviewController.php',
40
-        'OCA\\Files_Sharing\\Controller\\RemoteController' => __DIR__ . '/..' . '/../lib/Controller/RemoteController.php',
41
-        'OCA\\Files_Sharing\\Controller\\ShareAPIController' => __DIR__ . '/..' . '/../lib/Controller/ShareAPIController.php',
42
-        'OCA\\Files_Sharing\\Controller\\ShareController' => __DIR__ . '/..' . '/../lib/Controller/ShareController.php',
43
-        'OCA\\Files_Sharing\\Controller\\ShareInfoController' => __DIR__ . '/..' . '/../lib/Controller/ShareInfoController.php',
44
-        'OCA\\Files_Sharing\\Controller\\ShareesAPIController' => __DIR__ . '/..' . '/../lib/Controller/ShareesAPIController.php',
45
-        'OCA\\Files_Sharing\\DeleteOrphanedSharesJob' => __DIR__ . '/..' . '/../lib/DeleteOrphanedSharesJob.php',
46
-        'OCA\\Files_Sharing\\Exceptions\\BrokenPath' => __DIR__ . '/..' . '/../lib/Exceptions/BrokenPath.php',
47
-        'OCA\\Files_Sharing\\Exceptions\\S2SException' => __DIR__ . '/..' . '/../lib/Exceptions/S2SException.php',
48
-        'OCA\\Files_Sharing\\ExpireSharesJob' => __DIR__ . '/..' . '/../lib/ExpireSharesJob.php',
49
-        'OCA\\Files_Sharing\\External\\Cache' => __DIR__ . '/..' . '/../lib/External/Cache.php',
50
-        'OCA\\Files_Sharing\\External\\Manager' => __DIR__ . '/..' . '/../lib/External/Manager.php',
51
-        'OCA\\Files_Sharing\\External\\Mount' => __DIR__ . '/..' . '/../lib/External/Mount.php',
52
-        'OCA\\Files_Sharing\\External\\MountProvider' => __DIR__ . '/..' . '/../lib/External/MountProvider.php',
53
-        'OCA\\Files_Sharing\\External\\Scanner' => __DIR__ . '/..' . '/../lib/External/Scanner.php',
54
-        'OCA\\Files_Sharing\\External\\Storage' => __DIR__ . '/..' . '/../lib/External/Storage.php',
55
-        'OCA\\Files_Sharing\\External\\Watcher' => __DIR__ . '/..' . '/../lib/External/Watcher.php',
56
-        'OCA\\Files_Sharing\\Helper' => __DIR__ . '/..' . '/../lib/Helper.php',
57
-        'OCA\\Files_Sharing\\Hooks' => __DIR__ . '/..' . '/../lib/Hooks.php',
58
-        'OCA\\Files_Sharing\\ISharedStorage' => __DIR__ . '/..' . '/../lib/ISharedStorage.php',
59
-        'OCA\\Files_Sharing\\Middleware\\OCSShareAPIMiddleware' => __DIR__ . '/..' . '/../lib/Middleware/OCSShareAPIMiddleware.php',
60
-        'OCA\\Files_Sharing\\Middleware\\ShareInfoMiddleware' => __DIR__ . '/..' . '/../lib/Middleware/ShareInfoMiddleware.php',
61
-        'OCA\\Files_Sharing\\Middleware\\SharingCheckMiddleware' => __DIR__ . '/..' . '/../lib/Middleware/SharingCheckMiddleware.php',
62
-        'OCA\\Files_Sharing\\Migration\\OwncloudGuestShareType' => __DIR__ . '/..' . '/../lib/Migration/OwncloudGuestShareType.php',
63
-        'OCA\\Files_Sharing\\Migration\\SetPasswordColumn' => __DIR__ . '/..' . '/../lib/Migration/SetPasswordColumn.php',
64
-        'OCA\\Files_Sharing\\MountProvider' => __DIR__ . '/..' . '/../lib/MountProvider.php',
65
-        'OCA\\Files_Sharing\\Scanner' => __DIR__ . '/..' . '/../lib/Scanner.php',
66
-        'OCA\\Files_Sharing\\ShareBackend\\File' => __DIR__ . '/..' . '/../lib/ShareBackend/File.php',
67
-        'OCA\\Files_Sharing\\ShareBackend\\Folder' => __DIR__ . '/..' . '/../lib/ShareBackend/Folder.php',
68
-        'OCA\\Files_Sharing\\SharedMount' => __DIR__ . '/..' . '/../lib/SharedMount.php',
69
-        'OCA\\Files_Sharing\\SharedStorage' => __DIR__ . '/..' . '/../lib/SharedStorage.php',
70
-        'OCA\\Files_Sharing\\Updater' => __DIR__ . '/..' . '/../lib/Updater.php',
23
+    public static $classMap = array(
24
+        'OCA\\Files_Sharing\\Activity\\Filter' => __DIR__.'/..'.'/../lib/Activity/Filter.php',
25
+        'OCA\\Files_Sharing\\Activity\\Providers\\Base' => __DIR__.'/..'.'/../lib/Activity/Providers/Base.php',
26
+        'OCA\\Files_Sharing\\Activity\\Providers\\Downloads' => __DIR__.'/..'.'/../lib/Activity/Providers/Downloads.php',
27
+        'OCA\\Files_Sharing\\Activity\\Providers\\Groups' => __DIR__.'/..'.'/../lib/Activity/Providers/Groups.php',
28
+        'OCA\\Files_Sharing\\Activity\\Providers\\PublicLinks' => __DIR__.'/..'.'/../lib/Activity/Providers/PublicLinks.php',
29
+        'OCA\\Files_Sharing\\Activity\\Providers\\RemoteShares' => __DIR__.'/..'.'/../lib/Activity/Providers/RemoteShares.php',
30
+        'OCA\\Files_Sharing\\Activity\\Providers\\Users' => __DIR__.'/..'.'/../lib/Activity/Providers/Users.php',
31
+        'OCA\\Files_Sharing\\Activity\\Settings\\PublicLinks' => __DIR__.'/..'.'/../lib/Activity/Settings/PublicLinks.php',
32
+        'OCA\\Files_Sharing\\Activity\\Settings\\RemoteShare' => __DIR__.'/..'.'/../lib/Activity/Settings/RemoteShare.php',
33
+        'OCA\\Files_Sharing\\Activity\\Settings\\Shared' => __DIR__.'/..'.'/../lib/Activity/Settings/Shared.php',
34
+        'OCA\\Files_Sharing\\AppInfo\\Application' => __DIR__.'/..'.'/../lib/AppInfo/Application.php',
35
+        'OCA\\Files_Sharing\\Cache' => __DIR__.'/..'.'/../lib/Cache.php',
36
+        'OCA\\Files_Sharing\\Capabilities' => __DIR__.'/..'.'/../lib/Capabilities.php',
37
+        'OCA\\Files_Sharing\\Command\\CleanupRemoteStorages' => __DIR__.'/..'.'/../lib/Command/CleanupRemoteStorages.php',
38
+        'OCA\\Files_Sharing\\Controller\\ExternalSharesController' => __DIR__.'/..'.'/../lib/Controller/ExternalSharesController.php',
39
+        'OCA\\Files_Sharing\\Controller\\PublicPreviewController' => __DIR__.'/..'.'/../lib/Controller/PublicPreviewController.php',
40
+        'OCA\\Files_Sharing\\Controller\\RemoteController' => __DIR__.'/..'.'/../lib/Controller/RemoteController.php',
41
+        'OCA\\Files_Sharing\\Controller\\ShareAPIController' => __DIR__.'/..'.'/../lib/Controller/ShareAPIController.php',
42
+        'OCA\\Files_Sharing\\Controller\\ShareController' => __DIR__.'/..'.'/../lib/Controller/ShareController.php',
43
+        'OCA\\Files_Sharing\\Controller\\ShareInfoController' => __DIR__.'/..'.'/../lib/Controller/ShareInfoController.php',
44
+        'OCA\\Files_Sharing\\Controller\\ShareesAPIController' => __DIR__.'/..'.'/../lib/Controller/ShareesAPIController.php',
45
+        'OCA\\Files_Sharing\\DeleteOrphanedSharesJob' => __DIR__.'/..'.'/../lib/DeleteOrphanedSharesJob.php',
46
+        'OCA\\Files_Sharing\\Exceptions\\BrokenPath' => __DIR__.'/..'.'/../lib/Exceptions/BrokenPath.php',
47
+        'OCA\\Files_Sharing\\Exceptions\\S2SException' => __DIR__.'/..'.'/../lib/Exceptions/S2SException.php',
48
+        'OCA\\Files_Sharing\\ExpireSharesJob' => __DIR__.'/..'.'/../lib/ExpireSharesJob.php',
49
+        'OCA\\Files_Sharing\\External\\Cache' => __DIR__.'/..'.'/../lib/External/Cache.php',
50
+        'OCA\\Files_Sharing\\External\\Manager' => __DIR__.'/..'.'/../lib/External/Manager.php',
51
+        'OCA\\Files_Sharing\\External\\Mount' => __DIR__.'/..'.'/../lib/External/Mount.php',
52
+        'OCA\\Files_Sharing\\External\\MountProvider' => __DIR__.'/..'.'/../lib/External/MountProvider.php',
53
+        'OCA\\Files_Sharing\\External\\Scanner' => __DIR__.'/..'.'/../lib/External/Scanner.php',
54
+        'OCA\\Files_Sharing\\External\\Storage' => __DIR__.'/..'.'/../lib/External/Storage.php',
55
+        'OCA\\Files_Sharing\\External\\Watcher' => __DIR__.'/..'.'/../lib/External/Watcher.php',
56
+        'OCA\\Files_Sharing\\Helper' => __DIR__.'/..'.'/../lib/Helper.php',
57
+        'OCA\\Files_Sharing\\Hooks' => __DIR__.'/..'.'/../lib/Hooks.php',
58
+        'OCA\\Files_Sharing\\ISharedStorage' => __DIR__.'/..'.'/../lib/ISharedStorage.php',
59
+        'OCA\\Files_Sharing\\Middleware\\OCSShareAPIMiddleware' => __DIR__.'/..'.'/../lib/Middleware/OCSShareAPIMiddleware.php',
60
+        'OCA\\Files_Sharing\\Middleware\\ShareInfoMiddleware' => __DIR__.'/..'.'/../lib/Middleware/ShareInfoMiddleware.php',
61
+        'OCA\\Files_Sharing\\Middleware\\SharingCheckMiddleware' => __DIR__.'/..'.'/../lib/Middleware/SharingCheckMiddleware.php',
62
+        'OCA\\Files_Sharing\\Migration\\OwncloudGuestShareType' => __DIR__.'/..'.'/../lib/Migration/OwncloudGuestShareType.php',
63
+        'OCA\\Files_Sharing\\Migration\\SetPasswordColumn' => __DIR__.'/..'.'/../lib/Migration/SetPasswordColumn.php',
64
+        'OCA\\Files_Sharing\\MountProvider' => __DIR__.'/..'.'/../lib/MountProvider.php',
65
+        'OCA\\Files_Sharing\\Scanner' => __DIR__.'/..'.'/../lib/Scanner.php',
66
+        'OCA\\Files_Sharing\\ShareBackend\\File' => __DIR__.'/..'.'/../lib/ShareBackend/File.php',
67
+        'OCA\\Files_Sharing\\ShareBackend\\Folder' => __DIR__.'/..'.'/../lib/ShareBackend/Folder.php',
68
+        'OCA\\Files_Sharing\\SharedMount' => __DIR__.'/..'.'/../lib/SharedMount.php',
69
+        'OCA\\Files_Sharing\\SharedStorage' => __DIR__.'/..'.'/../lib/SharedStorage.php',
70
+        'OCA\\Files_Sharing\\Updater' => __DIR__.'/..'.'/../lib/Updater.php',
71 71
     );
72 72
 
73 73
     public static function getInitializer(ClassLoader $loader)
74 74
     {
75
-        return \Closure::bind(function () use ($loader) {
75
+        return \Closure::bind(function() use ($loader) {
76 76
             $loader->prefixLengthsPsr4 = ComposerStaticInitf32f03f7cd82bff20d6a51be16689441::$prefixLengthsPsr4;
77 77
             $loader->prefixDirsPsr4 = ComposerStaticInitf32f03f7cd82bff20d6a51be16689441::$prefixDirsPsr4;
78 78
             $loader->classMap = ComposerStaticInitf32f03f7cd82bff20d6a51be16689441::$classMap;
Please login to merge, or discard this patch.
apps/files_sharing/composer/autoload.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,6 +2,6 @@
 block discarded – undo
2 2
 
3 3
 // autoload.php @generated by Composer
4 4
 
5
-require_once __DIR__ . '/composer/autoload_real.php';
5
+require_once __DIR__.'/composer/autoload_real.php';
6 6
 
7 7
 return ComposerAutoloaderInitf32f03f7cd82bff20d6a51be16689441::getLoader();
Please login to merge, or discard this patch.
lib/private/legacy/app.php 1 patch
Spacing   +60 added lines, -60 removed lines patch added patch discarded remove patch
@@ -111,9 +111,9 @@  discard block
 block discarded – undo
111 111
 		$apps = self::getEnabledApps();
112 112
 
113 113
 		// Add each apps' folder as allowed class path
114
-		foreach($apps as $app) {
114
+		foreach ($apps as $app) {
115 115
 			$path = self::getAppPath($app);
116
-			if($path !== false) {
116
+			if ($path !== false) {
117 117
 				self::registerAutoloading($app, $path);
118 118
 			}
119 119
 		}
@@ -138,15 +138,15 @@  discard block
 block discarded – undo
138 138
 	public static function loadApp($app) {
139 139
 		self::$loadedApps[] = $app;
140 140
 		$appPath = self::getAppPath($app);
141
-		if($appPath === false) {
141
+		if ($appPath === false) {
142 142
 			return;
143 143
 		}
144 144
 
145 145
 		// in case someone calls loadApp() directly
146 146
 		self::registerAutoloading($app, $appPath);
147 147
 
148
-		if (is_file($appPath . '/appinfo/app.php')) {
149
-			\OC::$server->getEventLogger()->start('load_app_' . $app, 'Load app: ' . $app);
148
+		if (is_file($appPath.'/appinfo/app.php')) {
149
+			\OC::$server->getEventLogger()->start('load_app_'.$app, 'Load app: '.$app);
150 150
 			self::requireAppFile($app);
151 151
 			if (self::isType($app, array('authentication'))) {
152 152
 				// since authentication apps affect the "is app enabled for group" check,
@@ -155,7 +155,7 @@  discard block
 block discarded – undo
155 155
 				// enabled for groups
156 156
 				self::$enabledAppsCache = array();
157 157
 			}
158
-			\OC::$server->getEventLogger()->end('load_app_' . $app);
158
+			\OC::$server->getEventLogger()->end('load_app_'.$app);
159 159
 		}
160 160
 
161 161
 		$info = self::getAppInfo($app);
@@ -179,7 +179,7 @@  discard block
 block discarded – undo
179 179
 			$plugins = isset($info['collaboration']['plugins']['plugin']['@value']) ?
180 180
 				[$info['collaboration']['plugins']['plugin']] : $info['collaboration']['plugins']['plugin'];
181 181
 			foreach ($plugins as $plugin) {
182
-				if($plugin['@attributes']['type'] === 'collaborator-search') {
182
+				if ($plugin['@attributes']['type'] === 'collaborator-search') {
183 183
 					$pluginInfo = [
184 184
 						'shareType' => $plugin['@attributes']['share-type'],
185 185
 						'class' => $plugin['@value'],
@@ -196,8 +196,8 @@  discard block
 block discarded – undo
196 196
 	 * @param string $path
197 197
 	 */
198 198
 	public static function registerAutoloading($app, $path) {
199
-		$key = $app . '-' . $path;
200
-		if(isset(self::$alreadyRegistered[$key])) {
199
+		$key = $app.'-'.$path;
200
+		if (isset(self::$alreadyRegistered[$key])) {
201 201
 			return;
202 202
 		}
203 203
 
@@ -207,17 +207,17 @@  discard block
 block discarded – undo
207 207
 		$appNamespace = \OC\AppFramework\App::buildAppNamespace($app);
208 208
 		\OC::$server->registerNamespace($app, $appNamespace);
209 209
 
210
-		if (file_exists($path . '/composer/autoload.php')) {
211
-			require_once $path . '/composer/autoload.php';
210
+		if (file_exists($path.'/composer/autoload.php')) {
211
+			require_once $path.'/composer/autoload.php';
212 212
 		} else {
213
-			\OC::$composerAutoloader->addPsr4($appNamespace . '\\', $path . '/lib/', true);
213
+			\OC::$composerAutoloader->addPsr4($appNamespace.'\\', $path.'/lib/', true);
214 214
 			// Register on legacy autoloader
215 215
 			\OC::$loader->addValidRoot($path);
216 216
 		}
217 217
 
218 218
 		// Register Test namespace only when testing
219 219
 		if (defined('PHPUNIT_RUN') || defined('CLI_TEST_RUN')) {
220
-			\OC::$composerAutoloader->addPsr4($appNamespace . '\\Tests\\', $path . '/tests/', true);
220
+			\OC::$composerAutoloader->addPsr4($appNamespace.'\\Tests\\', $path.'/tests/', true);
221 221
 		}
222 222
 	}
223 223
 
@@ -229,7 +229,7 @@  discard block
 block discarded – undo
229 229
 	private static function requireAppFile($app) {
230 230
 		try {
231 231
 			// encapsulated here to avoid variable scope conflicts
232
-			require_once $app . '/appinfo/app.php';
232
+			require_once $app.'/appinfo/app.php';
233 233
 		} catch (Error $ex) {
234 234
 			\OC::$server->getLogger()->logException($ex);
235 235
 			$blacklist = \OC::$server->getAppManager()->getAlwaysEnabledApps();
@@ -283,7 +283,7 @@  discard block
 block discarded – undo
283 283
 	 */
284 284
 	public static function setAppTypes($app) {
285 285
 		$appData = self::getAppInfo($app);
286
-		if(!is_array($appData)) {
286
+		if (!is_array($appData)) {
287 287
 			return;
288 288
 		}
289 289
 
@@ -335,8 +335,8 @@  discard block
 block discarded – undo
335 335
 		} else {
336 336
 			$apps = $appManager->getEnabledAppsForUser($user);
337 337
 		}
338
-		$apps = array_filter($apps, function ($app) {
339
-			return $app !== 'files';//we add this manually
338
+		$apps = array_filter($apps, function($app) {
339
+			return $app !== 'files'; //we add this manually
340 340
 		});
341 341
 		sort($apps);
342 342
 		array_unshift($apps, 'files');
@@ -379,7 +379,7 @@  discard block
 block discarded – undo
379 379
 		);
380 380
 		$isDownloaded = $installer->isDownloaded($appId);
381 381
 
382
-		if(!$isDownloaded) {
382
+		if (!$isDownloaded) {
383 383
 			$installer->downloadApp($appId);
384 384
 		}
385 385
 
@@ -498,7 +498,7 @@  discard block
 block discarded – undo
498 498
 	 */
499 499
 	public static function findAppInDirectories($appId) {
500 500
 		$sanitizedAppId = self::cleanAppId($appId);
501
-		if($sanitizedAppId !== $appId) {
501
+		if ($sanitizedAppId !== $appId) {
502 502
 			return false;
503 503
 		}
504 504
 		static $app_dir = array();
@@ -509,7 +509,7 @@  discard block
 block discarded – undo
509 509
 
510 510
 		$possibleApps = array();
511 511
 		foreach (OC::$APPSROOTS as $dir) {
512
-			if (file_exists($dir['path'] . '/' . $appId)) {
512
+			if (file_exists($dir['path'].'/'.$appId)) {
513 513
 				$possibleApps[] = $dir;
514 514
 			}
515 515
 		}
@@ -550,7 +550,7 @@  discard block
 block discarded – undo
550 550
 		}
551 551
 
552 552
 		if (($dir = self::findAppInDirectories($appId)) != false) {
553
-			return $dir['path'] . '/' . $appId;
553
+			return $dir['path'].'/'.$appId;
554 554
 		}
555 555
 		return false;
556 556
 	}
@@ -564,7 +564,7 @@  discard block
 block discarded – undo
564 564
 	 */
565 565
 	public static function getAppWebPath($appId) {
566 566
 		if (($dir = self::findAppInDirectories($appId)) != false) {
567
-			return OC::$WEBROOT . $dir['url'] . '/' . $appId;
567
+			return OC::$WEBROOT.$dir['url'].'/'.$appId;
568 568
 		}
569 569
 		return false;
570 570
 	}
@@ -577,7 +577,7 @@  discard block
 block discarded – undo
577 577
 	 * @return string
578 578
 	 */
579 579
 	public static function getAppVersion($appId, $useCache = true) {
580
-		if($useCache && isset(self::$appVersion[$appId])) {
580
+		if ($useCache && isset(self::$appVersion[$appId])) {
581 581
 			return self::$appVersion[$appId];
582 582
 		}
583 583
 
@@ -593,7 +593,7 @@  discard block
 block discarded – undo
593 593
 	 * @return string
594 594
 	 */
595 595
 	public static function getAppVersionByPath($path) {
596
-		$infoFile = $path . '/appinfo/info.xml';
596
+		$infoFile = $path.'/appinfo/info.xml';
597 597
 		$appData = self::getAppInfo($infoFile, true);
598 598
 		return isset($appData['version']) ? $appData['version'] : '';
599 599
 	}
@@ -616,10 +616,10 @@  discard block
 block discarded – undo
616 616
 				return self::$appInfo[$appId];
617 617
 			}
618 618
 			$appPath = self::getAppPath($appId);
619
-			if($appPath === false) {
619
+			if ($appPath === false) {
620 620
 				return null;
621 621
 			}
622
-			$file = $appPath . '/appinfo/info.xml';
622
+			$file = $appPath.'/appinfo/info.xml';
623 623
 		}
624 624
 
625 625
 		$parser = new InfoParser(\OC::$server->getMemCacheFactory()->createLocal('core.appinfo'));
@@ -628,9 +628,9 @@  discard block
 block discarded – undo
628 628
 		if (is_array($data)) {
629 629
 			$data = OC_App::parseAppInfo($data, $lang);
630 630
 		}
631
-		if(isset($data['ocsid'])) {
631
+		if (isset($data['ocsid'])) {
632 632
 			$storedId = \OC::$server->getConfig()->getAppValue($appId, 'ocsid');
633
-			if($storedId !== '' && $storedId !== $data['ocsid']) {
633
+			if ($storedId !== '' && $storedId !== $data['ocsid']) {
634 634
 				$data['ocsid'] = $storedId;
635 635
 			}
636 636
 		}
@@ -722,7 +722,7 @@  discard block
 block discarded – undo
722 722
 	 * @param string $page
723 723
 	 */
724 724
 	public static function registerAdmin($app, $page) {
725
-		self::$adminForms[] = $app . '/' . $page . '.php';
725
+		self::$adminForms[] = $app.'/'.$page.'.php';
726 726
 	}
727 727
 
728 728
 	/**
@@ -731,7 +731,7 @@  discard block
 block discarded – undo
731 731
 	 * @param string $page
732 732
 	 */
733 733
 	public static function registerPersonal($app, $page) {
734
-		self::$personalForms[] = $app . '/' . $page . '.php';
734
+		self::$personalForms[] = $app.'/'.$page.'.php';
735 735
 	}
736 736
 
737 737
 	/**
@@ -760,7 +760,7 @@  discard block
 block discarded – undo
760 760
 
761 761
 		foreach (OC::$APPSROOTS as $apps_dir) {
762 762
 			if (!is_readable($apps_dir['path'])) {
763
-				\OCP\Util::writeLog('core', 'unable to read app folder : ' . $apps_dir['path'], \OCP\Util::WARN);
763
+				\OCP\Util::writeLog('core', 'unable to read app folder : '.$apps_dir['path'], \OCP\Util::WARN);
764 764
 				continue;
765 765
 			}
766 766
 			$dh = opendir($apps_dir['path']);
@@ -768,7 +768,7 @@  discard block
 block discarded – undo
768 768
 			if (is_resource($dh)) {
769 769
 				while (($file = readdir($dh)) !== false) {
770 770
 
771
-					if ($file[0] != '.' and is_dir($apps_dir['path'] . '/' . $file) and is_file($apps_dir['path'] . '/' . $file . '/appinfo/info.xml')) {
771
+					if ($file[0] != '.' and is_dir($apps_dir['path'].'/'.$file) and is_file($apps_dir['path'].'/'.$file.'/appinfo/info.xml')) {
772 772
 
773 773
 						$apps[] = $file;
774 774
 					}
@@ -801,12 +801,12 @@  discard block
 block discarded – undo
801 801
 
802 802
 				$info = OC_App::getAppInfo($app, false, $langCode);
803 803
 				if (!is_array($info)) {
804
-					\OCP\Util::writeLog('core', 'Could not read app info file for app "' . $app . '"', \OCP\Util::ERROR);
804
+					\OCP\Util::writeLog('core', 'Could not read app info file for app "'.$app.'"', \OCP\Util::ERROR);
805 805
 					continue;
806 806
 				}
807 807
 
808 808
 				if (!isset($info['name'])) {
809
-					\OCP\Util::writeLog('core', 'App id "' . $app . '" has no name in appinfo', \OCP\Util::ERROR);
809
+					\OCP\Util::writeLog('core', 'App id "'.$app.'" has no name in appinfo', \OCP\Util::ERROR);
810 810
 					continue;
811 811
 				}
812 812
 
@@ -833,13 +833,13 @@  discard block
 block discarded – undo
833 833
 				}
834 834
 
835 835
 				$appPath = self::getAppPath($app);
836
-				if($appPath !== false) {
837
-					$appIcon = $appPath . '/img/' . $app . '.svg';
836
+				if ($appPath !== false) {
837
+					$appIcon = $appPath.'/img/'.$app.'.svg';
838 838
 					if (file_exists($appIcon)) {
839
-						$info['preview'] = $urlGenerator->imagePath($app, $app . '.svg');
839
+						$info['preview'] = $urlGenerator->imagePath($app, $app.'.svg');
840 840
 						$info['previewAsIcon'] = true;
841 841
 					} else {
842
-						$appIcon = $appPath . '/img/app.svg';
842
+						$appIcon = $appPath.'/img/app.svg';
843 843
 						if (file_exists($appIcon)) {
844 844
 							$info['preview'] = $urlGenerator->imagePath($app, 'app.svg');
845 845
 							$info['previewAsIcon'] = true;
@@ -873,9 +873,9 @@  discard block
 block discarded – undo
873 873
 	 * @return string|false
874 874
 	 */
875 875
 	public static function getInternalAppIdByOcs($ocsID) {
876
-		if(is_numeric($ocsID)) {
876
+		if (is_numeric($ocsID)) {
877 877
 			$idArray = \OC::$server->getAppConfig()->getValues(false, 'ocsid');
878
-			if(array_search($ocsID, $idArray)) {
878
+			if (array_search($ocsID, $idArray)) {
879 879
 				return array_search($ocsID, $idArray);
880 880
 			}
881 881
 		}
@@ -979,7 +979,7 @@  discard block
 block discarded – undo
979 979
 	public static function getAppVersions() {
980 980
 		static $versions;
981 981
 
982
-		if(!$versions) {
982
+		if (!$versions) {
983 983
 			$appConfig = \OC::$server->getAppConfig();
984 984
 			$versions = $appConfig->getValues(false, 'installed_version');
985 985
 		}
@@ -1001,7 +1001,7 @@  discard block
 block discarded – undo
1001 1001
 		if ($app !== false) {
1002 1002
 			// check if the app is compatible with this version of ownCloud
1003 1003
 			$info = self::getAppInfo($app);
1004
-			if(!is_array($info)) {
1004
+			if (!is_array($info)) {
1005 1005
 				throw new \Exception(
1006 1006
 					$l->t('App "%s" cannot be installed because appinfo file cannot be read.',
1007 1007
 						[$info['name']]
@@ -1026,7 +1026,7 @@  discard block
 block discarded – undo
1026 1026
 				$config->setAppValue($app, 'ocsid', $appData['id']);
1027 1027
 			}
1028 1028
 
1029
-			if(isset($info['settings']) && is_array($info['settings'])) {
1029
+			if (isset($info['settings']) && is_array($info['settings'])) {
1030 1030
 				$appPath = self::getAppPath($app);
1031 1031
 				self::registerAutoloading($app, $appPath);
1032 1032
 				\OC::$server->getSettingsManager()->setupSettings($info['settings']);
@@ -1034,7 +1034,7 @@  discard block
 block discarded – undo
1034 1034
 
1035 1035
 			\OC_Hook::emit('OC_App', 'post_enable', array('app' => $app));
1036 1036
 		} else {
1037
-			if(empty($appName) ) {
1037
+			if (empty($appName)) {
1038 1038
 				throw new \Exception($l->t("No app name specified"));
1039 1039
 			} else {
1040 1040
 				throw new \Exception($l->t("App '%s' could not be installed!", $appName));
@@ -1052,7 +1052,7 @@  discard block
 block discarded – undo
1052 1052
 	 */
1053 1053
 	public static function updateApp($appId) {
1054 1054
 		$appPath = self::getAppPath($appId);
1055
-		if($appPath === false) {
1055
+		if ($appPath === false) {
1056 1056
 			return false;
1057 1057
 		}
1058 1058
 		self::registerAutoloading($appId, $appPath);
@@ -1060,8 +1060,8 @@  discard block
 block discarded – undo
1060 1060
 		$appData = self::getAppInfo($appId);
1061 1061
 		self::executeRepairSteps($appId, $appData['repair-steps']['pre-migration']);
1062 1062
 
1063
-		if (file_exists($appPath . '/appinfo/database.xml')) {
1064
-			OC_DB::updateDbFromStructure($appPath . '/appinfo/database.xml');
1063
+		if (file_exists($appPath.'/appinfo/database.xml')) {
1064
+			OC_DB::updateDbFromStructure($appPath.'/appinfo/database.xml');
1065 1065
 		} else {
1066 1066
 			$ms = new MigrationService($appId, \OC::$server->getDatabaseConnection());
1067 1067
 			$ms->migrate();
@@ -1072,26 +1072,26 @@  discard block
 block discarded – undo
1072 1072
 		unset(self::$appVersion[$appId]);
1073 1073
 
1074 1074
 		// run upgrade code
1075
-		if (file_exists($appPath . '/appinfo/update.php')) {
1075
+		if (file_exists($appPath.'/appinfo/update.php')) {
1076 1076
 			self::loadApp($appId);
1077
-			include $appPath . '/appinfo/update.php';
1077
+			include $appPath.'/appinfo/update.php';
1078 1078
 		}
1079 1079
 		self::setupBackgroundJobs($appData['background-jobs']);
1080
-		if(isset($appData['settings']) && is_array($appData['settings'])) {
1080
+		if (isset($appData['settings']) && is_array($appData['settings'])) {
1081 1081
 			\OC::$server->getSettingsManager()->setupSettings($appData['settings']);
1082 1082
 		}
1083 1083
 
1084 1084
 		//set remote/public handlers
1085 1085
 		if (array_key_exists('ocsid', $appData)) {
1086 1086
 			\OC::$server->getConfig()->setAppValue($appId, 'ocsid', $appData['ocsid']);
1087
-		} elseif(\OC::$server->getConfig()->getAppValue($appId, 'ocsid', null) !== null) {
1087
+		} elseif (\OC::$server->getConfig()->getAppValue($appId, 'ocsid', null) !== null) {
1088 1088
 			\OC::$server->getConfig()->deleteAppValue($appId, 'ocsid');
1089 1089
 		}
1090 1090
 		foreach ($appData['remote'] as $name => $path) {
1091
-			\OC::$server->getConfig()->setAppValue('core', 'remote_' . $name, $appId . '/' . $path);
1091
+			\OC::$server->getConfig()->setAppValue('core', 'remote_'.$name, $appId.'/'.$path);
1092 1092
 		}
1093 1093
 		foreach ($appData['public'] as $name => $path) {
1094
-			\OC::$server->getConfig()->setAppValue('core', 'public_' . $name, $appId . '/' . $path);
1094
+			\OC::$server->getConfig()->setAppValue('core', 'public_'.$name, $appId.'/'.$path);
1095 1095
 		}
1096 1096
 
1097 1097
 		self::setAppTypes($appId);
@@ -1161,17 +1161,17 @@  discard block
 block discarded – undo
1161 1161
 	public static function getStorage($appId) {
1162 1162
 		if (OC_App::isEnabled($appId)) { //sanity check
1163 1163
 			if (\OC::$server->getUserSession()->isLoggedIn()) {
1164
-				$view = new \OC\Files\View('/' . OC_User::getUser());
1164
+				$view = new \OC\Files\View('/'.OC_User::getUser());
1165 1165
 				if (!$view->file_exists($appId)) {
1166 1166
 					$view->mkdir($appId);
1167 1167
 				}
1168
-				return new \OC\Files\View('/' . OC_User::getUser() . '/' . $appId);
1168
+				return new \OC\Files\View('/'.OC_User::getUser().'/'.$appId);
1169 1169
 			} else {
1170
-				\OCP\Util::writeLog('core', 'Can\'t get app storage, app ' . $appId . ', user not logged in', \OCP\Util::ERROR);
1170
+				\OCP\Util::writeLog('core', 'Can\'t get app storage, app '.$appId.', user not logged in', \OCP\Util::ERROR);
1171 1171
 				return false;
1172 1172
 			}
1173 1173
 		} else {
1174
-			\OCP\Util::writeLog('core', 'Can\'t get app storage, app ' . $appId . ' not enabled', \OCP\Util::ERROR);
1174
+			\OCP\Util::writeLog('core', 'Can\'t get app storage, app '.$appId.' not enabled', \OCP\Util::ERROR);
1175 1175
 			return false;
1176 1176
 		}
1177 1177
 	}
@@ -1203,9 +1203,9 @@  discard block
 block discarded – undo
1203 1203
 
1204 1204
 				if ($attributeLang === $similarLang) {
1205 1205
 					$similarLangFallback = $option['@value'];
1206
-				} else if (strpos($attributeLang, $similarLang . '_') === 0) {
1206
+				} else if (strpos($attributeLang, $similarLang.'_') === 0) {
1207 1207
 					if ($similarLangFallback === false) {
1208
-						$similarLangFallback =  $option['@value'];
1208
+						$similarLangFallback = $option['@value'];
1209 1209
 					}
1210 1210
 				}
1211 1211
 			} else {
@@ -1240,7 +1240,7 @@  discard block
 block discarded – undo
1240 1240
 			$data['description'] = trim(self::findBestL10NOption($data['description'], $lang));
1241 1241
 		} else if (isset($data['description']) && is_string($data['description'])) {
1242 1242
 			$data['description'] = trim($data['description']);
1243
-		} else  {
1243
+		} else {
1244 1244
 			$data['description'] = '';
1245 1245
 		}
1246 1246
 
Please login to merge, or discard this patch.