Skip to content

Commit 754e8c9

Browse files
Merge pull request #7 from AidynMakhataev/analysis-8LVJWk
Apply fixes from StyleCI
2 parents 932edc4 + cb4b3e9 commit 754e8c9

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

config/survey-manager.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@
7676
'haveCommercialLicense' => false,
7777
],
7878

79-
8079
/*
8180
|--------------------------------------------------------------------------
8281
| SurveyJS Custom Widgets
@@ -106,6 +105,6 @@
106105

107106
'autocomplete' => false,
108107

109-
'bootstrapslider' => false
110-
]
108+
'bootstrapslider' => false,
109+
],
111110
];

src/app/Models/Survey.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,12 @@ public static function boot()
3030
$latestSlug = static::whereRaw("slug = '$survey->slug' or slug LIKE '$survey->slug-%'")
3131
->latest('id')
3232
->value('slug');
33-
if($latestSlug) {
33+
if ($latestSlug) {
3434
$pieces = explode('-', $latestSlug);
3535

3636
$number = intval(end($pieces));
3737

38-
$survey->slug .= '-' . ($number + 1);
38+
$survey->slug .= '-'.($number + 1);
3939
}
4040
});
4141
}

0 commit comments

Comments
 (0)