Completed
Push — master ( 4ce5b3...df9cc9 )
by MeWebStudio - Muharrem
10:18 queued 08:42
created
src/Captcha.php 1 patch
Indentation   +42 added lines, -42 removed lines patch added patch discarded remove patch
@@ -277,9 +277,9 @@  discard block
 block discarded – undo
277 277
         }
278 278
 
279 279
         return $api ? [
280
-	        'sensitive' => $generator['sensitive'],
281
-	        'key'       => $generator['key'],
282
-        	'img'       => $this->image->encode('data-url')->encoded
280
+            'sensitive' => $generator['sensitive'],
281
+            'key'       => $generator['key'],
282
+            'img'       => $this->image->encode('data-url')->encoded
283 283
         ] : $this->image->response('png', $this->quality);
284 284
     }
285 285
 
@@ -317,9 +317,9 @@  discard block
 block discarded – undo
317 317
         ]);
318 318
 
319 319
         return [
320
-        	'value'     => $bag,
321
-	        'sensitive' => $this->sensitive,
322
-	        'key'       => $hash
320
+            'value'     => $bag,
321
+            'sensitive' => $this->sensitive,
322
+            'key'       => $hash
323 323
         ];
324 324
     }
325 325
 
@@ -419,42 +419,42 @@  discard block
 block discarded – undo
419 419
         return $this->image;
420 420
     }
421 421
 
422
-	/**
423
-	 * Captcha check
424
-	 *
425
-	 * @param $value
426
-	 * @return bool
427
-	 */
428
-	public function check($value)
429
-	{
430
-		if ( ! $this->session->has('captcha'))
431
-		{
432
-			return false;
433
-		}
434
-
435
-		$key = $this->session->get('captcha.key');
436
-		$sensitive = $this->session->get('captcha.sensitive');
437
-
438
-		if ( ! $sensitive)
439
-		{
440
-			$value = $this->str->lower($value);
441
-		}
442
-
443
-		$this->session->remove('captcha');
444
-
445
-		return $this->hasher->check($value, $key);
446
-	}
447
-
448
-	/**
449
-	 * Captcha check
450
-	 *
451
-	 * @param $value
452
-	 * @return bool
453
-	 */
454
-	public function check_api($value, $key)
455
-	{
456
-		return $this->hasher->check($value, $key);
457
-	}
422
+    /**
423
+     * Captcha check
424
+     *
425
+     * @param $value
426
+     * @return bool
427
+     */
428
+    public function check($value)
429
+    {
430
+        if ( ! $this->session->has('captcha'))
431
+        {
432
+            return false;
433
+        }
434
+
435
+        $key = $this->session->get('captcha.key');
436
+        $sensitive = $this->session->get('captcha.sensitive');
437
+
438
+        if ( ! $sensitive)
439
+        {
440
+            $value = $this->str->lower($value);
441
+        }
442
+
443
+        $this->session->remove('captcha');
444
+
445
+        return $this->hasher->check($value, $key);
446
+    }
447
+
448
+    /**
449
+     * Captcha check
450
+     *
451
+     * @param $value
452
+     * @return bool
453
+     */
454
+    public function check_api($value, $key)
455
+    {
456
+        return $this->hasher->check($value, $key);
457
+    }
458 458
 
459 459
     /**
460 460
      * Generate captcha image source
Please login to merge, or discard this patch.