@@ -60,7 +60,7 @@ |
||
| 60 | 60 | */ |
| 61 | 61 | public function getForm() { |
| 62 | 62 | $cloudID = $this->userSession->getUser()->getCloudId(); |
| 63 | - $url = 'https://nextcloud.com/sharing#' . $cloudID; |
|
| 63 | + $url = 'https://nextcloud.com/sharing#'.$cloudID; |
|
| 64 | 64 | |
| 65 | 65 | $parameters = [ |
| 66 | 66 | 'message_with_URL' => $this->l->t('Share with me through my #Nextcloud Federated Cloud ID, see %s', [$url]), |
@@ -29,11 +29,11 @@ |
||
| 29 | 29 | * |
| 30 | 30 | */ |
| 31 | 31 | |
| 32 | -require_once __DIR__ . '/lib/versioncheck.php'; |
|
| 32 | +require_once __DIR__.'/lib/versioncheck.php'; |
|
| 33 | 33 | |
| 34 | 34 | try { |
| 35 | 35 | |
| 36 | - require_once __DIR__ . '/lib/base.php'; |
|
| 36 | + require_once __DIR__.'/lib/base.php'; |
|
| 37 | 37 | |
| 38 | 38 | $systemConfig = \OC::$server->getSystemConfig(); |
| 39 | 39 | |
@@ -43,7 +43,7 @@ |
||
| 43 | 43 | /** |
| 44 | 44 | * @return string Regex with the mimetypes that are supported by this provider |
| 45 | 45 | */ |
| 46 | - abstract public function getMimeType(): string ; |
|
| 46 | + abstract public function getMimeType(): string; |
|
| 47 | 47 | |
| 48 | 48 | /** |
| 49 | 49 | * Check if a preview can be generated for $path |
@@ -46,7 +46,7 @@ |
||
| 46 | 46 | |
| 47 | 47 | $content = stream_get_contents($file->fopen('r')); |
| 48 | 48 | if (substr($content, 0, 5) !== '<?xml') { |
| 49 | - $content = '<?xml version="1.0" encoding="UTF-8" standalone="no"?>' . $content; |
|
| 49 | + $content = '<?xml version="1.0" encoding="UTF-8" standalone="no"?>'.$content; |
|
| 50 | 50 | } |
| 51 | 51 | |
| 52 | 52 | // Do not parse SVG files with references |
@@ -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 | |
@@ -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,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 | ); |
@@ -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(); |