Skip to content

Commit 99462d0

Browse files
author
Peter Bubelíny
committed
Fix #5, Beautify the tests DemoController::watermarkAction()
1 parent 9c023ba commit 99462d0

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

tests/resources/src/Application/Controller/DemoController.php

+3-4
Original file line numberDiff line numberDiff line change
@@ -98,13 +98,12 @@ public function sharpenAction()
9898
public function watermarkAction()
9999
{
100100
$watermarkPath = __DIR__ . '/../../../data/media/watermark.png';
101-
$image = __DIR__ . '/../../../data/media/test.jpg';
101+
$image = __DIR__ . '/../../../data/media/test.jpg';
102102

103103
$watermarkThumb = $this->thumbnailer->create($watermarkPath);
104-
$watermarkThumb
105-
->resize(100, 100);
104+
$watermarkThumb->resize(100, 100);
106105

107-
$watermark = $this->thumbnailer->createWatermark($watermarkThumb,[30,30]);
106+
$watermark = $this->thumbnailer->createWatermark($watermarkThumb, [30, 30]);
108107
$thumb = $this->thumbnailer->create($image, [], [$watermark]);
109108

110109
$thumb

0 commit comments

Comments
 (0)