Completed
Push — master ( 31899d...1c518a )
by
unknown
20:20 queued 15s
created
tests/lib/Preview/GeneratorTest.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -125,12 +125,12 @@  discard block
 block discarded – undo
125 125
 			->willReturn($previewFolder);
126 126
 
127 127
 		$this->config->method('getSystemValue')
128
-			->willReturnCallback(function ($key, $default) {
128
+			->willReturnCallback(function($key, $default) {
129 129
 				return $default;
130 130
 			});
131 131
 
132 132
 		$this->config->method('getSystemValueInt')
133
-			->willReturnCallback(function ($key, $default) {
133
+			->willReturnCallback(function($key, $default) {
134 134
 				return $default;
135 135
 			});
136 136
 
@@ -152,7 +152,7 @@  discard block
 block discarded – undo
152 152
 			]);
153 153
 
154 154
 		$this->helper->method('getProvider')
155
-			->willReturnCallback(function ($provider) use ($invalidProvider, $validProvider, $unavailableProvider) {
155
+			->willReturnCallback(function($provider) use ($invalidProvider, $validProvider, $unavailableProvider) {
156 156
 				if ($provider === 'wrongProvider') {
157 157
 					$this->fail('Wrongprovider should not be constructed!');
158 158
 				} elseif ($provider === 'brokenProvider') {
@@ -174,7 +174,7 @@  discard block
 block discarded – undo
174 174
 		$image->method('dataMimeType')->willReturn('image/png');
175 175
 
176 176
 		$this->helper->method('getThumbnail')
177
-			->willReturnCallback(function ($provider, $file, $x, $y) use ($invalidProvider, $validProvider, $image) {
177
+			->willReturnCallback(function($provider, $file, $x, $y) use ($invalidProvider, $validProvider, $image) {
178 178
 				if ($provider === $validProvider) {
179 179
 					return $image;
180 180
 				} else {
@@ -330,13 +330,13 @@  discard block
 block discarded – undo
330 330
 		$image->method('dataMimeType')->willReturn('image/png');
331 331
 		$image->method('data')->willReturn($data);
332 332
 
333
-		$image->method('resizeCopy')->willReturnCallback(function ($size) use ($data) {
333
+		$image->method('resizeCopy')->willReturnCallback(function($size) use ($data) {
334 334
 			return $this->getMockImage($size, $size, $data);
335 335
 		});
336
-		$image->method('preciseResizeCopy')->willReturnCallback(function ($width, $height) use ($data) {
336
+		$image->method('preciseResizeCopy')->willReturnCallback(function($width, $height) use ($data) {
337 337
 			return $this->getMockImage($width, $height, $data);
338 338
 		});
339
-		$image->method('cropCopy')->willReturnCallback(function ($x, $y, $width, $height) use ($data) {
339
+		$image->method('cropCopy')->willReturnCallback(function($x, $y, $width, $height) use ($data) {
340 340
 			return $this->getMockImage($width, $height, $data);
341 341
 		});
342 342
 
@@ -411,7 +411,7 @@  discard block
 block discarded – undo
411 411
 
412 412
 		$maxPreview = $this->createMock(ISimpleFile::class);
413 413
 		$maxPreview->method('getName')
414
-			->willReturn($maxX . '-' . $maxY . '-max.png');
414
+			->willReturn($maxX.'-'.$maxY.'-max.png');
415 415
 		$maxPreview->method('getMimeType')
416 416
 			->willReturn('image/png');
417 417
 		$maxPreview->method('getSize')->willReturn(1000);
@@ -419,7 +419,7 @@  discard block
 block discarded – undo
419 419
 		$previewFolder->method('getDirectoryListing')
420 420
 			->willReturn([$maxPreview]);
421 421
 
422
-		$filename = $expectedX . '-' . $expectedY;
422
+		$filename = $expectedX.'-'.$expectedY;
423 423
 		if ($crop) {
424 424
 			$filename .= '-crop';
425 425
 		}
Please login to merge, or discard this patch.