Skip to content

Commit 0dfa39a

Browse files
committed
Merge pull request #114 from michaelmoussa/travis-psr2-fix
Fixes PSR2 errors for php-cs-fixer
2 parents 920de7f + e37c9ae commit 0dfa39a

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

src/AssetManager/Cache/FilePathCache.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public function set($key, $value)
6666
{
6767
$cacheDir = dirname($this->cachedFile());
6868

69-
set_error_handler(function($errno, $errstr) {
69+
set_error_handler(function ($errno, $errstr) {
7070
if ($errstr !== 'mkdir(): File exists') {
7171
throw new \RuntimeException($errstr);
7272
}
@@ -95,7 +95,7 @@ public function set($key, $value)
9595
*/
9696
public function remove($key)
9797
{
98-
set_error_handler(function($errno, $errstr) {
98+
set_error_handler(function ($errno, $errstr) {
9999
throw new \RuntimeException($errstr);
100100
});
101101

src/AssetManager/Service/AssetCacheManager.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public function setCache($path, AssetInterface $asset)
8181
} else {
8282
// @codeCoverageIgnoreStart
8383
$factories = array(
84-
'FilesystemCache' => function($options) {
84+
'FilesystemCache' => function ($options) {
8585
if (empty($options['dir'])) {
8686
throw new Exception\RuntimeException(
8787
'FilesystemCache expected dir entry.'
@@ -90,10 +90,10 @@ public function setCache($path, AssetInterface $asset)
9090
$dir = $options['dir'];
9191
return new Cache\FilesystemCache($dir);
9292
},
93-
'ApcCache' => function($options) {
93+
'ApcCache' => function ($options) {
9494
return new Cache\ApcCache();
9595
},
96-
'FilePathCache' => function($options) use ($path) {
96+
'FilePathCache' => function ($options) use ($path) {
9797
if (empty($options['dir'])) {
9898
throw new Exception\RuntimeException(
9999
'FilePathCache expected dir entry.'

tests/AssetManagerTest/Resolver/CollectionResolverTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ public function testResolvesToNonAsset()
260260
public function testMimeTypesDontMatch()
261261
{
262262
$callbackInvocationCount = 0;
263-
$callback = function() use (&$callbackInvocationCount) {
263+
$callback = function () use (&$callbackInvocationCount) {
264264

265265
$asset1 = new Asset\StringAsset('bacon');
266266
$asset2 = new Asset\StringAsset('eggs');
@@ -375,7 +375,7 @@ public function testTwoCollectionsHasDifferentCacheKey()
375375
public function testSuccessResolve()
376376
{
377377
$callbackInvocationCount = 0;
378-
$callback = function() use (&$callbackInvocationCount) {
378+
$callback = function () use (&$callbackInvocationCount) {
379379

380380
$asset1 = new Asset\StringAsset('bacon');
381381
$asset2 = new Asset\StringAsset('eggs');

tests/AssetManagerTest/Service/AssetManagerTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,7 @@ public function testSetCallbackCache()
424424
$config = array(
425425
'caching' => array(
426426
'asset-path' => array(
427-
'cache' => function($file) {
427+
'cache' => function ($file) {
428428
return new FilePathCache('/tmp', $file);
429429
},
430430
),
@@ -451,7 +451,7 @@ public function testSetCallbackCacheInvalid()
451451
$config = array(
452452
'caching' => array(
453453
'asset-path' => array(
454-
'cache' => function($file) {
454+
'cache' => function ($file) {
455455
return new \stdClass;
456456
},
457457
),

0 commit comments

Comments
 (0)