From a4bac32f937eb73bb9d43cd7ebc798a83eba76a7 Mon Sep 17 00:00:00 2001 From: Caen De Silva Date: Sun, 31 Jul 2022 16:33:26 +0200 Subject: [PATCH] Convert snake_case to camelCase --- .../framework/src/Services/ValidationService.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/packages/framework/src/Services/ValidationService.php b/packages/framework/src/Services/ValidationService.php index ee5ad82da73..c974021e3f0 100644 --- a/packages/framework/src/Services/ValidationService.php +++ b/packages/framework/src/Services/ValidationService.php @@ -30,14 +30,14 @@ public function run(string $check): Result return $this->$check(new Result); } - public function check_validators_can_run(Result $result): Result + public function checkValidatorsCanRun(Result $result): Result { // Runs a rather useless check, but which forces the class to load, thus preventing skewed test results // as the first test generally takes a little longer to run. return $result->pass('Validators can run'); } - public function check_site_has_a_404_page(Result $result): Result + public function checkSiteHasA404Page(Result $result): Result { if (file_exists(Hyde::path('_pages/404.md')) || file_exists(Hyde::path('_pages/404.blade.php')) @@ -49,7 +49,7 @@ public function check_site_has_a_404_page(Result $result): Result ->withTip('You can publish the default one using `php hyde publish:views`'); } - public function check_site_has_an_index_page(Result $result): Result + public function checkSiteHasAnIndexPage(Result $result): Result { if (file_exists(Hyde::path('_pages/index.md')) || file_exists('_pages/index.blade.php')) { @@ -60,7 +60,7 @@ public function check_site_has_an_index_page(Result $result): Result ->withTip('You can publish the one of the built in templates using `php hyde publish:homepage`'); } - public function check_documentation_site_has_an_index_page(Result $result): Result + public function checkDocumentationSiteHasAnIndexPage(Result $result): Result { if (! Features::hasDocumentationPages()) { return $result->skip('The documentation page feature is disabled in config'); @@ -82,7 +82,7 @@ public function check_documentation_site_has_an_index_page(Result $result): Resu return $result->fail('Could not find an index.md file in the _docs directory!'); } - public function check_site_has_an_app_css_stylesheet(Result $result): Result + public function checkSiteHasAnAppCssStylesheet(Result $result): Result { if (file_exists(Hyde::path('_site/media/app.css')) || file_exists(Hyde::path('_media/app.css'))) { return $result->pass('Your site has an app.css stylesheet'); @@ -92,7 +92,7 @@ public function check_site_has_an_app_css_stylesheet(Result $result): Result ->withTip('You may need to run `npm run dev`.`'); } - public function check_site_has_a_base_url_set(Result $result): Result + public function checkSiteHasABaseUrlSet(Result $result): Result { if (Hyde::hasSiteUrl()) { return $result->pass('Your site has a base URL set') @@ -103,7 +103,7 @@ public function check_site_has_a_base_url_set(Result $result): Result ->withTip('Adding it may improve SEO as it allows Hyde to generate canonical URLs, sitemaps, and RSS feeds'); } - public function check_a_torchlight_api_token_is_set(Result $result): Result + public function checkATorchlightApiTokenIsSet(Result $result): Result { if (! Features::enabled(Features::torchlight())) { return $result->skip('Check a Torchlight API token is set') @@ -118,7 +118,7 @@ public function check_a_torchlight_api_token_is_set(Result $result): Result ->withTip('Torchlight is an API for code syntax highlighting. You can get a free token at torchlight.dev.'); } - public function check_for_conflicts_between_blade_and_markdown_pages(Result $result): Result + public function checkForConflictsBetweenBladeAndMarkdownPages(Result $result): Result { $conflicts = array_intersect( DiscoveryService::getMarkdownPageFiles(),