Passed
Push — 2.x ( fcd99a...ad8aea )
by Terry
01:51
created
src/Firewall/Captcha/ImageCaptcha.php 1 patch
Spacing   +5 added lines, -7 removed lines patch added patch discarded remove patch
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
             'colors'       => [
101 101
                 'background' => [255, 255, 255],
102 102
                 'border'     => [153, 200, 255],
103
-                'text'       => [51,  153, 255],
103
+                'text'       => [51, 153, 255],
104 104
                 'grid'       => [153, 200, 255]
105 105
             ]
106 106
         ];
@@ -319,14 +319,12 @@  discard block
 block discarded – undo
319 319
     {
320 320
         // Determine angle and position.
321 321
         $angle = ($this->length >= 6) ?
322
-            mt_rand(-($this->length - 6), ($this->length - 6)) :
323
-            0;
322
+            mt_rand(-($this->length - 6), ($this->length - 6)) : 0;
324 323
 
325 324
         $xAxis = mt_rand(6, (360 / $this->length) - 16);
326 325
 
327 326
         $yAxis = ($angle >= 0) ?
328
-            mt_rand($imgHeight, $imgWidth) :
329
-            mt_rand(6, $imgHeight);
327
+            mt_rand($imgHeight, $imgWidth) : mt_rand(6, $imgHeight);
330 328
 
331 329
         // Create the spiral pattern.
332 330
         $theta = 1;
@@ -369,7 +367,7 @@  discard block
 block discarded – undo
369 367
         $y = 0;
370 368
 
371 369
         for ($i = 0; $i < $this->length; $i++) {
372
-            $y = mt_rand(0 , $imgHeight / 2);
370
+            $y = mt_rand(0, $imgHeight / 2);
373 371
             imagestring($this->im, 5, $x, $y, $this->word[$i], $textColor);
374 372
             $x += ($this->properties['font_spacing'] * 2);
375 373
         }
@@ -398,7 +396,7 @@  discard block
 block discarded – undo
398 396
     private function getImageBase64Content(): string
399 397
     {
400 398
         // Generate image in base64 string.
401
-        ob_start ();
399
+        ob_start();
402 400
 
403 401
         if (function_exists('imagejpeg')) {
404 402
             $this->imageType = 'jpeg';
Please login to merge, or discard this patch.
src/Firewall/Firewall/Captcha/CaptchaFactory.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
50 50
 
51 51
         // If the class doesn't exist.
52 52
         if (!file_exists(__DIR__ . '/' . self::getCamelCase($type) . '.php')) {
53
-   //         return false;
53
+    //         return false;
54 54
         }
55 55
 
56 56
         return true;
Please login to merge, or discard this patch.