Skip to content

Commit

Permalink
Apply fixes from StyleCI (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
NikulinIlya committed May 25, 2020
1 parent d8025e3 commit 04b1791
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions src/ChuckNorrisJokesServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,22 +17,22 @@ public function boot()
]);
}

$this->loadViewsFrom(__DIR__ . '/../resources/views', 'chuck-norris');
$this->loadViewsFrom(__DIR__.'/../resources/views', 'chuck-norris');

$this->publishes([
__DIR__ . '/../resources/views' => resource_path('views/vendor/chuck-norris'),
__DIR__.'/../resources/views' => resource_path('views/vendor/chuck-norris'),
], 'views');

$this->publishes([
__DIR__ . '/../config/chuck-norris.php' => base_path('config/chuck-norris.php'),
__DIR__.'/../config/chuck-norris.php' => base_path('config/chuck-norris.php'),
], 'config');

if (! class_exists('CreateJokesTable')) {
$this->publishes([
__DIR__ . '/../database/migrations/create_jokes_table.php.stub' => database_path(
__DIR__.'/../database/migrations/create_jokes_table.php.stub' => database_path(
'migrations/'
. date('Y_m_d_His', time())
. '_create_jokes_table.php'
.date('Y_m_d_His', time())
.'_create_jokes_table.php'
),
], 'migrations');
}
Expand All @@ -46,6 +46,6 @@ public function register()
return new JokeFactory();
});

$this->mergeConfigFrom(__DIR__ . '/../config/chuck-norris.php', 'chuck-norris');
$this->mergeConfigFrom(__DIR__.'/../config/chuck-norris.php', 'chuck-norris');
}
}
2 changes: 1 addition & 1 deletion tests/LaravelTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ protected function getPackageAliases($app)

protected function getEnvironmentSetUp($app)
{
include_once __DIR__ . '/../database/migrations/create_jokes_table.php.stub';
include_once __DIR__.'/../database/migrations/create_jokes_table.php.stub';

(new \CreateJokesTable)->up();
}
Expand Down

0 comments on commit 04b1791

Please sign in to comment.