Skip to content

Commit

Permalink
Convert snake_case to camelCase
Browse files Browse the repository at this point in the history
  • Loading branch information
caendesilva committed Jul 31, 2022
1 parent 2690c34 commit a4bac32
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions packages/framework/src/Services/ValidationService.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'))
Expand All @@ -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')) {
Expand All @@ -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');
Expand All @@ -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');
Expand All @@ -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')
Expand All @@ -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')
Expand All @@ -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(),
Expand Down

0 comments on commit a4bac32

Please sign in to comment.