Skip to content

Commit d31c28a

Browse files
committed
CodeStyler
1 parent 3fb0603 commit d31c28a

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

src/MandelbrotSet.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* Calculate and render Mandelbrot set as image to file.
99
* Implementation is inspired by Pavol Hejny, https://www.pavolhejny.com/.
1010
*/
11-
class MandelbrotSet
11+
final class MandelbrotSet
1212
{
1313

1414
/** @var string */
@@ -166,7 +166,7 @@ public function renderAll(int $width = 300, int $height = 300): void
166166

167167
echo '<td bgcolor="' . $bgColor . '"><img src="' . $this->loadImage($request) . '" border="0"></td>';
168168
} elseif ($d1 === false && $d2 !== false) { // Zobrazení popisku osy
169-
echo('<td valign="middle">');
169+
echo '<td valign="middle">';
170170

171171
if ((int) round($d2) === (int) $d2) {
172172
echo '<h2>^' . $d2 . '&nbsp;</h2>';

src/MandelbrotSetRequest.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
use Nette\SmartObject;
99

10-
class MandelbrotSetRequest
10+
final class MandelbrotSetRequest
1111
{
1212
use SmartObject;
1313

@@ -50,10 +50,7 @@ class MandelbrotSetRequest
5050
* @param float $minY
5151
* @param float $maxY
5252
*/
53-
public function __construct(
54-
int $deltaA, int $deltaB, int $width = 300, $height = 300, int $iterations = 18,
55-
float $minX = -2, float $maxX = 1, float $minY = -1, float $maxY = 1
56-
)
53+
public function __construct(int $deltaA, int $deltaB, int $width = 300, $height = 300, int $iterations = 18, float $minX = -2, float $maxX = 1, float $minY = -1, float $maxY = 1)
5754
{
5855
$this->width = $width;
5956
$this->height = $height;

0 commit comments

Comments
 (0)