@@ -14,7 +14,7 @@ |
||
| 14 | 14 | */ |
| 15 | 15 | public function up() |
| 16 | 16 | { |
| 17 | - Schema::create('tech_tip_types', function (Blueprint $table) { |
|
| 17 | + Schema::create('tech_tip_types', function(Blueprint $table) { |
|
| 18 | 18 | $table->bigIncrements('tip_type_id'); |
| 19 | 19 | $table->text('description'); |
| 20 | 20 | $table->timestamps(); |
@@ -59,7 +59,7 @@ |
||
| 59 | 59 | return [ |
| 60 | 60 | // |
| 61 | 61 | 'type' => 'warning', |
| 62 | - 'message' => 'New Tech Tip Created - ' . $this->details->subject, |
|
| 62 | + 'message' => 'New Tech Tip Created - '.$this->details->subject, |
|
| 63 | 63 | 'link' => url(route( |
| 64 | 64 | 'tip.details', |
| 65 | 65 | [ |
@@ -48,7 +48,7 @@ |
||
| 48 | 48 | // Verify that the upload is valid and being processed |
| 49 | 49 | if($receiver->isUploaded() === false) |
| 50 | 50 | { |
| 51 | - Log::error('Upload File Missing - ' . |
|
| 51 | + Log::error('Upload File Missing - '. |
|
| 52 | 52 | /** @scrutinizer ignore-type */ |
| 53 | 53 | $request->toArray()); |
| 54 | 54 | throw new UploadMissingFileException(); |
@@ -10,7 +10,7 @@ discard block |
||
| 10 | 10 | use SoftDeletes; |
| 11 | 11 | |
| 12 | 12 | protected $primaryKey = 'tip_id'; |
| 13 | - protected $fillable = ['user_id', 'subject', 'tip_type_id', 'description', 'created_at']; // ToDo: Remove Created_at - future build |
|
| 13 | + protected $fillable = ['user_id', 'subject', 'tip_type_id', 'description', 'created_at']; // ToDo: Remove Created_at - future build |
|
| 14 | 14 | protected $hidden = ['public', 'user_id', 'tip_type_id']; |
| 15 | 15 | protected $casts = [ |
| 16 | 16 | 'created_at' => 'datetime:M d, Y', |
@@ -19,7 +19,7 @@ discard block |
||
| 19 | 19 | |
| 20 | 20 | public function systemTypes() |
| 21 | 21 | { |
| 22 | - return $this->hasManyThrough('App\SystemTypes', 'App\TechTipSystems', 'tip_id', 'sys_id', 'tip_id', 'sys_id'); |
|
| 22 | + return $this->hasManyThrough('App\SystemTypes', 'App\TechTipSystems', 'tip_id', 'sys_id', 'tip_id', 'sys_id'); |
|
| 23 | 23 | } |
| 24 | 24 | |
| 25 | 25 | public function user() |
@@ -25,14 +25,14 @@ |
||
| 25 | 25 | public function boot() |
| 26 | 26 | { |
| 27 | 27 | // Service provider to customize form inputs |
| 28 | - Form::component('bsText', 'components.form.text', ['name', 'label', 'value' => null, 'attributes' => []]); |
|
| 28 | + Form::component('bsText', 'components.form.text', ['name', 'label', 'value' => null, 'attributes' => []]); |
|
| 29 | 29 | Form::component('bsPassword', 'components.form.password', ['name', 'label', 'value' => null, 'attributes' => []]); |
| 30 | - Form::component('bsNumber', 'components.form.number', ['name', 'label', 'value' => null, 'attributes' => []]); |
|
| 31 | - Form::component('bsEmail', 'components.form.email', ['name', 'label', 'value' => null, 'attributes' => []]); |
|
| 32 | - Form::component('bsDate', 'components.form.date', ['name', 'label', 'value' => null, 'attributes' => []]); |
|
| 30 | + Form::component('bsNumber', 'components.form.number', ['name', 'label', 'value' => null, 'attributes' => []]); |
|
| 31 | + Form::component('bsEmail', 'components.form.email', ['name', 'label', 'value' => null, 'attributes' => []]); |
|
| 32 | + Form::component('bsDate', 'components.form.date', ['name', 'label', 'value' => null, 'attributes' => []]); |
|
| 33 | 33 | Form::component('bsTextarea', 'components.form.textarea', ['name', 'label', 'value' => null, 'attributes' => []]); |
| 34 | 34 | Form::component('bsCheckbox', 'components.form.checkbox', ['name', 'label', 'value' => 'on', 'checked' => false, 'attributes' => []]); |
| 35 | - Form::component('bsSelect', 'components.form.select', ['name', 'label', 'list', 'selected' => null, 'attributes' => []]); |
|
| 35 | + Form::component('bsSelect', 'components.form.select', ['name', 'label', 'list', 'selected' => null, 'attributes' => []]); |
|
| 36 | 36 | |
| 37 | 37 | // Custom Submit button |
| 38 | 38 | Form::component('bsSubmit', 'components.form.submit', ['name']); |
@@ -4,7 +4,7 @@ |
||
| 4 | 4 | |
| 5 | 5 | use App\TechTipFiles; |
| 6 | 6 | |
| 7 | -$factory->define(TechTipFiles::class, function () { |
|
| 7 | +$factory->define(TechTipFiles::class, function() { |
|
| 8 | 8 | return [ |
| 9 | 9 | 'tip_id' => factory(App\TechTips::class)->create()->tip_id, |
| 10 | 10 | 'file_id' => factory(App\Files::class)->create()->file_id, |
@@ -4,7 +4,7 @@ |
||
| 4 | 4 | |
| 5 | 5 | use App\TechTipSystems; |
| 6 | 6 | |
| 7 | -$factory->define(TechTipSystems::class, function () { |
|
| 7 | +$factory->define(TechTipSystems::class, function() { |
|
| 8 | 8 | return [ |
| 9 | 9 | 'tip_id' => factory(App\TechTips::class)->create()->tip_id, |
| 10 | 10 | 'sys_id' => factory(App\SystemTypes::class)->create()->sys_id, |
@@ -5,7 +5,7 @@ |
||
| 5 | 5 | use App\TechTips; |
| 6 | 6 | use Faker\Generator as Faker; |
| 7 | 7 | |
| 8 | -$factory->define(TechTips::class, function (Faker $faker) { |
|
| 8 | +$factory->define(TechTips::class, function(Faker $faker) { |
|
| 9 | 9 | return [ |
| 10 | 10 | 'user_id' => factory(App\User::class)->create()->user_id, |
| 11 | 11 | 'public' => 0, |
@@ -5,7 +5,7 @@ |
||
| 5 | 5 | use App\CustomerFileTypes; |
| 6 | 6 | use Faker\Generator as Faker; |
| 7 | 7 | |
| 8 | -$factory->define(CustomerFileTypes::class, function (Faker $faker) { |
|
| 8 | +$factory->define(CustomerFileTypes::class, function(Faker $faker) { |
|
| 9 | 9 | return [ |
| 10 | 10 | 'description' => $faker->unique()->name(), |
| 11 | 11 | ]; |