Skip to content

Commit 57d6662

Browse files
committed
Fix CS errors
1 parent 6c5326e commit 57d6662

File tree

4 files changed

+14
-14
lines changed

4 files changed

+14
-14
lines changed

src/Middleware/GlideMiddleware.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ public function process(ServerRequestInterface $request, RequestHandlerInterface
124124
$response = $this->_withCacheHeaders(
125125
$response,
126126
$config['cacheTime'],
127-
$modifiedTime
127+
$modifiedTime,
128128
);
129129
}
130130

@@ -165,7 +165,7 @@ protected function _checkSignature(ServerRequestInterface $request): void
165165
try {
166166
SignatureFactory::create($signKey)->validateRequest(
167167
$this->_path,
168-
$request->getQueryParams()
168+
$request->getQueryParams(),
169169
);
170170
} catch (Exception $exception) {
171171
throw new SignatureException($exception->getMessage(), null, $exception);
@@ -299,7 +299,7 @@ protected function _isNotModified(ServerRequestInterface $request, string|int $m
299299
protected function _withCacheHeaders(
300300
ResponseInterface $response,
301301
string $cacheTime,
302-
string|int $modifiedTime
302+
string|int $modifiedTime,
303303
): ResponseInterface {
304304
/** @var int $expire */
305305
$expire = strtotime($cacheTime);
@@ -339,7 +339,7 @@ protected function _handleException(ServerRequestInterface $request, Exception $
339339
{
340340
$event = $this->dispatchEvent(
341341
static::RESPONSE_FAILURE_EVENT,
342-
compact('request', 'exception')
342+
compact('request', 'exception'),
343343
);
344344
$result = $event->getResult();
345345

src/View/Helper/GlideHelper.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public function image(string $path, array $params = [], array $options = []): st
5959
{
6060
return $this->Html->image(
6161
$this->url($path, $params + ['_base' => false]),
62-
$options
62+
$options,
6363
);
6464
}
6565

@@ -104,7 +104,7 @@ public function urlBuilder(?UrlBuilder $urlBuilder = null): UrlBuilder
104104

105105
$this->_urlBuilder = UrlBuilderFactory::create(
106106
$config['baseUrl'],
107-
$config['secureUrls'] ? ($config['signKey'] ?: Security::getSalt()) : null
107+
$config['secureUrls'] ? ($config['signKey'] ?: Security::getSalt()) : null,
108108
);
109109
}
110110

tests/TestCase/Middleware/GlideMiddlewareTest.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public function setUp(): void
3737

3838
$this->request = ServerRequestFactory::fromGlobals(
3939
['REQUEST_URI' => '/images/cake-logo.png'],
40-
['w' => '100']
40+
['w' => '100'],
4141
);
4242
$this->handler = new TestRequestHandler();
4343

@@ -63,7 +63,7 @@ public function testServerCallable()
6363
$config = $this->config;
6464
$config['server'] = function () {
6565
return ServerFactory::create(
66-
$this->config['server'] + ['base_url' => '/images']
66+
$this->config['server'] + ['base_url' => '/images'],
6767
);
6868
};
6969

@@ -81,7 +81,7 @@ public function testAllowedParams()
8181

8282
$request = ServerRequestFactory::fromGlobals(
8383
['REQUEST_URI' => '/images/cake-logo.png'],
84-
['w' => '100', 'foo' => 'bar']
84+
['w' => '100', 'foo' => 'bar'],
8585
);
8686

8787
$middleware = new GlideMiddleware($this->config);
@@ -108,7 +108,7 @@ public function testOriginalPassThrough()
108108
$this->assertNotSame(
109109
$fileSize,
110110
(int)$headers['Content-Length'][0],
111-
'Content length shouldnt be same as original filesize since glide always generates new file.'
111+
'Content length shouldnt be same as original filesize since glide always generates new file.',
112112
);
113113

114114
exec('rm -rf ' . TMP . 'cache/cake-logo.png');
@@ -143,7 +143,7 @@ public function testSecureUrl()
143143

144144
$request = ServerRequestFactory::fromGlobals(
145145
['REQUEST_URI' => '/images/cake%20logo.png'],
146-
['w' => 100, 's' => $sig]
146+
['w' => 100, 's' => $sig],
147147
);
148148

149149
$middleware = new GlideMiddleware($this->config);
@@ -169,7 +169,7 @@ public function testCache()
169169
'REQUEST_URI' => '/images/cake-logo.png',
170170
'HTTP_IF_MODIFIED_SINCE' => $headers['Last-Modified'][0],
171171
],
172-
['w' => '100']
172+
['w' => '100'],
173173
);
174174

175175
$middleware = new GlideMiddleware($this->config);

tests/TestCase/View/Helper/GlideHelperTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public function testUrl()
3232
$this->assertEquals('/images/logo.png?w=100', $result);
3333

3434
$this->helper->getView()->setRequest(
35-
$this->helper->getView()->getRequest()->withAttribute('webroot', '/subfolder/')
35+
$this->helper->getView()->getRequest()->withAttribute('webroot', '/subfolder/'),
3636
);
3737
$result = $this->helper->url('logo.png', ['w' => 100]);
3838
$this->assertEquals('/subfolder/images/logo.png?w=100', $result);
@@ -58,7 +58,7 @@ public function testImage()
5858

5959
Router::setRequest(
6060
$this->helper->getView()->getRequest()
61-
->withAttribute('webroot', '/subfolder/')
61+
->withAttribute('webroot', '/subfolder/'),
6262
);
6363
$result = $this->helper->image('logo.png', ['w' => 100], ['width' => 100]);
6464
$this->assertHtml([

0 commit comments

Comments
 (0)