Passed
Branch developer (61f44f)
by Mariusz
03:54
created
lib/Layout/LineBox.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -189,7 +189,7 @@
 block discarded – undo
189 189
 	 */
190 190
 	public function removeWhiteSpaces()
191 191
 	{
192
-		$this->iterateChildren(function ($child) {
192
+		$this->iterateChildren(function($child) {
193 193
 			if ($child->containContent()) {
194 194
 				$child->setForMeasurement(true);
195 195
 
Please login to merge, or discard this patch.
lib/Math.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
 			return bcsub($numbers[0], $numbers[1], static::$scale);
91 91
 		}
92 92
 		$result = $numbers[0];
93
-		for ($i = 1,$len = \count($numbers); $i < $len; ++$i) {
93
+		for ($i = 1, $len = \count($numbers); $i < $len; ++$i) {
94 94
 			$result = bcsub($result, $numbers[$i], static::$scale);
95 95
 		}
96 96
 
@@ -136,7 +136,7 @@  discard block
 block discarded – undo
136 136
 			return '0';
137 137
 		}
138 138
 		$result = $numbers[0];
139
-		for ($i = 1,$len = \count($numbers); $i < $len; ++$i) {
139
+		for ($i = 1, $len = \count($numbers); $i < $len; ++$i) {
140 140
 			if ((float) $numbers[$i] === (float) 0) {
141 141
 				return '0';
142 142
 			}
@@ -186,7 +186,7 @@  discard block
 block discarded – undo
186 186
 	public static function min(string ...$numbers)
187 187
 	{
188 188
 		$result = $numbers[0];
189
-		for ($i = 1,$len = \count($numbers); $i < $len; ++$i) {
189
+		for ($i = 1, $len = \count($numbers); $i < $len; ++$i) {
190 190
 			$result = 1 === bccomp($result, $numbers[$i], static::$scale) ? $numbers[$i] : $result;
191 191
 		}
192 192
 
Please login to merge, or discard this patch.
examples/SimpleNestedDiv.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -3,8 +3,8 @@
 block discarded – undo
3 3
 $loader = require '../vendor/autoload.php';
4 4
 $files = ['SimpleNestedDiv'];
5 5
 foreach ($files as $file) {
6
-    $document = (new YetiForcePDF\Document())->init();
7
-    $document->loadHtml(file_get_contents($file . '.html'));
8
-    $pdfFile = $document->render();
9
-    file_put_contents($file . '.pdf', $pdfFile);
6
+	$document = (new YetiForcePDF\Document())->init();
7
+	$document->loadHtml(file_get_contents($file . '.html'));
8
+	$pdfFile = $document->render();
9
+	file_put_contents($file . '.pdf', $pdfFile);
10 10
 }
Please login to merge, or discard this patch.
examples/Pages.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -3,8 +3,8 @@
 block discarded – undo
3 3
 $loader = require '../vendor/autoload.php';
4 4
 $files = ['Pages'];
5 5
 foreach ($files as $file) {
6
-    $document = (new YetiForcePDF\Document())->init();
7
-    $document->loadHtml(file_get_contents($file . '.html'));
8
-    $pdfFile = $document->render();
9
-    file_put_contents($file . '.pdf', $pdfFile);
6
+	$document = (new YetiForcePDF\Document())->init();
7
+	$document->loadHtml(file_get_contents($file . '.html'));
8
+	$pdfFile = $document->render();
9
+	file_put_contents($file . '.pdf', $pdfFile);
10 10
 }
Please login to merge, or discard this patch.
examples/LoremIpsum.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -7,6 +7,6 @@
 block discarded – undo
7 7
 	$document->loadHtml(file_get_contents($file . '.html'));
8 8
 	$time = microtime(true);
9 9
 	$pdfFile = $document->render();
10
-	echo microtime(true) -$time;
10
+	echo microtime(true) - $time;
11 11
 	file_put_contents($file . '.pdf', $pdfFile);
12 12
 }
Please login to merge, or discard this patch.
examples/HeaderFooter.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -3,8 +3,8 @@
 block discarded – undo
3 3
 $loader = require '../vendor/autoload.php';
4 4
 $files = ['HeaderFooter'];
5 5
 foreach ($files as $file) {
6
-    $document = (new YetiForcePDF\Document())->init();
7
-    $document->loadHtml(file_get_contents($file . '.html'));
8
-    $pdfFile = $document->render();
9
-    file_put_contents($file . '.pdf', $pdfFile);
6
+	$document = (new YetiForcePDF\Document())->init();
7
+	$document->loadHtml(file_get_contents($file . '.html'));
8
+	$pdfFile = $document->render();
9
+	file_put_contents($file . '.pdf', $pdfFile);
10 10
 }
Please login to merge, or discard this patch.
examples/SpanTable.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -3,8 +3,8 @@
 block discarded – undo
3 3
 $loader = require '../vendor/autoload.php';
4 4
 $files = ['SpanTable'];
5 5
 foreach ($files as $file) {
6
-    $document = (new YetiForcePDF\Document())->init();
7
-    $document->loadHtml(file_get_contents($file . '.html'));
8
-    $pdfFile = $document->render();
9
-    file_put_contents($file . '.pdf', $pdfFile);
6
+	$document = (new YetiForcePDF\Document())->init();
7
+	$document->loadHtml(file_get_contents($file . '.html'));
8
+	$pdfFile = $document->render();
9
+	file_put_contents($file . '.pdf', $pdfFile);
10 10
 }
Please login to merge, or discard this patch.
examples/LongTable.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -7,6 +7,6 @@
 block discarded – undo
7 7
 	$document->loadHtml(file_get_contents($file . '.html'));
8 8
 	$time = microtime(true);
9 9
 	$pdfFile = $document->render();
10
-	echo microtime(true) -$time;
10
+	echo microtime(true) - $time;
11 11
 	file_put_contents($file . '.pdf', $pdfFile);
12 12
 }
Please login to merge, or discard this patch.
examples/Image.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -3,8 +3,8 @@
 block discarded – undo
3 3
 $loader = require '../vendor/autoload.php';
4 4
 $files = ['Image'];
5 5
 foreach ($files as $file) {
6
-    $document = (new YetiForcePDF\Document())->init();
7
-    $document->loadHtml(file_get_contents($file . '.html'));
8
-    $pdfFile = $document->render();
9
-    file_put_contents($file . '.pdf', $pdfFile);
6
+	$document = (new YetiForcePDF\Document())->init();
7
+	$document->loadHtml(file_get_contents($file . '.html'));
8
+	$pdfFile = $document->render();
9
+	file_put_contents($file . '.pdf', $pdfFile);
10 10
 }
Please login to merge, or discard this patch.