From 3f2af29e867e95c2c4c7c35d47b22531656fd0d0 Mon Sep 17 00:00:00 2001 From: Matt Daneshvar Date: Thu, 12 Sep 2019 03:50:45 +0000 Subject: [PATCH] Apply fixes from StyleCI --- config/survey.php | 10 +++++----- src/Models/Answer.php | 6 +++--- src/Models/Entry.php | 2 +- src/Models/Question.php | 2 +- src/Models/Section.php | 2 +- src/Models/Survey.php | 4 ++-- src/SurveyServiceProvider.php | 12 ++++++------ tests/TestCase.php | 2 +- 8 files changed, 20 insertions(+), 20 deletions(-) diff --git a/config/survey.php b/config/survey.php index 4bbcd02..3dbf22d 100644 --- a/config/survey.php +++ b/config/survey.php @@ -1,12 +1,12 @@ [ - /** + /* * Name of the tables created by the migrations * and used by the models of this package. */ @@ -17,5 +17,5 @@ 'entries' => 'entries', 'answers' => 'answers', ], - ] -]; \ No newline at end of file + ], +]; diff --git a/src/Models/Answer.php b/src/Models/Answer.php index 1e58a19..4bc1c47 100644 --- a/src/Models/Answer.php +++ b/src/Models/Answer.php @@ -8,7 +8,7 @@ class Answer extends Model { /** * Answer constructor. - * + * * @param array $attributes */ public function __construct(array $attributes = []) @@ -16,10 +16,10 @@ public function __construct(array $attributes = []) if (! isset($this->table)) { $this->setTable(config('survey.database.tables.answers')); } - + parent::__construct($attributes); } - + /** * The attributes that are mass assignable. * diff --git a/src/Models/Entry.php b/src/Models/Entry.php index c2e8319..1a2e3e0 100644 --- a/src/Models/Entry.php +++ b/src/Models/Entry.php @@ -34,7 +34,7 @@ protected static function boot() /** * Entry constructor. - * + * * @param array $attributes */ public function __construct(array $attributes = []) diff --git a/src/Models/Question.php b/src/Models/Question.php index eaae3b6..08e29f8 100644 --- a/src/Models/Question.php +++ b/src/Models/Question.php @@ -39,7 +39,7 @@ protected static function boot() /** * Question constructor. - * + * * @param array $attributes */ public function __construct(array $attributes = []) diff --git a/src/Models/Section.php b/src/Models/Section.php index 13df5d2..8d46758 100644 --- a/src/Models/Section.php +++ b/src/Models/Section.php @@ -19,7 +19,7 @@ public function __construct(array $attributes = []) parent::__construct($attributes); } - + /** * The attributes that are mass assignable. * diff --git a/src/Models/Survey.php b/src/Models/Survey.php index baa4678..8b5d9ff 100644 --- a/src/Models/Survey.php +++ b/src/Models/Survey.php @@ -8,7 +8,7 @@ class Survey extends Model { /** * Survey constructor. - * + * * @param array $attributes */ public function __construct(array $attributes = []) @@ -19,7 +19,7 @@ public function __construct(array $attributes = []) parent::__construct($attributes); } - + /** * The attributes that are mass assignable. * diff --git a/src/SurveyServiceProvider.php b/src/SurveyServiceProvider.php index 9cd1520..b496562 100644 --- a/src/SurveyServiceProvider.php +++ b/src/SurveyServiceProvider.php @@ -17,12 +17,12 @@ class SurveyServiceProvider extends ServiceProvider public function boot(ViewFactory $viewFactory) { $this->publishes([ - __DIR__ . '/../config/survey.php' => config_path('survey.php'), + __DIR__.'/../config/survey.php' => config_path('survey.php'), ], 'config'); - - $this->mergeConfigFrom(__DIR__ . '/../config/survey.php', 'survey'); - $this->loadViewsFrom(__DIR__ . '/../resources/views', 'survey'); + $this->mergeConfigFrom(__DIR__.'/../config/survey.php', 'survey'); + + $this->loadViewsFrom(__DIR__.'/../resources/views', 'survey'); $viewFactory->composer('survey::standard', SurveyComposer::class); @@ -50,8 +50,8 @@ protected function publishMigrations($migrations) } $this->publishes([ - __DIR__ . "/../database/migrations/$migration.php.stub" => database_path('migrations/' . date('Y_m_d_His', - time()) . "_$migration.php"), + __DIR__."/../database/migrations/$migration.php.stub" => database_path('migrations/'.date('Y_m_d_His', + time())."_$migration.php"), ], 'migrations'); } } diff --git a/tests/TestCase.php b/tests/TestCase.php index 7daee0a..756195d 100644 --- a/tests/TestCase.php +++ b/tests/TestCase.php @@ -3,8 +3,8 @@ namespace MattDaneshvar\Survey\Tests; use Illuminate\Foundation\Auth\User; -use MattDaneshvar\Survey\SurveyServiceProvider; use Orchestra\Testbench\TestCase as Orchestra; +use MattDaneshvar\Survey\SurveyServiceProvider; class TestCase extends Orchestra {