Completed
Push — master ( eaba5d...273ac0 )
by Marc
03:48 queued 01:30
created
src/RobotsServiceProvider.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -23,11 +23,11 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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();
Please login to merge, or discard this patch.