@@ -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('ComposerAutoloaderInitAdminAudit', 'loadClassLoader')); |
28 | 28 | |
29 | - require __DIR__ . '/autoload_static.php'; |
|
29 | + require __DIR__.'/autoload_static.php'; |
|
30 | 30 | call_user_func(\Composer\Autoload\ComposerStaticInitAdminAudit::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('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 | } |