Skip to content

Commit

Permalink
PHP Linting (Pint) - Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
sampoyigi authored and github-actions[bot] committed Feb 29, 2024
1 parent eee6225 commit ac466ae
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

return new class extends Migration {
return new class extends Migration
{
public function up()
{
Schema::table('igniter_frontend_banners', function (Blueprint $table) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

return new class extends Migration {
return new class extends Migration
{
public function up()
{
Schema::table('igniter_frontend_banners', function (Blueprint $table) {
Expand Down
2 changes: 1 addition & 1 deletion src/Http/Controllers/Banners.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public function formValidate($model, $form)
$namedRules = [
['name', 'lang:admin::lang.label_name', 'required|min:2|max:255'],
['code', 'lang:admin::lang.label_code', ['required', 'alpha_dash', 'min:2', 'max:255',
Rule::unique($model->getTable(), 'code')->ignore($model->getKey(), 'banner_id')
Rule::unique($model->getTable(), 'code')->ignore($model->getKey(), 'banner_id'),
]],
['type', 'lang:igniter.frontend::default.banners.label_type', 'required|alpha|max:8'],
['click_url', 'lang:igniter.frontend::default.banners.label_click_url', 'required|url|min:2|max:255'],
Expand Down

0 comments on commit ac466ae

Please sign in to comment.