@@ -20,6 +20,6 @@ |
||
20 | 20 | ); |
21 | 21 | } |
22 | 22 | |
23 | -require_once __DIR__ . '/composer/autoload_real.php'; |
|
23 | +require_once __DIR__.'/composer/autoload_real.php'; |
|
24 | 24 | |
25 | 25 | return ComposerAutoloaderInitShareByMail::getLoader(); |
@@ -20,6 +20,6 @@ |
||
20 | 20 | ); |
21 | 21 | } |
22 | 22 | |
23 | -require_once __DIR__ . '/composer/autoload_real.php'; |
|
23 | +require_once __DIR__.'/composer/autoload_real.php'; |
|
24 | 24 | |
25 | 25 | return ComposerAutoloaderInitComments::getLoader(); |
@@ -20,6 +20,6 @@ |
||
20 | 20 | ); |
21 | 21 | } |
22 | 22 | |
23 | -require_once __DIR__ . '/composer/autoload_real.php'; |
|
23 | +require_once __DIR__.'/composer/autoload_real.php'; |
|
24 | 24 | |
25 | 25 | return ComposerAutoloaderInitSystemTags::getLoader(); |
@@ -20,6 +20,6 @@ |
||
20 | 20 | ); |
21 | 21 | } |
22 | 22 | |
23 | -require_once __DIR__ . '/composer/autoload_real.php'; |
|
23 | +require_once __DIR__.'/composer/autoload_real.php'; |
|
24 | 24 | |
25 | 25 | return ComposerAutoloaderInitUserStatus::getLoader(); |
@@ -116,7 +116,7 @@ |
||
116 | 116 | return null; |
117 | 117 | } |
118 | 118 | |
119 | - return (int)$row['last_contact']; |
|
119 | + return (int) $row['last_contact']; |
|
120 | 120 | } |
121 | 121 | |
122 | 122 | public function cleanUp(int $olderThan): void { |
@@ -48,7 +48,7 @@ |
||
48 | 48 | } |
49 | 49 | |
50 | 50 | protected function run($argument): void { |
51 | - $default = $this->config->getSystemValue('datadirectory', \OC::$SERVERROOT . '/data') . '/audit.log'; |
|
51 | + $default = $this->config->getSystemValue('datadirectory', \OC::$SERVERROOT.'/data').'/audit.log'; |
|
52 | 52 | $this->filePath = $this->config->getAppValue('admin_audit', 'logfile', $default); |
53 | 53 | |
54 | 54 | if ($this->filePath === '') { |
@@ -62,7 +62,7 @@ |
||
62 | 62 | |
63 | 63 | $controllerClassPath = explode('\\', get_class($controller)); |
64 | 64 | $controllerShortClass = end($controllerClassPath); |
65 | - $bruteforceProtectionAction = $controllerShortClass . '::' . $methodName; |
|
65 | + $bruteforceProtectionAction = $controllerShortClass.'::'.$methodName; |
|
66 | 66 | $this->throttler->sleepDelayOrThrowOnMax($this->request->getRemoteAddress(), $bruteforceProtectionAction); |
67 | 67 | |
68 | 68 | if (!$this->isLinkSharingEnabled()) { |
@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | $this->appData = $appData; |
64 | 64 | $this->urlGenerator = $urlGenerator; |
65 | 65 | $this->cacheFactory = $cacheFactory; |
66 | - $this->depsCache = $this->cacheFactory->createDistributed('JS-' . md5($this->urlGenerator->getBaseUrl())); |
|
66 | + $this->depsCache = $this->cacheFactory->createDistributed('JS-'.md5($this->urlGenerator->getBaseUrl())); |
|
67 | 67 | $this->config = $config; |
68 | 68 | $this->logger = $logger; |
69 | 69 | } |
@@ -79,7 +79,7 @@ discard block |
||
79 | 79 | return false; |
80 | 80 | } |
81 | 81 | |
82 | - $path = explode('/', $root . '/' . $file); |
|
82 | + $path = explode('/', $root.'/'.$file); |
|
83 | 83 | |
84 | 84 | $fileName = array_pop($path); |
85 | 85 | $path = implode('/', $path); |
@@ -109,9 +109,9 @@ discard block |
||
109 | 109 | return false; |
110 | 110 | } |
111 | 111 | |
112 | - $fileName = $fileName . '.deps'; |
|
112 | + $fileName = $fileName.'.deps'; |
|
113 | 113 | try { |
114 | - $deps = $this->depsCache->get($folder->getName() . '-' . $fileName); |
|
114 | + $deps = $this->depsCache->get($folder->getName().'-'.$fileName); |
|
115 | 115 | $fromCache = true; |
116 | 116 | if ($deps === null || $deps === '') { |
117 | 117 | $fromCache = false; |
@@ -121,7 +121,7 @@ discard block |
||
121 | 121 | |
122 | 122 | // check again |
123 | 123 | if ($deps === null || $deps === '') { |
124 | - $this->logger->info('JSCombiner: deps file empty: ' . $fileName); |
|
124 | + $this->logger->info('JSCombiner: deps file empty: '.$fileName); |
|
125 | 125 | return false; |
126 | 126 | } |
127 | 127 | |
@@ -138,7 +138,7 @@ discard block |
||
138 | 138 | } |
139 | 139 | |
140 | 140 | if ($fromCache === false) { |
141 | - $this->depsCache->set($folder->getName() . '-' . $fileName, json_encode($deps)); |
|
141 | + $this->depsCache->set($folder->getName().'-'.$fileName, json_encode($deps)); |
|
142 | 142 | } |
143 | 143 | |
144 | 144 | return true; |
@@ -155,17 +155,17 @@ discard block |
||
155 | 155 | */ |
156 | 156 | protected function cache($path, $fileName, ISimpleFolder $folder) { |
157 | 157 | $deps = []; |
158 | - $fullPath = $path . '/' . $fileName; |
|
158 | + $fullPath = $path.'/'.$fileName; |
|
159 | 159 | $data = json_decode(file_get_contents($fullPath)); |
160 | 160 | $deps[$fullPath] = filemtime($fullPath); |
161 | 161 | |
162 | 162 | $res = ''; |
163 | 163 | foreach ($data as $file) { |
164 | - $filePath = $path . '/' . $file; |
|
164 | + $filePath = $path.'/'.$file; |
|
165 | 165 | |
166 | 166 | if (is_file($filePath)) { |
167 | 167 | $res .= file_get_contents($filePath); |
168 | - $res .= PHP_EOL . PHP_EOL; |
|
168 | + $res .= PHP_EOL.PHP_EOL; |
|
169 | 169 | $deps[$filePath] = filemtime($filePath); |
170 | 170 | } |
171 | 171 | } |
@@ -177,7 +177,7 @@ discard block |
||
177 | 177 | $cachedfile = $folder->newFile($fileName); |
178 | 178 | } |
179 | 179 | |
180 | - $depFileName = $fileName . '.deps'; |
|
180 | + $depFileName = $fileName.'.deps'; |
|
181 | 181 | try { |
182 | 182 | $depFile = $folder->getFile($depFileName); |
183 | 183 | } catch (NotFoundException $e) { |
@@ -185,21 +185,21 @@ discard block |
||
185 | 185 | } |
186 | 186 | |
187 | 187 | try { |
188 | - $gzipFile = $folder->getFile($fileName . '.gzip'); # Safari doesn't like .gz |
|
188 | + $gzipFile = $folder->getFile($fileName.'.gzip'); # Safari doesn't like .gz |
|
189 | 189 | } catch (NotFoundException $e) { |
190 | - $gzipFile = $folder->newFile($fileName . '.gzip'); # Safari doesn't like .gz |
|
190 | + $gzipFile = $folder->newFile($fileName.'.gzip'); # Safari doesn't like .gz |
|
191 | 191 | } |
192 | 192 | |
193 | 193 | try { |
194 | 194 | $cachedfile->putContent($res); |
195 | 195 | $deps = json_encode($deps); |
196 | 196 | $depFile->putContent($deps); |
197 | - $this->depsCache->set($folder->getName() . '-' . $depFileName, $deps); |
|
197 | + $this->depsCache->set($folder->getName().'-'.$depFileName, $deps); |
|
198 | 198 | $gzipFile->putContent(gzencode($res, 9)); |
199 | - $this->logger->debug('JSCombiner: successfully cached: ' . $fileName); |
|
199 | + $this->logger->debug('JSCombiner: successfully cached: '.$fileName); |
|
200 | 200 | return true; |
201 | - } catch (NotPermittedException|NotFoundException $e) { |
|
202 | - $this->logger->error('JSCombiner: unable to cache: ' . $fileName); |
|
201 | + } catch (NotPermittedException | NotFoundException $e) { |
|
202 | + $this->logger->error('JSCombiner: unable to cache: '.$fileName); |
|
203 | 203 | return false; |
204 | 204 | } |
205 | 205 | } |
@@ -224,7 +224,7 @@ discard block |
||
224 | 224 | */ |
225 | 225 | public function getContent($root, $file) { |
226 | 226 | /** @var array $data */ |
227 | - $data = json_decode(file_get_contents($root . '/' . $file)); |
|
227 | + $data = json_decode(file_get_contents($root.'/'.$file)); |
|
228 | 228 | if (!is_array($data)) { |
229 | 229 | return []; |
230 | 230 | } |
@@ -235,7 +235,7 @@ discard block |
||
235 | 235 | |
236 | 236 | $result = []; |
237 | 237 | foreach ($data as $f) { |
238 | - $result[] = $path . '/' . $f; |
|
238 | + $result[] = $path.'/'.$f; |
|
239 | 239 | } |
240 | 240 | |
241 | 241 | return $result; |
@@ -79,7 +79,7 @@ discard block |
||
79 | 79 | if ($path === '') { |
80 | 80 | return $this->getRoot(); |
81 | 81 | } else { |
82 | - return $this->getRoot() . '/' . ltrim($path, '/'); |
|
82 | + return $this->getRoot().'/'.ltrim($path, '/'); |
|
83 | 83 | } |
84 | 84 | } |
85 | 85 | |
@@ -98,7 +98,7 @@ discard block |
||
98 | 98 | $rootLength = strlen($root) + 1; |
99 | 99 | if ($path === $root) { |
100 | 100 | return ''; |
101 | - } elseif (substr($path, 0, $rootLength) === $root . '/') { |
|
101 | + } elseif (substr($path, 0, $rootLength) === $root.'/') { |
|
102 | 102 | return substr($path, $rootLength); |
103 | 103 | } else { |
104 | 104 | return null; |
@@ -317,7 +317,7 @@ discard block |
||
317 | 317 | new SearchBinaryOperator(ISearchBinaryOperator::OPERATOR_OR, |
318 | 318 | [ |
319 | 319 | new SearchComparison(ISearchComparison::COMPARE_EQUAL, 'path', $this->getGetUnjailedRoot()), |
320 | - new SearchComparison(ISearchComparison::COMPARE_LIKE_CASE_SENSITIVE, 'path', SearchComparison::escapeLikeParameter($this->getGetUnjailedRoot()) . '/%'), |
|
320 | + new SearchComparison(ISearchComparison::COMPARE_LIKE_CASE_SENSITIVE, 'path', SearchComparison::escapeLikeParameter($this->getGetUnjailedRoot()).'/%'), |
|
321 | 321 | ], |
322 | 322 | ) |
323 | 323 | ] |