Skip to content

Commit

Permalink
Merge branch 'master' of github.com:matt-daneshvar/laravel-survey
Browse files Browse the repository at this point in the history
  • Loading branch information
matt-daneshvar committed Sep 12, 2019
2 parents 7707dba + 9d2e595 commit 387ac06
Show file tree
Hide file tree
Showing 8 changed files with 20 additions and 20 deletions.
10 changes: 5 additions & 5 deletions config/survey.php
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<?php

return [
/**

/*
* Database related configurations.
*/
'database' => [
/**
/*
* Name of the tables created by the migrations
* and used by the models of this package.
*/
Expand All @@ -17,5 +17,5 @@
'entries' => 'entries',
'answers' => 'answers',
],
]
];
],
];
6 changes: 3 additions & 3 deletions src/Models/Answer.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,18 @@ class Answer extends Model
{
/**
* Answer constructor.
*
*
* @param array $attributes
*/
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.
*
Expand Down
2 changes: 1 addition & 1 deletion src/Models/Entry.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ protected static function boot()

/**
* Entry constructor.
*
*
* @param array $attributes
*/
public function __construct(array $attributes = [])
Expand Down
2 changes: 1 addition & 1 deletion src/Models/Question.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ protected static function boot()

/**
* Question constructor.
*
*
* @param array $attributes
*/
public function __construct(array $attributes = [])
Expand Down
2 changes: 1 addition & 1 deletion src/Models/Section.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public function __construct(array $attributes = [])

parent::__construct($attributes);
}

/**
* The attributes that are mass assignable.
*
Expand Down
4 changes: 2 additions & 2 deletions src/Models/Survey.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class Survey extends Model
{
/**
* Survey constructor.
*
*
* @param array $attributes
*/
public function __construct(array $attributes = [])
Expand All @@ -19,7 +19,7 @@ public function __construct(array $attributes = [])

parent::__construct($attributes);
}

/**
* The attributes that are mass assignable.
*
Expand Down
12 changes: 6 additions & 6 deletions src/SurveyServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down Expand Up @@ -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');
}
}
Expand Down
2 changes: 1 addition & 1 deletion tests/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down

0 comments on commit 387ac06

Please sign in to comment.