@@ -98,7 +98,7 @@ |
||
| 98 | 98 | CacheData::PAYLOAD_KEY_SUBTEMPLATES => $cacheData->getSubTemplates(), |
| 99 | 99 | ] |
| 100 | 100 | ); |
| 101 | - $key = sprintf(CacheManager::CACHE_KEY_TEMPLATES, $cacheId); |
|
| 101 | + $key = sprintf(CacheManager::CACHE_KEY_TEMPLATES, $cacheId); |
|
| 102 | 102 | |
| 103 | 103 | $this->cacheBridgeMock->expects($this->once())->method('set')->with($key, $payload, PHP_INT_MAX); |
| 104 | 104 | $this->cacheBridgeMock->expects($this->once())->method('has')->with($key); |
@@ -30,7 +30,7 @@ discard block |
||
| 30 | 30 | ->expects($testCase->any()) |
| 31 | 31 | ->method('translate') |
| 32 | 32 | ->willReturnCallback( |
| 33 | - function ($key) use ($translations) { |
|
| 33 | + function($key) use ($translations) { |
|
| 34 | 34 | if (array_key_exists($key, $translations)) { |
| 35 | 35 | return $translations[$key]; |
| 36 | 36 | } |
@@ -43,7 +43,7 @@ discard block |
||
| 43 | 43 | ->expects($testCase->any()) |
| 44 | 44 | ->method('canTranslate') |
| 45 | 45 | ->willReturnCallback( |
| 46 | - function ($key) use ($translations) { |
|
| 46 | + function($key) use ($translations) { |
|
| 47 | 47 | if ($translations && array_key_exists($key, $translations)) { |
| 48 | 48 | return true; |
| 49 | 49 | } |
@@ -35,7 +35,7 @@ discard block |
||
| 35 | 35 | ->expects($testCase->any()) |
| 36 | 36 | ->method('get') |
| 37 | 37 | ->willReturnCallback( |
| 38 | - function ($key, $defaultValue = null) use ($sessionData) { |
|
| 38 | + function($key, $defaultValue = null) use ($sessionData) { |
|
| 39 | 39 | if (array_key_exists($key, $sessionData)) { |
| 40 | 40 | return $sessionData[$key]; |
| 41 | 41 | } |
@@ -48,7 +48,7 @@ discard block |
||
| 48 | 48 | ->expects($testCase->any()) |
| 49 | 49 | ->method('has') |
| 50 | 50 | ->willReturnCallback( |
| 51 | - function ($key) use ($sessionData) { |
|
| 51 | + function($key) use ($sessionData) { |
|
| 52 | 52 | if (array_key_exists($key, $sessionData)) { |
| 53 | 53 | return true; |
| 54 | 54 | } |
@@ -117,7 +117,7 @@ discard block |
||
| 117 | 117 | |
| 118 | 118 | public function testGetRoleGetsLastSetResource() |
| 119 | 119 | { |
| 120 | - $content = 'foo'; |
|
| 120 | + $content = 'foo'; |
|
| 121 | 121 | $role = 'bar'; |
| 122 | 122 | |
| 123 | 123 | $sut = $this->createNode($content); |
@@ -131,7 +131,7 @@ discard block |
||
| 131 | 131 | |
| 132 | 132 | public function testDisabledItemCastsToEmptyString() |
| 133 | 133 | { |
| 134 | - $content = 'foo'; |
|
| 134 | + $content = 'foo'; |
|
| 135 | 135 | $sut = $this->createNode($content); |
| 136 | 136 | |
| 137 | 137 | $sut->disable(); |
@@ -141,7 +141,7 @@ discard block |
||
| 141 | 141 | |
| 142 | 142 | public function testEnableCanRevertDisabling() |
| 143 | 143 | { |
| 144 | - $content = 'foo'; |
|
| 144 | + $content = 'foo'; |
|
| 145 | 145 | $sut = $this->createNode($content); |
| 146 | 146 | |
| 147 | 147 | $sut->disable(); |
@@ -34,12 +34,12 @@ discard block |
||
| 34 | 34 | |
| 35 | 35 | $sessionData = &$this->sessionData; |
| 36 | 36 | $this->sessionMock->expects($this->any())->method('has')->willReturnCallback( |
| 37 | - function ($key) use ($sessionData) { |
|
| 37 | + function($key) use ($sessionData) { |
|
| 38 | 38 | return isset($sessionData[$key]); |
| 39 | 39 | } |
| 40 | 40 | ); |
| 41 | 41 | $this->sessionMock->expects($this->any())->method('get')->willReturnCallback( |
| 42 | - function ($key) use ($sessionData) { |
|
| 42 | + function($key) use ($sessionData) { |
|
| 43 | 43 | return isset($sessionData[$key]) ? $sessionData[$key] : ''; |
| 44 | 44 | } |
| 45 | 45 | ); |
@@ -69,12 +69,12 @@ discard block |
||
| 69 | 69 | $sessionMock = $this->createMock(Session::class); |
| 70 | 70 | |
| 71 | 71 | $sessionMock->expects($this->any())->method('has')->willReturnCallback( |
| 72 | - function ($key) use ($sessionData) { |
|
| 72 | + function($key) use ($sessionData) { |
|
| 73 | 73 | return isset($sessionData[$key]); |
| 74 | 74 | } |
| 75 | 75 | ); |
| 76 | 76 | $sessionMock->expects($this->any())->method('get')->willReturnCallback( |
| 77 | - function ($key) use ($sessionData) { |
|
| 77 | + function($key) use ($sessionData) { |
|
| 78 | 78 | return isset($sessionData[$key]) ? $sessionData[$key] : ''; |
| 79 | 79 | } |
| 80 | 80 | ); |
@@ -51,7 +51,7 @@ discard block |
||
| 51 | 51 | /** @var Response|MockObject $requestMock */ |
| 52 | 52 | $responseMock = $this->createMock(Response::class); |
| 53 | 53 | |
| 54 | - $next = function () use ($responseMock) { |
|
| 54 | + $next = function() use ($responseMock) { |
|
| 55 | 55 | return $responseMock; |
| 56 | 56 | }; |
| 57 | 57 | |
@@ -77,7 +77,7 @@ discard block |
||
| 77 | 77 | /** @var Response|MockObject $requestMock */ |
| 78 | 78 | $responseMock = $this->createMock(Response::class); |
| 79 | 79 | |
| 80 | - $next = function () use ($responseMock) { |
|
| 80 | + $next = function() use ($responseMock) { |
|
| 81 | 81 | return $responseMock; |
| 82 | 82 | }; |
| 83 | 83 | |
@@ -28,7 +28,7 @@ |
||
| 28 | 28 | |
| 29 | 29 | public function __construct() |
| 30 | 30 | { |
| 31 | - $this->isFlushable = function ($obj) { |
|
| 31 | + $this->isFlushable = function($obj) { |
|
| 32 | 32 | if (!is_array($obj) && !($obj instanceof ArrayAccess)) { |
| 33 | 33 | throw new InvalidArgumentException("isFlushable requires an array or \ArrayAccess, received object is not: %s", get_class($obj)); |
| 34 | 34 | } |
@@ -272,7 +272,7 @@ |
||
| 272 | 272 | { |
| 273 | 273 | $this->sut = new Uploader($this->filesystemMock); |
| 274 | 274 | |
| 275 | - $fooPathFactory = function ($filename) { |
|
| 275 | + $fooPathFactory = function($filename) { |
|
| 276 | 276 | return "/foo-base-dir/$filename"; |
| 277 | 277 | }; |
| 278 | 278 | |
@@ -96,8 +96,8 @@ discard block |
||
| 96 | 96 | */ |
| 97 | 97 | public function createAssetJsViewFunction(AssetManager $assetManager): callable |
| 98 | 98 | { |
| 99 | - return function ($keys, $type = '') use ($assetManager) { |
|
| 100 | - $callback = function ($key) use ($assetManager, $type) { |
|
| 99 | + return function($keys, $type = '') use ($assetManager) { |
|
| 100 | + $callback = function($key) use ($assetManager, $type) { |
|
| 101 | 101 | $path = $assetManager->ensureJsWebPath($key); |
| 102 | 102 | if (empty($path)) { |
| 103 | 103 | return ''; |
@@ -121,8 +121,8 @@ discard block |
||
| 121 | 121 | */ |
| 122 | 122 | public function createAssetCssViewFunction(AssetManager $assetManager): callable |
| 123 | 123 | { |
| 124 | - return function ($keys) use ($assetManager) { |
|
| 125 | - $callback = function ($key) use ($assetManager) { |
|
| 124 | + return function($keys) use ($assetManager) { |
|
| 125 | + $callback = function($key) use ($assetManager) { |
|
| 126 | 126 | $path = $assetManager->ensureCssWebPath($key); |
| 127 | 127 | if (empty($path)) { |
| 128 | 128 | return ''; |
@@ -142,7 +142,7 @@ discard block |
||
| 142 | 142 | */ |
| 143 | 143 | public function createAssetImgViewFunction(AssetManager $assetManager): callable |
| 144 | 144 | { |
| 145 | - return function ($key, $alt = '') use ($assetManager) { |
|
| 145 | + return function($key, $alt = '') use ($assetManager) { |
|
| 146 | 146 | $path = $assetManager->ensureImgWebPath($key); |
| 147 | 147 | if (empty($path)) { |
| 148 | 148 | return ''; |