@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | $bp->setFormat('jpg'); |
60 | 60 | } catch (\Exception $e) { |
61 | 61 | \OC::$server->getLogger()->logException($e, [ |
62 | - 'message' => 'File: ' . $file->getPath() . ' Imagick says:', |
|
62 | + 'message' => 'File: '.$file->getPath().' Imagick says:', |
|
63 | 63 | 'level' => ILogger::ERROR, |
64 | 64 | 'app' => 'core', |
65 | 65 | ]); |
@@ -93,7 +93,7 @@ discard block |
||
93 | 93 | $bp = new \Imagick(); |
94 | 94 | |
95 | 95 | // Layer 0 contains either the bitmap or a flat representation of all vector layers |
96 | - $bp->readImage($tmpPath . '[0]'); |
|
96 | + $bp->readImage($tmpPath.'[0]'); |
|
97 | 97 | |
98 | 98 | $bp->setImageFormat('jpg'); |
99 | 99 |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | $bp = $this->getResizedPreview($tmpPath, $maxX, $maxY); |
50 | 50 | } catch (\Exception $e) { |
51 | 51 | \OC::$server->getLogger()->logException($e, [ |
52 | - 'message' => 'File: ' . $file->getPath() . ' Imagick says:', |
|
52 | + 'message' => 'File: '.$file->getPath().' Imagick says:', |
|
53 | 53 | 'level' => ILogger::ERROR, |
54 | 54 | 'app' => 'core', |
55 | 55 | ]); |
@@ -83,7 +83,7 @@ discard block |
||
83 | 83 | $bp = new Imagick(); |
84 | 84 | |
85 | 85 | // Layer 0 contains either the bitmap or a flat representation of all vector layers |
86 | - $bp->readImage($tmpPath . '[0]'); |
|
86 | + $bp->readImage($tmpPath.'[0]'); |
|
87 | 87 | |
88 | 88 | $bp = $this->resize($bp, $maxX, $maxY); |
89 | 89 |
@@ -170,13 +170,13 @@ discard block |
||
170 | 170 | * @return array |
171 | 171 | */ |
172 | 172 | private function formatNodes(array $nodes) { |
173 | - return array_values(array_map(function (Node $node) { |
|
173 | + return array_values(array_map(function(Node $node) { |
|
174 | 174 | /** @var \OC\Files\Node\Node $shareTypes */ |
175 | 175 | $shareTypes = $this->getShareTypes($node); |
176 | 176 | $file = \OCA\Files\Helper::formatFileInfo($node->getFileInfo()); |
177 | 177 | $parts = explode('/', dirname($node->getPath()), 4); |
178 | 178 | if (isset($parts[3])) { |
179 | - $file['path'] = '/' . $parts[3]; |
|
179 | + $file['path'] = '/'.$parts[3]; |
|
180 | 180 | } else { |
181 | 181 | $file['path'] = '/'; |
182 | 182 | } |
@@ -267,7 +267,7 @@ discard block |
||
267 | 267 | * @throws \OCP\PreConditionNotMetException |
268 | 268 | */ |
269 | 269 | public function showHiddenFiles($show) { |
270 | - $this->config->setUserValue($this->userSession->getUser()->getUID(), 'files', 'show_hidden', (int)$show); |
|
270 | + $this->config->setUserValue($this->userSession->getUser()->getUID(), 'files', 'show_hidden', (int) $show); |
|
271 | 271 | return new Response(); |
272 | 272 | } |
273 | 273 | |
@@ -281,7 +281,7 @@ discard block |
||
281 | 281 | * @throws \OCP\PreConditionNotMetException |
282 | 282 | */ |
283 | 283 | public function showGridView($show) { |
284 | - $this->config->setUserValue($this->userSession->getUser()->getUID(), 'files', 'show_grid', (int)$show); |
|
284 | + $this->config->setUserValue($this->userSession->getUser()->getUID(), 'files', 'show_grid', (int) $show); |
|
285 | 285 | return new Response(); |
286 | 286 | } |
287 | 287 | |
@@ -312,7 +312,7 @@ discard block |
||
312 | 312 | foreach ($navItems as $item) { |
313 | 313 | // check if data is valid |
314 | 314 | if (($show === 0 || $show === 1) && isset($item['expandedState']) && $key === $item['expandedState']) { |
315 | - $this->config->setUserValue($this->userSession->getUser()->getUID(), 'files', $key, (int)$show); |
|
315 | + $this->config->setUserValue($this->userSession->getUser()->getUID(), 'files', $key, (int) $show); |
|
316 | 316 | return new Response(); |
317 | 317 | } |
318 | 318 | } |
@@ -370,18 +370,18 @@ discard block |
||
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])) { |
377 | 377 | $subPath = $class; |
378 | 378 | while (false !== $lastPos = strrpos($subPath, '\\')) { |
379 | 379 | $subPath = substr($subPath, 0, $lastPos); |
380 | - $search = $subPath . '\\'; |
|
380 | + $search = $subPath.'\\'; |
|
381 | 381 | if (isset($this->prefixDirsPsr4[$search])) { |
382 | - $pathEnd = DIRECTORY_SEPARATOR . substr($logicalPathPsr4, $lastPos + 1); |
|
382 | + $pathEnd = DIRECTORY_SEPARATOR.substr($logicalPathPsr4, $lastPos + 1); |
|
383 | 383 | foreach ($this->prefixDirsPsr4[$search] as $dir) { |
384 | - if (file_exists($file = $dir . $pathEnd)) { |
|
384 | + if (file_exists($file = $dir.$pathEnd)) { |
|
385 | 385 | return $file; |
386 | 386 | } |
387 | 387 | } |
@@ -391,7 +391,7 @@ discard block |
||
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 |
||
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 |
||
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 | } |
@@ -6,30 +6,30 @@ |
||
6 | 6 | |
7 | 7 | class ComposerStaticInitCloudFederationAPI |
8 | 8 | { |
9 | - public static $prefixLengthsPsr4 = array ( |
|
9 | + public static $prefixLengthsPsr4 = array( |
|
10 | 10 | 'O' => |
11 | - array ( |
|
11 | + array( |
|
12 | 12 | 'OCA\\CloudFederationAPI\\' => 23, |
13 | 13 | ), |
14 | 14 | ); |
15 | 15 | |
16 | - public static $prefixDirsPsr4 = array ( |
|
16 | + public static $prefixDirsPsr4 = array( |
|
17 | 17 | 'OCA\\CloudFederationAPI\\' => |
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\\CloudFederationAPI\\AppInfo\\Application' => __DIR__ . '/..' . '/../lib/AppInfo/Application.php', |
|
25 | - 'OCA\\CloudFederationAPI\\Capabilities' => __DIR__ . '/..' . '/../lib/Capabilities.php', |
|
26 | - 'OCA\\CloudFederationAPI\\Config' => __DIR__ . '/..' . '/../lib/Config.php', |
|
27 | - 'OCA\\CloudFederationAPI\\Controller\\RequestHandlerController' => __DIR__ . '/..' . '/../lib/Controller/RequestHandlerController.php', |
|
23 | + public static $classMap = array( |
|
24 | + 'OCA\\CloudFederationAPI\\AppInfo\\Application' => __DIR__.'/..'.'/../lib/AppInfo/Application.php', |
|
25 | + 'OCA\\CloudFederationAPI\\Capabilities' => __DIR__.'/..'.'/../lib/Capabilities.php', |
|
26 | + 'OCA\\CloudFederationAPI\\Config' => __DIR__.'/..'.'/../lib/Config.php', |
|
27 | + 'OCA\\CloudFederationAPI\\Controller\\RequestHandlerController' => __DIR__.'/..'.'/../lib/Controller/RequestHandlerController.php', |
|
28 | 28 | ); |
29 | 29 | |
30 | 30 | public static function getInitializer(ClassLoader $loader) |
31 | 31 | { |
32 | - return \Closure::bind(function () use ($loader) { |
|
32 | + return \Closure::bind(function() use ($loader) { |
|
33 | 33 | $loader->prefixLengthsPsr4 = ComposerStaticInitCloudFederationAPI::$prefixLengthsPsr4; |
34 | 34 | $loader->prefixDirsPsr4 = ComposerStaticInitCloudFederationAPI::$prefixDirsPsr4; |
35 | 35 | $loader->classMap = ComposerStaticInitCloudFederationAPI::$classMap; |
@@ -6,5 +6,5 @@ |
||
6 | 6 | $baseDir = $vendorDir; |
7 | 7 | |
8 | 8 | return array( |
9 | - 'OCA\\CloudFederationAPI\\' => array($baseDir . '/../lib'), |
|
9 | + 'OCA\\CloudFederationAPI\\' => array($baseDir.'/../lib'), |
|
10 | 10 | ); |
@@ -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 | |
@@ -25,11 +25,11 @@ discard block |
||
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\ComposerStaticInitCloudFederationAPI::getInitializer($loader)); |
31 | 31 | } else { |
32 | - $classMap = require __DIR__ . '/autoload_classmap.php'; |
|
32 | + $classMap = require __DIR__.'/autoload_classmap.php'; |
|
33 | 33 | if ($classMap) { |
34 | 34 | $loader->addClassMap($classMap); |
35 | 35 | } |
@@ -6,8 +6,8 @@ |
||
6 | 6 | $baseDir = $vendorDir; |
7 | 7 | |
8 | 8 | return array( |
9 | - 'OCA\\CloudFederationAPI\\AppInfo\\Application' => $baseDir . '/../lib/AppInfo/Application.php', |
|
10 | - 'OCA\\CloudFederationAPI\\Capabilities' => $baseDir . '/../lib/Capabilities.php', |
|
11 | - 'OCA\\CloudFederationAPI\\Config' => $baseDir . '/../lib/Config.php', |
|
12 | - 'OCA\\CloudFederationAPI\\Controller\\RequestHandlerController' => $baseDir . '/../lib/Controller/RequestHandlerController.php', |
|
9 | + 'OCA\\CloudFederationAPI\\AppInfo\\Application' => $baseDir.'/../lib/AppInfo/Application.php', |
|
10 | + 'OCA\\CloudFederationAPI\\Capabilities' => $baseDir.'/../lib/Capabilities.php', |
|
11 | + 'OCA\\CloudFederationAPI\\Config' => $baseDir.'/../lib/Config.php', |
|
12 | + 'OCA\\CloudFederationAPI\\Controller\\RequestHandlerController' => $baseDir.'/../lib/Controller/RequestHandlerController.php', |
|
13 | 13 | ); |
@@ -2,6 +2,6 @@ |
||
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 ComposerAutoloaderInitCloudFederationAPI::getLoader(); |