Skip to content

Commit

Permalink
Merge pull request #225 from linuxserver/revert-217-fix_reported_errors
Browse files Browse the repository at this point in the history
Revert "Changed from variable assignment to comparison"
  • Loading branch information
KodeStar authored Jun 22, 2018
2 parents 0184c96 + cafe386 commit c8a6c89
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions database/seeds/SettingsSeeder.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class SettingsSeeder extends Seeder
public function run()
{
// Groups
if(!$setting_group == SettingGroup::find(1)) {
if(!$setting_group = SettingGroup::find(1)) {
$setting_group = new SettingGroup;
$setting_group->id = 1;
$setting_group->title = 'app.settings.system';
Expand All @@ -24,7 +24,7 @@ public function run()
$setting_group->title = 'app.settings.system';
$setting_group->save();
}
if(!$setting_group == SettingGroup::find(2)) {
if(!$setting_group = SettingGroup::find(2)) {
$setting_group = new SettingGroup;
$setting_group->id = 2;
$setting_group->title = 'app.settings.appearance';
Expand All @@ -34,7 +34,7 @@ public function run()
$setting_group->title = 'app.settings.appearance';
$setting_group->save();
}
if(!$setting_group == SettingGroup::find(3)) {
if(!$setting_group = SettingGroup::find(3)) {
$setting_group = new SettingGroup;
$setting_group->id = 3;
$setting_group->title = 'app.settings.miscellaneous';
Expand All @@ -45,7 +45,7 @@ public function run()
$setting_group->save();
}

if($version == Setting::find(1)) {
if($version = Setting::find(1)) {
$version->label = 'app.settings.version';
$version->value = config('app.version');
$version->save();
Expand All @@ -61,7 +61,7 @@ public function run()
$setting->save();
}

if(!$setting == Setting::find(2)) {
if(!$setting = Setting::find(2)) {
$setting = new Setting;
$setting->id = 2;
$setting->group_id = 2;
Expand All @@ -73,7 +73,7 @@ public function run()
$setting->label = 'app.settings.background_image';
$setting->save();
}
if(!$setting == Setting::find(3)) {
if(!$setting = Setting::find(3)) {
$setting = new Setting;
$setting->id = 3;
$setting->group_id = 3;
Expand All @@ -94,7 +94,7 @@ public function run()
'startpage' => 'app.options.startpage',
]);

if(!$setting == Setting::find(4)) {
if(!$setting = Setting::find(4)) {

$setting = new Setting;
$setting->id = 4;
Expand Down Expand Up @@ -123,7 +123,7 @@ public function run()
'es' => 'Español (Spanish)',
'tr' => 'Türkçe (Turkish)',
]);
if($languages == Setting::find(5)) {
if($languages = Setting::find(5)) {
$languages->options = $language_options;
$languages->save();
} else {
Expand All @@ -144,7 +144,7 @@ public function run()
'_blank' => 'app.settings.window_target.new',
]);

if(!$setting == Setting::find(7)) {
if(!$setting = Setting::find(7)) {

$setting = new Setting;
$setting->id = 7;
Expand Down

0 comments on commit c8a6c89

Please sign in to comment.