Skip to content

Commit 694598a

Browse files
committed
style ci
1 parent 028c2fd commit 694598a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/Console/Commands/QuickStartCommand.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
namespace Lomkit\Rest\Console\Commands;
44

55
use Illuminate\Console\Command;
6-
use Lomkit\Rest\Console\ResolvesStubPath;
76
use Illuminate\Support\Str;
7+
use Lomkit\Rest\Console\ResolvesStubPath;
88

99
class QuickStartCommand extends Command
1010
{
@@ -108,14 +108,14 @@ protected function setAppNamespaceOn($file, $namespace)
108108
protected function updateApiRoutes()
109109
{
110110
$routesPath = base_path('routes/api.php');
111-
if (! file_exists($routesPath)) {
111+
if (!file_exists($routesPath)) {
112112
file_put_contents($routesPath, '<?php');
113113
}
114114

115115
$routeContent = file_get_contents($routesPath);
116116
$newRoute = "\Lomkit\Rest\Facades\Rest::resource('users', \App\Rest\Controllers\UsersController::class);";
117117

118-
if (! Str::contains($routeContent, $newRoute)) {
118+
if (!Str::contains($routeContent, $newRoute)) {
119119
file_put_contents($routesPath, $routeContent.PHP_EOL.$newRoute);
120120
}
121121
}

tests/Feature/Commands/QuickStartCommandTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ protected function setUp(): void
1212
parent::setUp();
1313

1414
// Ensure api.php exists for tests
15-
if (! File::exists(base_path('routes/api.php'))) {
15+
if (!File::exists(base_path('routes/api.php'))) {
1616
File::put(base_path('routes/api.php'), '<?php');
1717
}
1818
}

0 commit comments

Comments
 (0)