Skip to content

Commit 5c0152d

Browse files
authored
Merge pull request #21 from jeremykenedy/analysis-O32K9J
Apply fixes from StyleCI
2 parents cd6527d + afaef9c commit 5c0152d

File tree

4 files changed

+28
-19
lines changed

4 files changed

+28
-19
lines changed

src/App/Http/Controllers/TwoStepController.php

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -149,11 +149,12 @@ public function verify(Request $request)
149149

150150
if ($request->ajax()) {
151151
$validator = Validator::make(
152-
$request->all(), [
153-
'v_input_1' => 'required|min:1|max:1',
154-
'v_input_2' => 'required|min:1|max:1',
155-
'v_input_3' => 'required|min:1|max:1',
156-
'v_input_4' => 'required|min:1|max:1',
152+
$request->all(),
153+
[
154+
'v_input_1' => 'required|min:1|max:1',
155+
'v_input_2' => 'required|min:1|max:1',
156+
'v_input_3' => 'required|min:1|max:1',
157+
'v_input_4' => 'required|min:1|max:1',
157158
]
158159
);
159160

src/Laravel2stepServiceProvider.php

Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -51,38 +51,44 @@ private function publishFiles()
5151

5252
$this->publishes(
5353
[
54-
__DIR__.'/config/laravel2step.php' => base_path('config/laravel2step.php'),
55-
], $publishTag
54+
__DIR__.'/config/laravel2step.php' => base_path('config/laravel2step.php'),
55+
],
56+
$publishTag
5657
);
5758

5859
$this->publishes(
5960
[
60-
__DIR__.'/database/migrations/' => base_path('/database/migrations'),
61-
], $publishTag
61+
__DIR__.'/database/migrations/' => base_path('/database/migrations'),
62+
],
63+
$publishTag
6264
);
6365

6466
$this->publishes(
6567
[
66-
__DIR__.'/public/css' => public_path('css/laravel2step'),
67-
], $publishTag
68+
__DIR__.'/public/css' => public_path('css/laravel2step'),
69+
],
70+
$publishTag
6871
);
6972

7073
$this->publishes(
7174
[
72-
__DIR__.'/resources/assets/scss' => resource_path('assets/scss/laravel2step'),
73-
], $publishTag
75+
__DIR__.'/resources/assets/scss' => resource_path('assets/scss/laravel2step'),
76+
],
77+
$publishTag
7478
);
7579

7680
$this->publishes(
7781
[
78-
__DIR__.'/resources/views' => resource_path('views/vendor/laravel2step'),
79-
], $publishTag
82+
__DIR__.'/resources/views' => resource_path('views/vendor/laravel2step'),
83+
],
84+
$publishTag
8085
);
8186

8287
$this->publishes(
8388
[
84-
__DIR__.'/resources/lang' => base_path('resources/lang/vendor/laravel2step'),
85-
], $publishTag
89+
__DIR__.'/resources/lang' => base_path('resources/lang/vendor/laravel2step'),
90+
],
91+
$publishTag
8692
);
8793
}
8894
}

src/database/migrations/2017_12_09_070937_create_two_step_auth_table.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ public function up()
2121

2222
if (!$tableCheck) {
2323
Schema::connection($connection)->create(
24-
$table, function (Blueprint $table) {
24+
$table,
25+
function (Blueprint $table) {
2526
$table->increments('id');
2627
$table->unsignedBigInteger('userId')->unsigned()->index();
2728
$table->foreign('userId')->references('id')->on('users')->onDelete('cascade');

src/routes/web.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
*/
1111

1212
Route::group(
13-
['prefix' => 'verification', 'as' => 'laravel2step::', 'namespace' => 'jeremykenedy\laravel2step\App\Http\Controllers', 'middleware' => ['web']], function () {
13+
['prefix' => 'verification', 'as' => 'laravel2step::', 'namespace' => 'jeremykenedy\laravel2step\App\Http\Controllers', 'middleware' => ['web']],
14+
function () {
1415
Route::get('/needed', ['uses' => 'TwoStepController@showVerification'])->name('verificationNeeded');
1516
Route::post('/verify', ['uses' => 'TwoStepController@verify'])->name('verify');
1617
Route::post('/resend', ['uses' => 'TwoStepController@resend'])->name('resend');

0 commit comments

Comments
 (0)