@@ -74,7 +74,7 @@ discard block |
||
74 | 74 | return; |
75 | 75 | } |
76 | 76 | |
77 | - $folders = array_filter($folders, function (ISimpleFolder $folder) { |
|
77 | + $folders = array_filter($folders, function(ISimpleFolder $folder) { |
|
78 | 78 | return $folder->fileExists('photo.'); |
79 | 79 | }); |
80 | 80 | |
@@ -82,7 +82,7 @@ discard block |
||
82 | 82 | return; |
83 | 83 | } |
84 | 84 | |
85 | - $output->info('Delete ' . count($folders) . ' "photo." files'); |
|
85 | + $output->info('Delete '.count($folders).' "photo." files'); |
|
86 | 86 | |
87 | 87 | foreach ($folders as $folder) { |
88 | 88 | try { |
@@ -90,7 +90,7 @@ discard block |
||
90 | 90 | $folder->getFile('photo.')->delete(); |
91 | 91 | } catch (\Exception $e) { |
92 | 92 | $this->logger->error($e->getMessage(), ['exception' => $e]); |
93 | - $output->warning('Could not delete file "dav-photocache/' . $folder->getName() . '/photo."'); |
|
93 | + $output->warning('Could not delete file "dav-photocache/'.$folder->getName().'/photo."'); |
|
94 | 94 | } |
95 | 95 | } |
96 | 96 | } |
@@ -83,7 +83,7 @@ |
||
83 | 83 | |
84 | 84 | if ($row) { |
85 | 85 | $this->cache[$storageId] = $row; |
86 | - $this->numericIdCache[(int)$row['numeric_id']] = $row; |
|
86 | + $this->numericIdCache[(int) $row['numeric_id']] = $row; |
|
87 | 87 | } |
88 | 88 | } |
89 | 89 | return $this->cache[$storageId] ?? null; |
@@ -65,12 +65,12 @@ |
||
65 | 65 | $node = $this->server->tree->getNodeForPath($path); |
66 | 66 | if ($node instanceof File) { |
67 | 67 | $type = strtolower( |
68 | - (string)$request->getHeader('X-Recalculate-Hash') |
|
68 | + (string) $request->getHeader('X-Recalculate-Hash') |
|
69 | 69 | ); |
70 | 70 | |
71 | 71 | $hash = $node->hash($type); |
72 | 72 | if ($hash) { |
73 | - $checksum = strtoupper($type) . ':' . $hash; |
|
73 | + $checksum = strtoupper($type).':'.$hash; |
|
74 | 74 | $node->setChecksum($checksum); |
75 | 75 | $response->addHeader('OC-Checksum', $checksum); |
76 | 76 | $response->setHeader('Content-Length', '0'); |
@@ -58,18 +58,18 @@ |
||
58 | 58 | protected function execute(InputInterface $input, OutputInterface $output): int { |
59 | 59 | $gid = $input->getArgument('groupid'); |
60 | 60 | if ($gid === 'admin') { |
61 | - $output->writeln('<error>Group "' . $gid . '" could not be deleted.</error>'); |
|
61 | + $output->writeln('<error>Group "'.$gid.'" could not be deleted.</error>'); |
|
62 | 62 | return 1; |
63 | 63 | } |
64 | 64 | if (!$this->groupManager->groupExists($gid)) { |
65 | - $output->writeln('<error>Group "' . $gid . '" does not exist.</error>'); |
|
65 | + $output->writeln('<error>Group "'.$gid.'" does not exist.</error>'); |
|
66 | 66 | return 1; |
67 | 67 | } |
68 | 68 | $group = $this->groupManager->get($gid); |
69 | 69 | if ($group->delete()) { |
70 | - $output->writeln('Group "' . $gid . '" was removed'); |
|
70 | + $output->writeln('Group "'.$gid.'" was removed'); |
|
71 | 71 | } else { |
72 | - $output->writeln('<error>Group "' . $gid . '" could not be deleted. Please check the logs.</error>'); |
|
72 | + $output->writeln('<error>Group "'.$gid.'" could not be deleted. Please check the logs.</error>'); |
|
73 | 73 | return 1; |
74 | 74 | } |
75 | 75 | return 0; |
@@ -94,6 +94,6 @@ |
||
94 | 94 | if ($this->type === ILock::TYPE_TOKEN) { |
95 | 95 | $typeString = 'ILock::TYPE_TOKEN'; |
96 | 96 | } |
97 | - return "$typeString $this->owner " . $this->getNode()->getId(); |
|
97 | + return "$typeString $this->owner ".$this->getNode()->getId(); |
|
98 | 98 | } |
99 | 99 | } |
@@ -9,7 +9,7 @@ discard block |
||
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 | |
@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__)); |
27 | 27 | spl_autoload_unregister(array('ComposerAutoloaderInitTesting', 'loadClassLoader')); |
28 | 28 | |
29 | - require __DIR__ . '/autoload_static.php'; |
|
29 | + require __DIR__.'/autoload_static.php'; |
|
30 | 30 | call_user_func(\Composer\Autoload\ComposerStaticInitTesting::getInitializer($loader)); |
31 | 31 | |
32 | 32 | $loader->setClassMapAuthoritative(true); |
@@ -9,7 +9,7 @@ discard block |
||
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 | |
@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__)); |
27 | 27 | spl_autoload_unregister(array('ComposerAutoloaderInitFederatedFileSharing', 'loadClassLoader')); |
28 | 28 | |
29 | - require __DIR__ . '/autoload_static.php'; |
|
29 | + require __DIR__.'/autoload_static.php'; |
|
30 | 30 | call_user_func(\Composer\Autoload\ComposerStaticInitFederatedFileSharing::getInitializer($loader)); |
31 | 31 | |
32 | 32 | $loader->setClassMapAuthoritative(true); |
@@ -9,7 +9,7 @@ discard block |
||
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 | |
@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__)); |
27 | 27 | spl_autoload_unregister(array('ComposerAutoloaderInitLookupServerConnector', 'loadClassLoader')); |
28 | 28 | |
29 | - require __DIR__ . '/autoload_static.php'; |
|
29 | + require __DIR__.'/autoload_static.php'; |
|
30 | 30 | call_user_func(\Composer\Autoload\ComposerStaticInitLookupServerConnector::getInitializer($loader)); |
31 | 31 | |
32 | 32 | $loader->setClassMapAuthoritative(true); |
@@ -9,7 +9,7 @@ discard block |
||
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 | |
@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__)); |
27 | 27 | spl_autoload_unregister(array('ComposerAutoloaderInitFiles_Versions', 'loadClassLoader')); |
28 | 28 | |
29 | - require __DIR__ . '/autoload_static.php'; |
|
29 | + require __DIR__.'/autoload_static.php'; |
|
30 | 30 | call_user_func(\Composer\Autoload\ComposerStaticInitFiles_Versions::getInitializer($loader)); |
31 | 31 | |
32 | 32 | $loader->setClassMapAuthoritative(true); |