Passed
Push — master ( a30da0...e4b4b5 )
by Brian
11:00
created
src/Options.php 1 patch
Indentation   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -68,15 +68,15 @@  discard block
 block discarded – undo
68 68
     private $chroot;
69 69
 
70 70
     /**
71
-    * Protocol whitelist
72
-    *
73
-    * Protocols and PHP wrappers allowed in URIs, and the validation rules
74
-    * that determine if a resouce may be loaded. Full support is not guaranteed
75
-    * for the protocols/wrappers specified
76
-    * by this array.
77
-    *
78
-    * @var array
79
-    */
71
+     * Protocol whitelist
72
+     *
73
+     * Protocols and PHP wrappers allowed in URIs, and the validation rules
74
+     * that determine if a resouce may be loaded. Full support is not guaranteed
75
+     * for the protocols/wrappers specified
76
+     * by this array.
77
+     *
78
+     * @var array
79
+     */
80 80
     private $allowedProtocols = [
81 81
         "file://" => ["rules" => []],
82 82
         "http://" => ["rules" => []],
@@ -84,10 +84,10 @@  discard block
 block discarded – undo
84 84
     ];
85 85
 
86 86
     /**
87
-    * Operational artifact (log files, temporary files) path validation
88
-    *
89
-    * @var callable
90
-    */
87
+     * Operational artifact (log files, temporary files) path validation
88
+     *
89
+     * @var callable
90
+     */
91 91
     private $artifactPathValidation = null;
92 92
 
93 93
     /**
Please login to merge, or discard this patch.
src/Adapter/GD.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -474,7 +474,7 @@  discard block
 block discarded – undo
474 474
                 $x1, $y1 + $h
475 475
             ];
476 476
             if (version_compare(PHP_VERSION, "8.1.0", "<")) {
477
-                imagepolygon($this->get_image(), $points, count($points)/2, $c);
477
+                imagepolygon($this->get_image(), $points, count($points) / 2, $c);
478 478
             } else {
479 479
                 imagepolygon($this->get_image(), $points, $c);
480 480
             }
@@ -576,13 +576,13 @@  discard block
 block discarded – undo
576 576
 
577 577
         if ($fill) {
578 578
             if (version_compare(PHP_VERSION, "8.1.0", "<")) {
579
-                imagefilledpolygon($this->get_image(), $points, count($points)/2, $c);
579
+                imagefilledpolygon($this->get_image(), $points, count($points) / 2, $c);
580 580
             } else {
581 581
                 imagefilledpolygon($this->get_image(), $points, $c);
582 582
             }
583 583
         } else {
584 584
             if (version_compare(PHP_VERSION, "8.1.0", "<")) {
585
-                imagepolygon($this->get_image(), $points, count($points)/2, $c);
585
+                imagepolygon($this->get_image(), $points, count($points) / 2, $c);
586 586
             } else {
587 587
                 imagepolygon($this->get_image(), $points, $c);
588 588
             }
@@ -838,7 +838,7 @@  discard block
 block discarded – undo
838 838
         $text = mb_encode_numericentity($text, [0x0080, 0xffff, 0, 0xffff], 'UTF-8');
839 839
 
840 840
         // FIXME: word spacing
841
-        list($x1, , $x2) = imagettfbbox($size, 0, $font, $text);
841
+        list($x1,, $x2) = imagettfbbox($size, 0, $font, $text);
842 842
 
843 843
         // Add additional 1pt to prevent text overflow issues
844 844
         return $this->_downscale($x2 - $x1) + 1;
@@ -854,7 +854,7 @@  discard block
 block discarded – undo
854 854
             $font = "";
855 855
         }
856 856
 
857
-        if ( stripos($font, ".ttf") === false ) {
857
+        if (stripos($font, ".ttf") === false) {
858 858
             $font .= ".ttf";
859 859
         }
860 860
 
@@ -898,7 +898,7 @@  discard block
 block discarded – undo
898 898
         $ratio = $this->_dompdf->getOptions()->getFontHeightRatio();
899 899
 
900 900
         // FIXME: word spacing
901
-        list(, $y2, , , , $y1) = imagettfbbox($size, 0, $font, "MXjpqytfhl"); // Test string with ascenders, descenders and caps
901
+        list(, $y2,,,, $y1) = imagettfbbox($size, 0, $font, "MXjpqytfhl"); // Test string with ascenders, descenders and caps
902 902
         return ($y2 - $y1) * $ratio;
903 903
     }
904 904
 
Please login to merge, or discard this patch.