@@ -99,24 +99,24 @@ discard block |
||
| 99 | 99 | * Remove "apps/" from inclusion path for smooth migration to multi app dir |
| 100 | 100 | */ |
| 101 | 101 | if (strpos(\OC::$CLASSPATH[$class], 'apps/') === 0) { |
| 102 | - \OCP\Util::writeLog('core', 'include path for class "' . $class . '" starts with "apps/"', \OCP\Util::DEBUG); |
|
| 102 | + \OCP\Util::writeLog('core', 'include path for class "'.$class.'" starts with "apps/"', \OCP\Util::DEBUG); |
|
| 103 | 103 | $paths[] = str_replace('apps/', '', \OC::$CLASSPATH[$class]); |
| 104 | 104 | } |
| 105 | 105 | } elseif (strpos($class, 'OC_') === 0) { |
| 106 | - $paths[] = \OC::$SERVERROOT . '/lib/private/legacy/' . strtolower(str_replace('_', '/', substr($class, 3)) . '.php'); |
|
| 106 | + $paths[] = \OC::$SERVERROOT.'/lib/private/legacy/'.strtolower(str_replace('_', '/', substr($class, 3)).'.php'); |
|
| 107 | 107 | } elseif (strpos($class, 'OCA\\') === 0) { |
| 108 | 108 | list(, $app, $rest) = explode('\\', $class, 3); |
| 109 | 109 | $app = strtolower($app); |
| 110 | 110 | $appPath = \OC_App::getAppPath($app); |
| 111 | 111 | if ($appPath && stream_resolve_include_path($appPath)) { |
| 112 | - $paths[] = $appPath . '/' . strtolower(str_replace('\\', '/', $rest) . '.php'); |
|
| 112 | + $paths[] = $appPath.'/'.strtolower(str_replace('\\', '/', $rest).'.php'); |
|
| 113 | 113 | // If not found in the root of the app directory, insert '/lib' after app id and try again. |
| 114 | - $paths[] = $appPath . '/lib/' . strtolower(str_replace('\\', '/', $rest) . '.php'); |
|
| 114 | + $paths[] = $appPath.'/lib/'.strtolower(str_replace('\\', '/', $rest).'.php'); |
|
| 115 | 115 | } |
| 116 | 116 | } elseif ($class === 'Test\\TestCase') { |
| 117 | 117 | // This File is considered public API, so we make sure that the class |
| 118 | 118 | // can still be loaded, although the PSR-4 paths have not been loaded. |
| 119 | - $paths[] = \OC::$SERVERROOT . '/tests/lib/TestCase.php'; |
|
| 119 | + $paths[] = \OC::$SERVERROOT.'/tests/lib/TestCase.php'; |
|
| 120 | 120 | } |
| 121 | 121 | return $paths; |
| 122 | 122 | } |
@@ -127,7 +127,7 @@ discard block |
||
| 127 | 127 | */ |
| 128 | 128 | protected function isValidPath($fullPath) { |
| 129 | 129 | foreach ($this->validRoots as $root => $true) { |
| 130 | - if (substr($fullPath, 0, strlen($root) + 1) === $root . '/') { |
|
| 130 | + if (substr($fullPath, 0, strlen($root) + 1) === $root.'/') { |
|
| 131 | 131 | return true; |
| 132 | 132 | } |
| 133 | 133 | } |
@@ -146,7 +146,7 @@ discard block |
||
| 146 | 146 | $pathsToRequire = $this->memoryCache->get($class); |
| 147 | 147 | } |
| 148 | 148 | |
| 149 | - if(class_exists($class, false)) { |
|
| 149 | + if (class_exists($class, false)) { |
|
| 150 | 150 | return false; |
| 151 | 151 | } |
| 152 | 152 | |