Skip to content

Commit 5e93e83

Browse files
thejmitchenergithub-actions[bot]
authored andcommitted
Fix styling
1 parent 9d90f49 commit 5e93e83

File tree

4 files changed

+3
-6
lines changed

4 files changed

+3
-6
lines changed

src/Commands/InstallCommand.php

-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ class InstallCommand extends Command
1515
* This property defines the command that should be used to trigger the install process from the console.
1616
* It is a unique identifier for the command within the application's namespace, allowing it to be called via the Artisan command-line tool.
1717
*/
18-
1918
public $signature = 'sitemap:install';
2019

2120
/**

src/Commands/SitemapGenerateCommand.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@
99
use Illuminate\Support\Facades\Log;
1010
use Illuminate\Support\Facades\Route;
1111
use Spatie\Crawler\Crawler;
12+
use Spatie\Sitemap\Contracts\Sitemapable;
1213
use Spatie\Sitemap\Sitemap;
1314
use Spatie\Sitemap\SitemapGenerator;
1415
use Spatie\Sitemap\SitemapIndex;
1516
use Spatie\Sitemap\Tags\Url;
16-
use Spatie\Sitemap\Contracts\Sitemapable;
1717

1818
class SitemapGenerateCommand extends Command
1919
{
@@ -143,11 +143,11 @@ protected function generatePostsSitemap($filename = 'posts_sitemap.xml')
143143

144144
$postModelClasses = Config::get('sitemap.post_model', []);
145145

146-
if (!class_exists($postModelClass)) {
146+
if (! class_exists($postModelClass)) {
147147
throw new \Exception("Configured model class '{$postModelClass}' does not exist.");
148148
}
149149

150-
if (!in_array(Sitemapable::class, class_implements($postModelClass))) {
150+
if (! in_array(Sitemapable::class, class_implements($postModelClass))) {
151151
throw new \Exception("Configured model class '{$postModelClass}' does not implement the Sitemapable interface.");
152152
}
153153

src/Http/Controllers/SitemapController.php

-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ class SitemapController extends BaseController
1717
* If the file exists, it returns the file's contents with an HTTP 200 response, setting the 'Content-Type' to 'application/xml'.
1818
* If the file is not found, it aborts the process with a 404 error, indicating the requested sitemap does not exist.
1919
*/
20-
2120
public function index($filename)
2221
{
2322
$disk = Config::get('fv-sitemap.disk', 'public');

src/SitemapServiceProvider.php

-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ class SitemapServiceProvider extends PackageServiceProvider
1818
* It also registers console commands provided by the package, enhancing the Artisan CLI with sitemap generation and installation capabilities.
1919
* This setup facilitates the integration of the sitemap functionality into a Laravel application, making it configurable and extendable.
2020
*/
21-
2221
public function configurePackage(Package $package): void
2322
{
2423
$package

0 commit comments

Comments
 (0)