Skip to content

Commit

Permalink
remove google indexing file check
Browse files Browse the repository at this point in the history
  • Loading branch information
3x1io committed Oct 9, 2024
1 parent 50adce9 commit 065e7e9
Showing 1 changed file with 0 additions and 27 deletions.
27 changes: 0 additions & 27 deletions src/FilamentSeoServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,6 @@ public function register(): void
return new FilamentSeoServices();
});

$this->guardAgainstInvalidConfiguration(config('filament-seo'));


Blade::directive('filamentSEO', function () {
return view('filament-seo::directive');
Expand All @@ -79,29 +77,4 @@ public function boot(): void
{
//you boot methods here
}

private static function getSections(){
return app()->view->getSections();
}


private function multiLang($value){
return app()->getLocale() === 'en' ? str($value)->explode('|')[0]??$value : str($value)->explode('|')[1]??$value;
}

/**
* @param array|null $searchConsoleConfig
*
* @throws InvalidConfiguration
*/
protected function guardAgainstInvalidConfiguration(array $searchConsoleConfig = null): void
{
if ($searchConsoleConfig['auth_type'] == 'service_account' && ! file_exists($searchConsoleConfig['connections']['service_account']['application_credentials'])) {
throw InvalidConfiguration::credentialsJsonDoesNotExist($searchConsoleConfig['connections']['service_account']['application_credentials']);
}

if ($searchConsoleConfig['auth_type'] == 'oauth_json' && ! file_exists($searchConsoleConfig['connections']['oauth_json']['auth_config'])) {
throw InvalidConfiguration::credentialsJsonDoesNotExist($searchConsoleConfig['connections']['oauth_json']['auth_config']);
}
}
}

0 comments on commit 065e7e9

Please sign in to comment.