Skip to content

Commit 170bc4a

Browse files
authored
Merge pull request #16 from jeremykenedy/analysis-YjaZrj
Apply fixes from StyleCI
2 parents 0db109a + d832167 commit 170bc4a

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/App/Http/Controllers/TwoStepController.php

+5-5
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ private function invalidCodeReturnData($errors = null)
8484
*/
8585
public function showVerification()
8686
{
87-
if (! config('laravel2step.laravel2stepEnabled')) {
87+
if (!config('laravel2step.laravel2stepEnabled')) {
8888
abort(404);
8989
}
9090

@@ -112,12 +112,12 @@ public function showVerification()
112112
$now = new Carbon();
113113
$sentTimestamp = $twoStepAuth->requestDate;
114114

115-
if (! $twoStepAuth->authCode) {
115+
if (!$twoStepAuth->authCode) {
116116
$twoStepAuth->authCode = $this->generateCode();
117117
$twoStepAuth->save();
118118
}
119119

120-
if (! $sentTimestamp) {
120+
if (!$sentTimestamp) {
121121
$this->sendVerificationCodeNotification($twoStepAuth);
122122
} else {
123123
$timeBuffer = config('laravel2step.laravel2stepTimeResetBufferSeconds');
@@ -141,7 +141,7 @@ public function showVerification()
141141
*/
142142
public function verify(Request $request)
143143
{
144-
if (! config('laravel2step.laravel2stepEnabled')) {
144+
if (!config('laravel2step.laravel2stepEnabled')) {
145145
abort(404);
146146
}
147147

@@ -188,7 +188,7 @@ public function verify(Request $request)
188188
*/
189189
public function resend()
190190
{
191-
if (! config('laravel2step.laravel2stepEnabled')) {
191+
if (!config('laravel2step.laravel2stepEnabled')) {
192192
abort(404);
193193
}
194194

src/database/migrations/2017_12_09_070937_create_two_step_auth_table.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public function up()
1919
$table = $twoStepAuth->getTableName();
2020
$tableCheck = Schema::connection($connection)->hasTable($table);
2121

22-
if (! $tableCheck) {
22+
if (!$tableCheck) {
2323
Schema::connection($connection)->create($table, function (Blueprint $table) {
2424
$table->increments('id');
2525
$table->unsignedBigInteger('userId')->unsigned()->index();

0 commit comments

Comments
 (0)