Skip to content

Commit

Permalink
Merge pull request #2 from orkhanahmadov/analysis-ajy5ZB
Browse files Browse the repository at this point in the history
Apply fixes from StyleCI
  • Loading branch information
orkhanahmadov committed Oct 7, 2020
2 parents bcf7dd9 + 98c91e5 commit b823974
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/LaravelCommentableServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ public function boot()
{
if ($this->app->runningInConsole()) {
$this->publishes([
__DIR__.'/../config/config.php' => config_path('commentable.php'),
__DIR__ . '/../config/config.php' => config_path('commentable.php'),
], 'config');

if (! class_exists('CreateCommentableTable')) {
$this->publishes([
__DIR__.'/../database/migrations/commentable_table.php.stub' => database_path('migrations/'.date('Y_m_d_His', time()).'_create_commentable_table.php'),
__DIR__ . '/../database/migrations/commentable_table.php.stub' => database_path('migrations/' . date('Y_m_d_His', time()) . '_create_commentable_table.php'),
], 'migrations');
}
}
Expand All @@ -29,6 +29,6 @@ public function boot()
*/
public function register()
{
$this->mergeConfigFrom(__DIR__.'/../config/config.php', 'commentable');
$this->mergeConfigFrom(__DIR__ . '/../config/config.php', 'commentable');
}
}
2 changes: 1 addition & 1 deletion tests/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ protected function setUp(): void
*/
protected function setUpDatabase($app)
{
include_once __DIR__.'/../database/migrations/commentable_table.php.stub';
include_once __DIR__ . '/../database/migrations/commentable_table.php.stub';
(new \CreateCommentableTable())->up();
}
}

0 comments on commit b823974

Please sign in to comment.