@@ -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('ComposerAutoloaderInitSettings', 'loadClassLoader')); |
| 28 | 28 | |
| 29 | - require __DIR__ . '/autoload_static.php'; |
|
| 29 | + require __DIR__.'/autoload_static.php'; |
|
| 30 | 30 | call_user_func(\Composer\Autoload\ComposerStaticInitSettings::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('ComposerAutoloaderInitComments', 'loadClassLoader')); |
| 28 | 28 | |
| 29 | - require __DIR__ . '/autoload_static.php'; |
|
| 29 | + require __DIR__.'/autoload_static.php'; |
|
| 30 | 30 | call_user_func(\Composer\Autoload\ComposerStaticInitComments::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('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; |
@@ -11,42 +11,42 @@ discard block |
||
| 11 | 11 | |
| 12 | 12 | class DyslexiaFont extends DefaultTheme implements ITheme { |
| 13 | 13 | |
| 14 | - public function getId(): string { |
|
| 15 | - return 'opendyslexic'; |
|
| 16 | - } |
|
| 14 | + public function getId(): string { |
|
| 15 | + return 'opendyslexic'; |
|
| 16 | + } |
|
| 17 | 17 | |
| 18 | - public function getType(): int { |
|
| 19 | - return ITheme::TYPE_FONT; |
|
| 20 | - } |
|
| 18 | + public function getType(): int { |
|
| 19 | + return ITheme::TYPE_FONT; |
|
| 20 | + } |
|
| 21 | 21 | |
| 22 | - public function getTitle(): string { |
|
| 23 | - return $this->l->t('Dyslexia font'); |
|
| 24 | - } |
|
| 22 | + public function getTitle(): string { |
|
| 23 | + return $this->l->t('Dyslexia font'); |
|
| 24 | + } |
|
| 25 | 25 | |
| 26 | - public function getEnableLabel(): string { |
|
| 27 | - return $this->l->t('Enable dyslexia font'); |
|
| 28 | - } |
|
| 26 | + public function getEnableLabel(): string { |
|
| 27 | + return $this->l->t('Enable dyslexia font'); |
|
| 28 | + } |
|
| 29 | 29 | |
| 30 | - public function getDescription(): string { |
|
| 31 | - return $this->l->t('OpenDyslexic is a free typeface/font designed to mitigate some of the common reading errors caused by dyslexia.'); |
|
| 32 | - } |
|
| 30 | + public function getDescription(): string { |
|
| 31 | + return $this->l->t('OpenDyslexic is a free typeface/font designed to mitigate some of the common reading errors caused by dyslexia.'); |
|
| 32 | + } |
|
| 33 | 33 | |
| 34 | - public function getCSSVariables(): array { |
|
| 35 | - $variables = parent::getCSSVariables(); |
|
| 36 | - $originalFontFace = $variables['--font-face']; |
|
| 34 | + public function getCSSVariables(): array { |
|
| 35 | + $variables = parent::getCSSVariables(); |
|
| 36 | + $originalFontFace = $variables['--font-face']; |
|
| 37 | 37 | |
| 38 | - $variables = [ |
|
| 39 | - '--font-face' => 'OpenDyslexic, ' . $originalFontFace |
|
| 40 | - ]; |
|
| 38 | + $variables = [ |
|
| 39 | + '--font-face' => 'OpenDyslexic, ' . $originalFontFace |
|
| 40 | + ]; |
|
| 41 | 41 | |
| 42 | - return $variables; |
|
| 43 | - } |
|
| 42 | + return $variables; |
|
| 43 | + } |
|
| 44 | 44 | |
| 45 | - public function getCustomCss(): string { |
|
| 46 | - $fontPathOtf = $this->urlGenerator->linkTo('theming', 'fonts/OpenDyslexic-Regular.otf'); |
|
| 47 | - $boldFontPathOtf = $this->urlGenerator->linkTo('theming', 'fonts/OpenDyslexic-Bold.otf'); |
|
| 45 | + public function getCustomCss(): string { |
|
| 46 | + $fontPathOtf = $this->urlGenerator->linkTo('theming', 'fonts/OpenDyslexic-Regular.otf'); |
|
| 47 | + $boldFontPathOtf = $this->urlGenerator->linkTo('theming', 'fonts/OpenDyslexic-Bold.otf'); |
|
| 48 | 48 | |
| 49 | - return " |
|
| 49 | + return " |
|
| 50 | 50 | @font-face { |
| 51 | 51 | font-family: 'OpenDyslexic'; |
| 52 | 52 | font-style: normal; |
@@ -61,5 +61,5 @@ discard block |
||
| 61 | 61 | src: url('$boldFontPathOtf') format('opentype'); |
| 62 | 62 | } |
| 63 | 63 | "; |
| 64 | - } |
|
| 64 | + } |
|
| 65 | 65 | } |
@@ -32,22 +32,22 @@ |
||
| 32 | 32 | use OCP\Migration\SimpleMigrationStep; |
| 33 | 33 | |
| 34 | 34 | class Version24000Date20220425072957 extends SimpleMigrationStep { |
| 35 | - /** |
|
| 36 | - * @param IOutput $output |
|
| 37 | - * @param Closure $schemaClosure The `\Closure` returns a `ISchemaWrapper` |
|
| 38 | - * @param array $options |
|
| 39 | - * @return null|ISchemaWrapper |
|
| 40 | - */ |
|
| 41 | - public function changeSchema(IOutput $output, Closure $schemaClosure, array $options): ?ISchemaWrapper { |
|
| 42 | - /** @var ISchemaWrapper $schema */ |
|
| 43 | - $schema = $schemaClosure(); |
|
| 35 | + /** |
|
| 36 | + * @param IOutput $output |
|
| 37 | + * @param Closure $schemaClosure The `\Closure` returns a `ISchemaWrapper` |
|
| 38 | + * @param array $options |
|
| 39 | + * @return null|ISchemaWrapper |
|
| 40 | + */ |
|
| 41 | + public function changeSchema(IOutput $output, Closure $schemaClosure, array $options): ?ISchemaWrapper { |
|
| 42 | + /** @var ISchemaWrapper $schema */ |
|
| 43 | + $schema = $schemaClosure(); |
|
| 44 | 44 | |
| 45 | - $table = $schema->getTable('mounts'); |
|
| 46 | - if (!$table->hasIndex('mount_user_storage')) { |
|
| 47 | - $table->addIndex(['storage_id', 'user_id'], 'mount_user_storage'); |
|
| 48 | - return $schema; |
|
| 49 | - } |
|
| 45 | + $table = $schema->getTable('mounts'); |
|
| 46 | + if (!$table->hasIndex('mount_user_storage')) { |
|
| 47 | + $table->addIndex(['storage_id', 'user_id'], 'mount_user_storage'); |
|
| 48 | + return $schema; |
|
| 49 | + } |
|
| 50 | 50 | |
| 51 | - return null; |
|
| 52 | - } |
|
| 51 | + return null; |
|
| 52 | + } |
|
| 53 | 53 | } |
@@ -27,13 +27,13 @@ |
||
| 27 | 27 | * @since 24.0.0 |
| 28 | 28 | */ |
| 29 | 29 | interface IEmojiHelper { |
| 30 | - /** |
|
| 31 | - * @since 24.0.0 |
|
| 32 | - */ |
|
| 33 | - public function doesPlatformSupportEmoji(): bool; |
|
| 30 | + /** |
|
| 31 | + * @since 24.0.0 |
|
| 32 | + */ |
|
| 33 | + public function doesPlatformSupportEmoji(): bool; |
|
| 34 | 34 | |
| 35 | - /** |
|
| 36 | - * @since 24.0.0 |
|
| 37 | - */ |
|
| 38 | - public function isValidSingleEmoji(string $emoji): bool; |
|
| 35 | + /** |
|
| 36 | + * @since 24.0.0 |
|
| 37 | + */ |
|
| 38 | + public function isValidSingleEmoji(string $emoji): bool; |
|
| 39 | 39 | } |
@@ -36,47 +36,47 @@ |
||
| 36 | 36 | * @since 8.1.0 |
| 37 | 37 | */ |
| 38 | 38 | interface ILockingProvider { |
| 39 | - /** |
|
| 40 | - * @since 8.1.0 |
|
| 41 | - */ |
|
| 42 | - public const LOCK_SHARED = 1; |
|
| 43 | - /** |
|
| 44 | - * @since 8.1.0 |
|
| 45 | - */ |
|
| 46 | - public const LOCK_EXCLUSIVE = 2; |
|
| 39 | + /** |
|
| 40 | + * @since 8.1.0 |
|
| 41 | + */ |
|
| 42 | + public const LOCK_SHARED = 1; |
|
| 43 | + /** |
|
| 44 | + * @since 8.1.0 |
|
| 45 | + */ |
|
| 46 | + public const LOCK_EXCLUSIVE = 2; |
|
| 47 | 47 | |
| 48 | - /** |
|
| 49 | - * @psalm-param self::LOCK_SHARED|self::LOCK_EXCLUSIVE $type |
|
| 50 | - * @since 8.1.0 |
|
| 51 | - */ |
|
| 52 | - public function isLocked(string $path, int $type): bool; |
|
| 48 | + /** |
|
| 49 | + * @psalm-param self::LOCK_SHARED|self::LOCK_EXCLUSIVE $type |
|
| 50 | + * @since 8.1.0 |
|
| 51 | + */ |
|
| 52 | + public function isLocked(string $path, int $type): bool; |
|
| 53 | 53 | |
| 54 | - /** |
|
| 55 | - * @psalm-param self::LOCK_SHARED|self::LOCK_EXCLUSIVE $type |
|
| 56 | - * @param ?string $readablePath A human-readable path to use in error messages, since 20.0.0 |
|
| 57 | - * @throws LockedException |
|
| 58 | - * @since 8.1.0 |
|
| 59 | - */ |
|
| 60 | - public function acquireLock(string $path, int $type, ?string $readablePath = null): void; |
|
| 54 | + /** |
|
| 55 | + * @psalm-param self::LOCK_SHARED|self::LOCK_EXCLUSIVE $type |
|
| 56 | + * @param ?string $readablePath A human-readable path to use in error messages, since 20.0.0 |
|
| 57 | + * @throws LockedException |
|
| 58 | + * @since 8.1.0 |
|
| 59 | + */ |
|
| 60 | + public function acquireLock(string $path, int $type, ?string $readablePath = null): void; |
|
| 61 | 61 | |
| 62 | - /** |
|
| 63 | - * @psalm-param self::LOCK_SHARED|self::LOCK_EXCLUSIVE $type |
|
| 64 | - * @since 8.1.0 |
|
| 65 | - */ |
|
| 66 | - public function releaseLock(string $path, int $type): void; |
|
| 62 | + /** |
|
| 63 | + * @psalm-param self::LOCK_SHARED|self::LOCK_EXCLUSIVE $type |
|
| 64 | + * @since 8.1.0 |
|
| 65 | + */ |
|
| 66 | + public function releaseLock(string $path, int $type): void; |
|
| 67 | 67 | |
| 68 | - /** |
|
| 69 | - * Change the target type of an existing lock |
|
| 70 | - * |
|
| 71 | - * @psalm-param self::LOCK_SHARED|self::LOCK_EXCLUSIVE $targetType |
|
| 72 | - * @throws LockedException |
|
| 73 | - * @since 8.1.0 |
|
| 74 | - */ |
|
| 75 | - public function changeLock(string $path, int $targetType): void; |
|
| 68 | + /** |
|
| 69 | + * Change the target type of an existing lock |
|
| 70 | + * |
|
| 71 | + * @psalm-param self::LOCK_SHARED|self::LOCK_EXCLUSIVE $targetType |
|
| 72 | + * @throws LockedException |
|
| 73 | + * @since 8.1.0 |
|
| 74 | + */ |
|
| 75 | + public function changeLock(string $path, int $targetType): void; |
|
| 76 | 76 | |
| 77 | - /** |
|
| 78 | - * Release all lock acquired by this instance |
|
| 79 | - * @since 8.1.0 |
|
| 80 | - */ |
|
| 81 | - public function releaseAll(): void; |
|
| 77 | + /** |
|
| 78 | + * Release all lock acquired by this instance |
|
| 79 | + * @since 8.1.0 |
|
| 80 | + */ |
|
| 81 | + public function releaseAll(): void; |
|
| 82 | 82 | } |