@@ -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('ComposerAutoloaderInitContactsInteraction', 'loadClassLoader')); |
| 28 | 28 | |
| 29 | - require __DIR__ . '/autoload_static.php'; |
|
| 29 | + require __DIR__.'/autoload_static.php'; |
|
| 30 | 30 | call_user_func(\Composer\Autoload\ComposerStaticInitContactsInteraction::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('ComposerAutoloaderInitEncryption', 'loadClassLoader')); |
| 28 | 28 | |
| 29 | - require __DIR__ . '/autoload_static.php'; |
|
| 29 | + require __DIR__.'/autoload_static.php'; |
|
| 30 | 30 | call_user_func(\Composer\Autoload\ComposerStaticInitEncryption::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_Trashbin', 'loadClassLoader')); |
| 28 | 28 | |
| 29 | - require __DIR__ . '/autoload_static.php'; |
|
| 29 | + require __DIR__.'/autoload_static.php'; |
|
| 30 | 30 | call_user_func(\Composer\Autoload\ComposerStaticInitFiles_Trashbin::getInitializer($loader)); |
| 31 | 31 | |
| 32 | 32 | $loader->setClassMapAuthoritative(true); |
@@ -53,7 +53,7 @@ |
||
| 53 | 53 | $originalFontFace = $variables['--font-face']; |
| 54 | 54 | |
| 55 | 55 | $variables = [ |
| 56 | - '--font-face' => 'OpenDyslexic, ' . $originalFontFace |
|
| 56 | + '--font-face' => 'OpenDyslexic, '.$originalFontFace |
|
| 57 | 57 | ]; |
| 58 | 58 | |
| 59 | 59 | return $variables; |
@@ -113,7 +113,7 @@ discard block |
||
| 113 | 113 | ->from('file_locks') |
| 114 | 114 | ->where($query->expr()->eq('key', $query->createNamedParameter($path))); |
| 115 | 115 | $result = $query->executeQuery(); |
| 116 | - $lockValue = (int)$result->fetchOne(); |
|
| 116 | + $lockValue = (int) $result->fetchOne(); |
|
| 117 | 117 | if ($type === self::LOCK_SHARED) { |
| 118 | 118 | if ($this->isLocallyLocked($path)) { |
| 119 | 119 | // if we have a shared lock we kept open locally but it's released we always have at least 1 shared lock in the db |
@@ -247,7 +247,7 @@ discard block |
||
| 247 | 247 | } |
| 248 | 248 | // since we keep shared locks we need to manually clean those |
| 249 | 249 | $lockedPaths = array_keys($this->sharedLocks); |
| 250 | - $lockedPaths = array_filter($lockedPaths, function ($path) { |
|
| 250 | + $lockedPaths = array_filter($lockedPaths, function($path) { |
|
| 251 | 251 | return $this->sharedLocks[$path]; |
| 252 | 252 | }); |
| 253 | 253 | |
@@ -69,7 +69,7 @@ |
||
| 69 | 69 | public function stopQuery() { |
| 70 | 70 | if ($this->activated && $this->activeQuery) { |
| 71 | 71 | $this->activeQuery->end(microtime(true)); |
| 72 | - $this->queries[(string)$this->index] = $this->activeQuery; |
|
| 72 | + $this->queries[(string) $this->index] = $this->activeQuery; |
|
| 73 | 73 | $this->index++; |
| 74 | 74 | $this->activeQuery = null; |
| 75 | 75 | } |
@@ -80,7 +80,7 @@ discard block |
||
| 80 | 80 | return $query->getLastInsertId(); |
| 81 | 81 | } |
| 82 | 82 | |
| 83 | - $message = 'Internal failure, Could not add trusted server: ' . $url; |
|
| 83 | + $message = 'Internal failure, Could not add trusted server: '.$url; |
|
| 84 | 84 | $message_t = $this->IL10N->t('Could not add server'); |
| 85 | 85 | throw new HintException($message, $message_t); |
| 86 | 86 | return -1; |
@@ -114,7 +114,7 @@ discard block |
||
| 114 | 114 | $qResult->closeCursor(); |
| 115 | 115 | |
| 116 | 116 | if (empty($result)) { |
| 117 | - throw new \Exception('No Server found with ID: ' . $id); |
|
| 117 | + throw new \Exception('No Server found with ID: '.$id); |
|
| 118 | 118 | } |
| 119 | 119 | |
| 120 | 120 | return $result[0]; |
@@ -183,7 +183,7 @@ discard block |
||
| 183 | 183 | $statement->closeCursor(); |
| 184 | 184 | |
| 185 | 185 | if (!isset($result['token'])) { |
| 186 | - throw new \Exception('No token found for: ' . $url); |
|
| 186 | + throw new \Exception('No token found for: '.$url); |
|
| 187 | 187 | } |
| 188 | 188 | |
| 189 | 189 | return $result['token']; |
@@ -216,7 +216,7 @@ discard block |
||
| 216 | 216 | $statement = $query->executeQuery(); |
| 217 | 217 | $result = $statement->fetch(); |
| 218 | 218 | $statement->closeCursor(); |
| 219 | - return (string)$result['shared_secret']; |
|
| 219 | + return (string) $result['shared_secret']; |
|
| 220 | 220 | } |
| 221 | 221 | |
| 222 | 222 | /** |
@@ -247,7 +247,7 @@ discard block |
||
| 247 | 247 | $statement = $query->executeQuery(); |
| 248 | 248 | $result = $statement->fetch(); |
| 249 | 249 | $statement->closeCursor(); |
| 250 | - return (int)$result['status']; |
|
| 250 | + return (int) $result['status']; |
|
| 251 | 251 | } |
| 252 | 252 | |
| 253 | 253 | /** |
@@ -87,13 +87,13 @@ |
||
| 87 | 87 | |
| 88 | 88 | $shares = $qb->executeQuery(); |
| 89 | 89 | while ($share = $shares->fetch()) { |
| 90 | - if ((int)$share['share_type'] === IShare::TYPE_LINK) { |
|
| 90 | + if ((int) $share['share_type'] === IShare::TYPE_LINK) { |
|
| 91 | 91 | $id = 'ocinternal'; |
| 92 | - } elseif ((int)$share['share_type'] === IShare::TYPE_EMAIL) { |
|
| 92 | + } elseif ((int) $share['share_type'] === IShare::TYPE_EMAIL) { |
|
| 93 | 93 | $id = 'ocMailShare'; |
| 94 | 94 | } |
| 95 | 95 | |
| 96 | - $id .= ':' . $share['id']; |
|
| 96 | + $id .= ':'.$share['id']; |
|
| 97 | 97 | |
| 98 | 98 | try { |
| 99 | 99 | $share = $this->shareManager->getShareById($id); |
@@ -15,7 +15,7 @@ discard block |
||
| 15 | 15 | <?php if (isset($_['dirToken'])):?> |
| 16 | 16 | <input type="hidden" id="publicUploadRequestToken" name="requesttoken" value="<?php p($_['requesttoken']) ?>" /> |
| 17 | 17 | <input type="hidden" id="dirToken" name="dirToken" value="<?php p($_['dirToken']) ?>" /> |
| 18 | - <?php endif;?> |
|
| 18 | + <?php endif; ?> |
|
| 19 | 19 | <input type="hidden" class="max_human_file_size" |
| 20 | 20 | value="(max <?php isset($_['uploadMaxHumanFilesize']) ? p($_['uploadMaxHumanFilesize']) : ''; ?>)"> |
| 21 | 21 | </div> |
@@ -75,6 +75,6 @@ discard block |
||
| 75 | 75 | </div> |
| 76 | 76 | <div id="uploadsize-message" title="<?php p($l->t('Upload too large'))?>"> |
| 77 | 77 | <p> |
| 78 | - <?php p($l->t('The files you are trying to upload exceed the maximum size for file uploads on this server.'));?> |
|
| 78 | + <?php p($l->t('The files you are trying to upload exceed the maximum size for file uploads on this server.')); ?> |
|
| 79 | 79 | </p> |
| 80 | 80 | </div> |