@@ -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
@@ -162,7 +162,7 @@ public function verify(Request $request)
162162 $ code = $ request ->v_input_1 .$ request ->v_input_2 .$ request ->v_input_3 .$ request ->v_input_4 ;
163163 $ validCode = $ this ->_twoStepAuth ->authCode ;
164164
165- if ($ validCode != $ code ) {
165+ if ($ validCode !== $ code ) {
166166 $ returnData = $ this ->invalidCodeReturnData ();
167167
168168 return response ()->json ($ returnData , 418 );
@@ -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
0 commit comments