@@ -89,7 +89,7 @@ |
||
89 | 89 | */ |
90 | 90 | public function addComment(string $comment): RobotsContract |
91 | 91 | { |
92 | - $this->addLine(self::COMMENT . " $comment"); |
|
92 | + $this->addLine(self::COMMENT." $comment"); |
|
93 | 93 | |
94 | 94 | return $this; |
95 | 95 | } |
@@ -23,11 +23,11 @@ discard block |
||
23 | 23 | public function boot(Filesystem $filesystem) |
24 | 24 | { |
25 | 25 | $this->publishes([ |
26 | - __DIR__ . '/../config/robots.php' => config_path('robots.php'), |
|
26 | + __DIR__.'/../config/robots.php' => config_path('robots.php'), |
|
27 | 27 | ], 'config'); |
28 | 28 | |
29 | 29 | $this->publishes([ |
30 | - __DIR__ . '/../database/migrations/create_robots_tables.php.stub' => $this->getMigrationFileName($filesystem), |
|
30 | + __DIR__.'/../database/migrations/create_robots_tables.php.stub' => $this->getMigrationFileName($filesystem), |
|
31 | 31 | ], 'migrations'); |
32 | 32 | } |
33 | 33 | |
@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | */ |
39 | 39 | public function register() |
40 | 40 | { |
41 | - $this->app->singleton('robots', function ($app) { |
|
41 | + $this->app->singleton('robots', function($app) { |
|
42 | 42 | return new Robots(); |
43 | 43 | }); |
44 | 44 | |
@@ -59,8 +59,8 @@ discard block |
||
59 | 59 | protected function getMigrationFileName(Filesystem $filesystem): string |
60 | 60 | { |
61 | 61 | $timestamp = date('Y_m_d_His'); |
62 | - return Collection::make($this->app->databasePath() . DIRECTORY_SEPARATOR . 'migrations' . DIRECTORY_SEPARATOR) |
|
63 | - ->flatMap(function ($path) use ($filesystem) { |
|
62 | + return Collection::make($this->app->databasePath().DIRECTORY_SEPARATOR.'migrations'.DIRECTORY_SEPARATOR) |
|
63 | + ->flatMap(function($path) use ($filesystem) { |
|
64 | 64 | return $filesystem->glob($path.'*_create_robots_tables.php'); |
65 | 65 | })->push($this->app->databasePath()."/migrations/{$timestamp}_create_robots_tables.php") |
66 | 66 | ->first(); |