From d104896a2596d280d253b9bef05428bfeb050008 Mon Sep 17 00:00:00 2001 From: DariusIII Date: Thu, 30 Jul 2020 10:41:19 +0000 Subject: [PATCH] Apply fixes from StyleCI [ci skip] [skip ci] --- misc/testing/PostProc/check_covers.php | 2 +- misc/testing/PostProc/check_previews.php | 2 +- misc/testing/PostProc/updateGamesImages.php | 2 +- misc/testing/PostProc/updateMovieImages.php | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/misc/testing/PostProc/check_covers.php b/misc/testing/PostProc/check_covers.php index ad3831dac..f63be07d0 100644 --- a/misc/testing/PostProc/check_covers.php +++ b/misc/testing/PostProc/check_covers.php @@ -18,7 +18,7 @@ $row = Settings::settingValue('site.main.coverspath'); if ($row !== null) { Utility::setCoversConstant($row); } else { - die('Unable to determine covers path!'.PHP_EOL); + exit('Unable to determine covers path!'.PHP_EOL); } $path2cover = NN_COVERS.'movies'.DS; diff --git a/misc/testing/PostProc/check_previews.php b/misc/testing/PostProc/check_previews.php index a3533d47e..2ce5a2e43 100644 --- a/misc/testing/PostProc/check_previews.php +++ b/misc/testing/PostProc/check_previews.php @@ -21,7 +21,7 @@ $row = Settings::settingValue('site.main.coverspath'); if ($row !== null) { Utility::setCoversConstant($row); } else { - die("Unable to determine covers path!\n"); + exit("Unable to determine covers path!\n"); } $path2preview = NN_COVERS.'preview'.DS; diff --git a/misc/testing/PostProc/updateGamesImages.php b/misc/testing/PostProc/updateGamesImages.php index 17d6d278b..182fba4ef 100644 --- a/misc/testing/PostProc/updateGamesImages.php +++ b/misc/testing/PostProc/updateGamesImages.php @@ -23,7 +23,7 @@ $row = Settings::settingValue('site.main.coverspath'); if ($row !== null) { Utility::setCoversConstant($row); } else { - die("Unable to set Covers' constant!\n"); + exit("Unable to set Covers' constant!\n"); } $path2covers = NN_COVERS.'games'.DS; diff --git a/misc/testing/PostProc/updateMovieImages.php b/misc/testing/PostProc/updateMovieImages.php index 94b6fea0f..58b8aff35 100644 --- a/misc/testing/PostProc/updateMovieImages.php +++ b/misc/testing/PostProc/updateMovieImages.php @@ -20,7 +20,7 @@ $row = Settings::settingValue('site.main.coverspath'); if ($row !== null) { Utility::setCoversConstant($row); } else { - die("Unable to set Covers' constant!\n"); + exit("Unable to set Covers' constant!\n"); } $path2covers = NN_COVERS.'movies'.DS;