Skip to content

Commit 5eb0fb0

Browse files
style: Apply fixes from StyleCI (#995)
Co-authored-by: StyleCI Bot <[email protected]>
1 parent 2e2e4c5 commit 5eb0fb0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Commands/Publish/GeneratorPublishCommand.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
namespace InfyOm\Generator\Commands\Publish;
44

5-
use Illuminate\Support\Str;
65
use InfyOm\Generator\Utils\FileUtil;
76
use Symfony\Component\Console\Input\InputOption;
87

@@ -64,20 +63,21 @@ private function fillTemplate($templateData)
6463

6564
private function updateRouteServiceProvider()
6665
{
67-
$routeServiceProviderPath = app_path('Providers'.DIRECTORY_SEPARATOR."RouteServiceProvider.php");
66+
$routeServiceProviderPath = app_path('Providers'.DIRECTORY_SEPARATOR.'RouteServiceProvider.php');
6867

6968
if (!file_exists($routeServiceProviderPath)) {
7069
$this->error("Route Service provider not found on $routeServiceProviderPath");
70+
7171
return 1;
7272
}
7373

7474
$fileContent = file_get_contents($routeServiceProviderPath);
7575

76-
$search = "Route::prefix('api')".PHP_EOL.str(" ")->repeat(16)."->middleware('api')";
76+
$search = "Route::prefix('api')".PHP_EOL.str(' ')->repeat(16)."->middleware('api')";
7777
$beforeContent = str($fileContent)->before($search);
7878
$afterContent = str($fileContent)->after($search);
7979

80-
$finalContent = $beforeContent.$search.PHP_EOL.str(" ")->repeat(16)."->as('api.')".$afterContent;
80+
$finalContent = $beforeContent.$search.PHP_EOL.str(' ')->repeat(16)."->as('api.')".$afterContent;
8181
file_put_contents($routeServiceProviderPath, $finalContent);
8282

8383
return 0;

0 commit comments

Comments
 (0)