@@ -16,78 +16,78 @@ |
||
| 16 | 16 | use Psr\Log\LoggerInterface; |
| 17 | 17 | |
| 18 | 18 | class CSSResourceLocator extends ResourceLocator { |
| 19 | - public function __construct( |
|
| 20 | - LoggerInterface $logger, |
|
| 21 | - IConfig $config, |
|
| 22 | - protected IAppManager $appManager, |
|
| 23 | - ) { |
|
| 24 | - parent::__construct($logger, $config); |
|
| 25 | - } |
|
| 19 | + public function __construct( |
|
| 20 | + LoggerInterface $logger, |
|
| 21 | + IConfig $config, |
|
| 22 | + protected IAppManager $appManager, |
|
| 23 | + ) { |
|
| 24 | + parent::__construct($logger, $config); |
|
| 25 | + } |
|
| 26 | 26 | |
| 27 | - public function doFind(string $resource): void { |
|
| 28 | - $parts = explode('/', $resource); |
|
| 29 | - if (count($parts) < 2) { |
|
| 30 | - return; |
|
| 31 | - } |
|
| 32 | - $app = $parts[0]; |
|
| 33 | - $filename = $parts[array_key_last($parts)]; |
|
| 34 | - if ($this->appendIfExist($this->serverroot, $resource . '.css') |
|
| 35 | - || $this->appendIfExist($this->serverroot, 'core/' . $resource . '.css') |
|
| 36 | - || $this->appendIfExist($this->serverroot, 'dist/' . $app . '-' . $filename . '.css') |
|
| 37 | - ) { |
|
| 38 | - return; |
|
| 39 | - } |
|
| 40 | - try { |
|
| 41 | - $app_path = $this->appManager->getAppPath($app); |
|
| 42 | - $app_url = $this->appManager->getAppWebPath($app); |
|
| 43 | - } catch (AppPathNotFoundException $e) { |
|
| 44 | - $this->logger->error('Could not find resource {resource} to load', [ |
|
| 45 | - 'resource' => $resource . '.css', |
|
| 46 | - 'app' => 'cssresourceloader', |
|
| 47 | - 'exception' => $e, |
|
| 48 | - ]); |
|
| 49 | - return; |
|
| 50 | - } |
|
| 27 | + public function doFind(string $resource): void { |
|
| 28 | + $parts = explode('/', $resource); |
|
| 29 | + if (count($parts) < 2) { |
|
| 30 | + return; |
|
| 31 | + } |
|
| 32 | + $app = $parts[0]; |
|
| 33 | + $filename = $parts[array_key_last($parts)]; |
|
| 34 | + if ($this->appendIfExist($this->serverroot, $resource . '.css') |
|
| 35 | + || $this->appendIfExist($this->serverroot, 'core/' . $resource . '.css') |
|
| 36 | + || $this->appendIfExist($this->serverroot, 'dist/' . $app . '-' . $filename . '.css') |
|
| 37 | + ) { |
|
| 38 | + return; |
|
| 39 | + } |
|
| 40 | + try { |
|
| 41 | + $app_path = $this->appManager->getAppPath($app); |
|
| 42 | + $app_url = $this->appManager->getAppWebPath($app); |
|
| 43 | + } catch (AppPathNotFoundException $e) { |
|
| 44 | + $this->logger->error('Could not find resource {resource} to load', [ |
|
| 45 | + 'resource' => $resource . '.css', |
|
| 46 | + 'app' => 'cssresourceloader', |
|
| 47 | + 'exception' => $e, |
|
| 48 | + ]); |
|
| 49 | + return; |
|
| 50 | + } |
|
| 51 | 51 | |
| 52 | - // Account for the possibility of having symlinks in app path. Doing |
|
| 53 | - // this here instead of above as an empty argument to realpath gets |
|
| 54 | - // turned into cwd. |
|
| 55 | - $app_path = realpath($app_path); |
|
| 52 | + // Account for the possibility of having symlinks in app path. Doing |
|
| 53 | + // this here instead of above as an empty argument to realpath gets |
|
| 54 | + // turned into cwd. |
|
| 55 | + $app_path = realpath($app_path); |
|
| 56 | 56 | |
| 57 | - $this->append($app_path, join('/', array_slice($parts, 1)) . '.css', $app_url); |
|
| 58 | - } |
|
| 57 | + $this->append($app_path, join('/', array_slice($parts, 1)) . '.css', $app_url); |
|
| 58 | + } |
|
| 59 | 59 | |
| 60 | - public function doFindTheme(string $resource): void { |
|
| 61 | - $theme_dir = 'themes/' . $this->theme . '/'; |
|
| 62 | - $this->appendIfExist($this->serverroot, $theme_dir . 'apps/' . $resource . '.css') |
|
| 63 | - || $this->appendIfExist($this->serverroot, $theme_dir . $resource . '.css') |
|
| 64 | - || $this->appendIfExist($this->serverroot, $theme_dir . 'core/' . $resource . '.css'); |
|
| 65 | - } |
|
| 60 | + public function doFindTheme(string $resource): void { |
|
| 61 | + $theme_dir = 'themes/' . $this->theme . '/'; |
|
| 62 | + $this->appendIfExist($this->serverroot, $theme_dir . 'apps/' . $resource . '.css') |
|
| 63 | + || $this->appendIfExist($this->serverroot, $theme_dir . $resource . '.css') |
|
| 64 | + || $this->appendIfExist($this->serverroot, $theme_dir . 'core/' . $resource . '.css'); |
|
| 65 | + } |
|
| 66 | 66 | |
| 67 | - public function append(string $root, string $file, ?string $webRoot = null, bool $throw = true, bool $scss = false): void { |
|
| 68 | - if (!$scss) { |
|
| 69 | - parent::append($root, $file, $webRoot, $throw); |
|
| 70 | - } else { |
|
| 71 | - if ($webRoot === null || $webRoot === '') { |
|
| 72 | - $webRoot = $this->findWebRoot($root); |
|
| 67 | + public function append(string $root, string $file, ?string $webRoot = null, bool $throw = true, bool $scss = false): void { |
|
| 68 | + if (!$scss) { |
|
| 69 | + parent::append($root, $file, $webRoot, $throw); |
|
| 70 | + } else { |
|
| 71 | + if ($webRoot === null || $webRoot === '') { |
|
| 72 | + $webRoot = $this->findWebRoot($root); |
|
| 73 | 73 | |
| 74 | - if ($webRoot === null) { |
|
| 75 | - $webRoot = ''; |
|
| 76 | - $this->logger->error('ResourceLocator can not find a web root (root: {root}, file: {file}, webRoot: {webRoot}, throw: {throw})', [ |
|
| 77 | - 'app' => 'lib', |
|
| 78 | - 'root' => $root, |
|
| 79 | - 'file' => $file, |
|
| 80 | - 'webRoot' => $webRoot, |
|
| 81 | - 'throw' => $throw ? 'true' : 'false' |
|
| 82 | - ]); |
|
| 74 | + if ($webRoot === null) { |
|
| 75 | + $webRoot = ''; |
|
| 76 | + $this->logger->error('ResourceLocator can not find a web root (root: {root}, file: {file}, webRoot: {webRoot}, throw: {throw})', [ |
|
| 77 | + 'app' => 'lib', |
|
| 78 | + 'root' => $root, |
|
| 79 | + 'file' => $file, |
|
| 80 | + 'webRoot' => $webRoot, |
|
| 81 | + 'throw' => $throw ? 'true' : 'false' |
|
| 82 | + ]); |
|
| 83 | 83 | |
| 84 | - if ($throw && $root === '/') { |
|
| 85 | - throw new ResourceNotFoundException($file, $webRoot); |
|
| 86 | - } |
|
| 87 | - } |
|
| 88 | - } |
|
| 84 | + if ($throw && $root === '/') { |
|
| 85 | + throw new ResourceNotFoundException($file, $webRoot); |
|
| 86 | + } |
|
| 87 | + } |
|
| 88 | + } |
|
| 89 | 89 | |
| 90 | - $this->resources[] = [$webRoot ?: \OC::$WEBROOT, $webRoot, $file]; |
|
| 91 | - } |
|
| 92 | - } |
|
| 90 | + $this->resources[] = [$webRoot ?: \OC::$WEBROOT, $webRoot, $file]; |
|
| 91 | + } |
|
| 92 | + } |
|
| 93 | 93 | } |
@@ -31,9 +31,9 @@ discard block |
||
| 31 | 31 | } |
| 32 | 32 | $app = $parts[0]; |
| 33 | 33 | $filename = $parts[array_key_last($parts)]; |
| 34 | - if ($this->appendIfExist($this->serverroot, $resource . '.css') |
|
| 35 | - || $this->appendIfExist($this->serverroot, 'core/' . $resource . '.css') |
|
| 36 | - || $this->appendIfExist($this->serverroot, 'dist/' . $app . '-' . $filename . '.css') |
|
| 34 | + if ($this->appendIfExist($this->serverroot, $resource.'.css') |
|
| 35 | + || $this->appendIfExist($this->serverroot, 'core/'.$resource.'.css') |
|
| 36 | + || $this->appendIfExist($this->serverroot, 'dist/'.$app.'-'.$filename.'.css') |
|
| 37 | 37 | ) { |
| 38 | 38 | return; |
| 39 | 39 | } |
@@ -42,7 +42,7 @@ discard block |
||
| 42 | 42 | $app_url = $this->appManager->getAppWebPath($app); |
| 43 | 43 | } catch (AppPathNotFoundException $e) { |
| 44 | 44 | $this->logger->error('Could not find resource {resource} to load', [ |
| 45 | - 'resource' => $resource . '.css', |
|
| 45 | + 'resource' => $resource.'.css', |
|
| 46 | 46 | 'app' => 'cssresourceloader', |
| 47 | 47 | 'exception' => $e, |
| 48 | 48 | ]); |
@@ -54,14 +54,14 @@ discard block |
||
| 54 | 54 | // turned into cwd. |
| 55 | 55 | $app_path = realpath($app_path); |
| 56 | 56 | |
| 57 | - $this->append($app_path, join('/', array_slice($parts, 1)) . '.css', $app_url); |
|
| 57 | + $this->append($app_path, join('/', array_slice($parts, 1)).'.css', $app_url); |
|
| 58 | 58 | } |
| 59 | 59 | |
| 60 | 60 | public function doFindTheme(string $resource): void { |
| 61 | - $theme_dir = 'themes/' . $this->theme . '/'; |
|
| 62 | - $this->appendIfExist($this->serverroot, $theme_dir . 'apps/' . $resource . '.css') |
|
| 63 | - || $this->appendIfExist($this->serverroot, $theme_dir . $resource . '.css') |
|
| 64 | - || $this->appendIfExist($this->serverroot, $theme_dir . 'core/' . $resource . '.css'); |
|
| 61 | + $theme_dir = 'themes/'.$this->theme.'/'; |
|
| 62 | + $this->appendIfExist($this->serverroot, $theme_dir.'apps/'.$resource.'.css') |
|
| 63 | + || $this->appendIfExist($this->serverroot, $theme_dir.$resource.'.css') |
|
| 64 | + || $this->appendIfExist($this->serverroot, $theme_dir.'core/'.$resource.'.css'); |
|
| 65 | 65 | } |
| 66 | 66 | |
| 67 | 67 | public function append(string $root, string $file, ?string $webRoot = null, bool $throw = true, bool $scss = false): void { |
@@ -12,50 +12,50 @@ |
||
| 12 | 12 | use OCP\Settings\IDelegatedSettings; |
| 13 | 13 | |
| 14 | 14 | class Admin implements IDelegatedSettings { |
| 15 | - public function __construct( |
|
| 16 | - private SettingsManager $settingsManager, |
|
| 17 | - private IL10N $l, |
|
| 18 | - private IInitialState $initialState, |
|
| 19 | - ) { |
|
| 20 | - } |
|
| 21 | - |
|
| 22 | - /** |
|
| 23 | - * @return TemplateResponse |
|
| 24 | - */ |
|
| 25 | - public function getForm() { |
|
| 26 | - $this->initialState->provideInitialState('sendPasswordMail', $this->settingsManager->sendPasswordByMail()); |
|
| 27 | - $this->initialState->provideInitialState('replyToInitiator', $this->settingsManager->replyToInitiator()); |
|
| 28 | - |
|
| 29 | - \OCP\Util::addStyle('sharebymail', 'admin-settings'); |
|
| 30 | - \OCP\Util::addScript('sharebymail', 'admin-settings'); |
|
| 31 | - return new TemplateResponse('sharebymail', 'settings-admin', [], ''); |
|
| 32 | - } |
|
| 33 | - |
|
| 34 | - /** |
|
| 35 | - * @return string the section ID, e.g. 'sharing' |
|
| 36 | - */ |
|
| 37 | - public function getSection() { |
|
| 38 | - return 'sharing'; |
|
| 39 | - } |
|
| 40 | - |
|
| 41 | - /** |
|
| 42 | - * @return int whether the form should be rather on the top or bottom of |
|
| 43 | - * the admin section. The forms are arranged in ascending order of the |
|
| 44 | - * priority values. It is required to return a value between 0 and 100. |
|
| 45 | - * |
|
| 46 | - * E.g.: 70 |
|
| 47 | - */ |
|
| 48 | - public function getPriority() { |
|
| 49 | - return 40; |
|
| 50 | - } |
|
| 51 | - |
|
| 52 | - public function getName(): ?string { |
|
| 53 | - return $this->l->t('Share by mail'); |
|
| 54 | - } |
|
| 55 | - |
|
| 56 | - public function getAuthorizedAppConfig(): array { |
|
| 57 | - return [ |
|
| 58 | - 'sharebymail' => ['s/(sendpasswordmail|replyToInitiator)/'], |
|
| 59 | - ]; |
|
| 60 | - } |
|
| 15 | + public function __construct( |
|
| 16 | + private SettingsManager $settingsManager, |
|
| 17 | + private IL10N $l, |
|
| 18 | + private IInitialState $initialState, |
|
| 19 | + ) { |
|
| 20 | + } |
|
| 21 | + |
|
| 22 | + /** |
|
| 23 | + * @return TemplateResponse |
|
| 24 | + */ |
|
| 25 | + public function getForm() { |
|
| 26 | + $this->initialState->provideInitialState('sendPasswordMail', $this->settingsManager->sendPasswordByMail()); |
|
| 27 | + $this->initialState->provideInitialState('replyToInitiator', $this->settingsManager->replyToInitiator()); |
|
| 28 | + |
|
| 29 | + \OCP\Util::addStyle('sharebymail', 'admin-settings'); |
|
| 30 | + \OCP\Util::addScript('sharebymail', 'admin-settings'); |
|
| 31 | + return new TemplateResponse('sharebymail', 'settings-admin', [], ''); |
|
| 32 | + } |
|
| 33 | + |
|
| 34 | + /** |
|
| 35 | + * @return string the section ID, e.g. 'sharing' |
|
| 36 | + */ |
|
| 37 | + public function getSection() { |
|
| 38 | + return 'sharing'; |
|
| 39 | + } |
|
| 40 | + |
|
| 41 | + /** |
|
| 42 | + * @return int whether the form should be rather on the top or bottom of |
|
| 43 | + * the admin section. The forms are arranged in ascending order of the |
|
| 44 | + * priority values. It is required to return a value between 0 and 100. |
|
| 45 | + * |
|
| 46 | + * E.g.: 70 |
|
| 47 | + */ |
|
| 48 | + public function getPriority() { |
|
| 49 | + return 40; |
|
| 50 | + } |
|
| 51 | + |
|
| 52 | + public function getName(): ?string { |
|
| 53 | + return $this->l->t('Share by mail'); |
|
| 54 | + } |
|
| 55 | + |
|
| 56 | + public function getAuthorizedAppConfig(): array { |
|
| 57 | + return [ |
|
| 58 | + 'sharebymail' => ['s/(sendpasswordmail|replyToInitiator)/'], |
|
| 59 | + ]; |
|
| 60 | + } |
|
| 61 | 61 | } |
@@ -7,93 +7,93 @@ discard block |
||
| 7 | 7 | */ |
| 8 | 8 | |
| 9 | 9 | $expectedFiles = [ |
| 10 | - '.', |
|
| 11 | - '..', |
|
| 12 | - '.devcontainer', |
|
| 13 | - '.editorconfig', |
|
| 14 | - '.envrc', |
|
| 15 | - '.git', |
|
| 16 | - '.git-blame-ignore-revs', |
|
| 17 | - '.gitattributes', |
|
| 18 | - '.github', |
|
| 19 | - '.gitignore', |
|
| 20 | - '.gitmodules', |
|
| 21 | - '.htaccess', |
|
| 22 | - '.idea', |
|
| 23 | - '.jshintrc', |
|
| 24 | - '.mailmap', |
|
| 25 | - '.npmignore', |
|
| 26 | - '.php-cs-fixer.dist.php', |
|
| 27 | - '.pre-commit-config.yaml', |
|
| 28 | - '.tag', |
|
| 29 | - '.tx', |
|
| 30 | - '.user.ini', |
|
| 31 | - '__mocks__', |
|
| 32 | - '__tests__', |
|
| 33 | - '3rdparty', |
|
| 34 | - 'AUTHORS', |
|
| 35 | - 'CHANGELOG.md', |
|
| 36 | - 'CODE_OF_CONDUCT.md', |
|
| 37 | - 'COPYING', |
|
| 38 | - 'COPYING-README', |
|
| 39 | - 'DESIGN.md', |
|
| 40 | - 'Makefile', |
|
| 41 | - 'README.md', |
|
| 42 | - 'REUSE.toml', |
|
| 43 | - 'SECURITY.md', |
|
| 44 | - 'apps', |
|
| 45 | - 'autotest-checkers.sh', |
|
| 46 | - 'autotest-external.sh', |
|
| 47 | - 'autotest.sh', |
|
| 48 | - 'build', |
|
| 49 | - 'codecov.yml', |
|
| 50 | - 'composer.json', |
|
| 51 | - 'composer.lock', |
|
| 52 | - 'config', |
|
| 53 | - 'console.php', |
|
| 54 | - 'contribute', |
|
| 55 | - 'core', |
|
| 56 | - 'cron.php', |
|
| 57 | - 'custom.d.ts', |
|
| 58 | - 'cypress.config.ts', |
|
| 59 | - 'cypress', |
|
| 60 | - 'dist', |
|
| 61 | - 'eslint.config.js', |
|
| 62 | - 'flake.lock', |
|
| 63 | - 'flake.nix', |
|
| 64 | - 'index.html', |
|
| 65 | - 'index.php', |
|
| 66 | - 'lib', |
|
| 67 | - 'LICENSES', |
|
| 68 | - 'occ', |
|
| 69 | - 'ocs', |
|
| 70 | - 'ocs-provider', |
|
| 71 | - 'openapi.json', |
|
| 72 | - 'package-lock.json', |
|
| 73 | - 'package.json', |
|
| 74 | - 'psalm-ncu.xml', |
|
| 75 | - 'psalm-ocp.xml', |
|
| 76 | - 'psalm.xml', |
|
| 77 | - 'public.php', |
|
| 78 | - 'remote.php', |
|
| 79 | - 'resources', |
|
| 80 | - 'robots.txt', |
|
| 81 | - 'status.php', |
|
| 82 | - 'stylelint.config.js', |
|
| 83 | - 'tests', |
|
| 84 | - 'themes', |
|
| 85 | - 'tsconfig.json', |
|
| 86 | - 'vendor-bin', |
|
| 87 | - 'version.php', |
|
| 88 | - 'vite.config.ts', |
|
| 89 | - 'vitest.config.ts', |
|
| 90 | - 'window.d.ts', |
|
| 10 | + '.', |
|
| 11 | + '..', |
|
| 12 | + '.devcontainer', |
|
| 13 | + '.editorconfig', |
|
| 14 | + '.envrc', |
|
| 15 | + '.git', |
|
| 16 | + '.git-blame-ignore-revs', |
|
| 17 | + '.gitattributes', |
|
| 18 | + '.github', |
|
| 19 | + '.gitignore', |
|
| 20 | + '.gitmodules', |
|
| 21 | + '.htaccess', |
|
| 22 | + '.idea', |
|
| 23 | + '.jshintrc', |
|
| 24 | + '.mailmap', |
|
| 25 | + '.npmignore', |
|
| 26 | + '.php-cs-fixer.dist.php', |
|
| 27 | + '.pre-commit-config.yaml', |
|
| 28 | + '.tag', |
|
| 29 | + '.tx', |
|
| 30 | + '.user.ini', |
|
| 31 | + '__mocks__', |
|
| 32 | + '__tests__', |
|
| 33 | + '3rdparty', |
|
| 34 | + 'AUTHORS', |
|
| 35 | + 'CHANGELOG.md', |
|
| 36 | + 'CODE_OF_CONDUCT.md', |
|
| 37 | + 'COPYING', |
|
| 38 | + 'COPYING-README', |
|
| 39 | + 'DESIGN.md', |
|
| 40 | + 'Makefile', |
|
| 41 | + 'README.md', |
|
| 42 | + 'REUSE.toml', |
|
| 43 | + 'SECURITY.md', |
|
| 44 | + 'apps', |
|
| 45 | + 'autotest-checkers.sh', |
|
| 46 | + 'autotest-external.sh', |
|
| 47 | + 'autotest.sh', |
|
| 48 | + 'build', |
|
| 49 | + 'codecov.yml', |
|
| 50 | + 'composer.json', |
|
| 51 | + 'composer.lock', |
|
| 52 | + 'config', |
|
| 53 | + 'console.php', |
|
| 54 | + 'contribute', |
|
| 55 | + 'core', |
|
| 56 | + 'cron.php', |
|
| 57 | + 'custom.d.ts', |
|
| 58 | + 'cypress.config.ts', |
|
| 59 | + 'cypress', |
|
| 60 | + 'dist', |
|
| 61 | + 'eslint.config.js', |
|
| 62 | + 'flake.lock', |
|
| 63 | + 'flake.nix', |
|
| 64 | + 'index.html', |
|
| 65 | + 'index.php', |
|
| 66 | + 'lib', |
|
| 67 | + 'LICENSES', |
|
| 68 | + 'occ', |
|
| 69 | + 'ocs', |
|
| 70 | + 'ocs-provider', |
|
| 71 | + 'openapi.json', |
|
| 72 | + 'package-lock.json', |
|
| 73 | + 'package.json', |
|
| 74 | + 'psalm-ncu.xml', |
|
| 75 | + 'psalm-ocp.xml', |
|
| 76 | + 'psalm.xml', |
|
| 77 | + 'public.php', |
|
| 78 | + 'remote.php', |
|
| 79 | + 'resources', |
|
| 80 | + 'robots.txt', |
|
| 81 | + 'status.php', |
|
| 82 | + 'stylelint.config.js', |
|
| 83 | + 'tests', |
|
| 84 | + 'themes', |
|
| 85 | + 'tsconfig.json', |
|
| 86 | + 'vendor-bin', |
|
| 87 | + 'version.php', |
|
| 88 | + 'vite.config.ts', |
|
| 89 | + 'vitest.config.ts', |
|
| 90 | + 'window.d.ts', |
|
| 91 | 91 | ]; |
| 92 | 92 | $actualFiles = []; |
| 93 | 93 | |
| 94 | 94 | $files = new \DirectoryIterator(__DIR__ . '/..'); |
| 95 | 95 | foreach ($files as $file) { |
| 96 | - $actualFiles[] = $file->getFilename(); |
|
| 96 | + $actualFiles[] = $file->getFilename(); |
|
| 97 | 97 | } |
| 98 | 98 | |
| 99 | 99 | $additionalFiles = array_diff($actualFiles, $expectedFiles); |
@@ -101,19 +101,19 @@ discard block |
||
| 101 | 101 | |
| 102 | 102 | $failed = false; |
| 103 | 103 | if (count($additionalFiles) > 0) { |
| 104 | - echo sprintf('ERROR: There were %d additional files:', count($additionalFiles)) . PHP_EOL; |
|
| 105 | - echo implode(PHP_EOL, $additionalFiles) . PHP_EOL; |
|
| 106 | - $failed = true; |
|
| 104 | + echo sprintf('ERROR: There were %d additional files:', count($additionalFiles)) . PHP_EOL; |
|
| 105 | + echo implode(PHP_EOL, $additionalFiles) . PHP_EOL; |
|
| 106 | + $failed = true; |
|
| 107 | 107 | } |
| 108 | 108 | if (count($missingFiles) > 0) { |
| 109 | - echo sprintf('ERROR: There were %d missing files:', count($missingFiles)) . PHP_EOL; |
|
| 110 | - echo implode(PHP_EOL, $missingFiles) . PHP_EOL; |
|
| 111 | - $failed = true; |
|
| 109 | + echo sprintf('ERROR: There were %d missing files:', count($missingFiles)) . PHP_EOL; |
|
| 110 | + echo implode(PHP_EOL, $missingFiles) . PHP_EOL; |
|
| 111 | + $failed = true; |
|
| 112 | 112 | } |
| 113 | 113 | |
| 114 | 114 | if ($failed) { |
| 115 | - echo 'ERROR: Please remove or add those files again or inform the release team about those now files to be included or excluded from the release tar ball.' . PHP_EOL; |
|
| 116 | - exit(1); |
|
| 115 | + echo 'ERROR: Please remove or add those files again or inform the release team about those now files to be included or excluded from the release tar ball.' . PHP_EOL; |
|
| 116 | + exit(1); |
|
| 117 | 117 | } |
| 118 | 118 | |
| 119 | 119 | echo 'OK: all expected files are present and no additional files are there.' . PHP_EOL; |