@@ -23,8 +23,8 @@ |
||
23 | 23 | |
24 | 24 | use _generated\FileSystemServiceTesterActions; |
25 | 25 | |
26 | - /** |
|
27 | - * Define custom actions here |
|
28 | - */ |
|
26 | + /** |
|
27 | + * Define custom actions here |
|
28 | + */ |
|
29 | 29 | |
30 | 30 | } |
@@ -26,7 +26,7 @@ |
||
26 | 26 | */ |
27 | 27 | public function register(Application $app) |
28 | 28 | { |
29 | - $app->finish(function (Request $request) use ($app) { |
|
29 | + $app->finish(function(Request $request) use ($app) { |
|
30 | 30 | if (isset($app[StorageConstants::STORAGE_CACHE_STRATEGY])) { |
31 | 31 | $this->getClient()->persistCacheForRequest($request, $app[StorageConstants::STORAGE_CACHE_STRATEGY]); |
32 | 32 | } |
@@ -27,7 +27,7 @@ |
||
27 | 27 | */ |
28 | 28 | public function register(Application $app) |
29 | 29 | { |
30 | - $app->finish(function (Request $request) { |
|
30 | + $app->finish(function(Request $request) { |
|
31 | 31 | $this->getClient()->persistCacheForRequest($request); |
32 | 32 | }); |
33 | 33 | } |
@@ -24,7 +24,7 @@ |
||
24 | 24 | { |
25 | 25 | $container = parent::provideServiceLayerDependencies($container); |
26 | 26 | |
27 | - $container[self::STORAGE_CLIENT] = function (Container $container) { |
|
27 | + $container[self::STORAGE_CLIENT] = function(Container $container) { |
|
28 | 28 | return $container->getLocator()->storage()->client(); |
29 | 29 | }; |
30 | 30 |
@@ -25,7 +25,7 @@ |
||
25 | 25 | public function register(Application $app) |
26 | 26 | { |
27 | 27 | $containerGlobals = new ContainerGlobals(); |
28 | - $containerGlobals[static::CLIENT_STORAGE] = function () { |
|
28 | + $containerGlobals[static::CLIENT_STORAGE] = function() { |
|
29 | 29 | $container = new Container(); |
30 | 30 | |
31 | 31 | return $container->getLocator()->storage()->client(); |
@@ -46,7 +46,7 @@ |
||
46 | 46 | */ |
47 | 47 | protected function addStorageClient(Container $container) |
48 | 48 | { |
49 | - $container[self::CLIENT_STORAGE] = function (Container $container) { |
|
49 | + $container[self::CLIENT_STORAGE] = function(Container $container) { |
|
50 | 50 | return $container->getLocator()->storage()->client(); |
51 | 51 | }; |
52 | 52 | } |
@@ -23,8 +23,8 @@ |
||
23 | 23 | |
24 | 24 | use _generated\StorageClientTesterActions; |
25 | 25 | |
26 | - /** |
|
27 | - * Define custom actions here |
|
28 | - */ |
|
26 | + /** |
|
27 | + * Define custom actions here |
|
28 | + */ |
|
29 | 29 | |
30 | 30 | } |
@@ -285,8 +285,7 @@ discard block |
||
285 | 285 | // Dividing dataset into three thirds: unused keys then used keys then new keys |
286 | 286 | $firstThirdDataset = ceil($cacheSize / 3); |
287 | 287 | $secondThirdDataset = $firstThirdDataset * 2; |
288 | - $value = $i < $firstThirdDataset ? StorageClient::KEY_INIT : |
|
289 | - ($i < $secondThirdDataset ? StorageClient::KEY_USED : StorageClient::KEY_NEW); |
|
288 | + $value = $i < $firstThirdDataset ? StorageClient::KEY_INIT : ($i < $secondThirdDataset ? StorageClient::KEY_USED : StorageClient::KEY_NEW); |
|
290 | 289 | break; |
291 | 290 | |
292 | 291 | default: |
@@ -341,8 +340,7 @@ discard block |
||
341 | 340 | // When there are unused keys within the limit, the result contains the rest of the unused keys after removing the over limit ones |
342 | 341 | $inLimitUnusedKeysSize = $thirdDataset - self::OVER_LIMIT_SIZE; |
343 | 342 | $key = $key = 'kv:key' . ($i + $thirdDataset - $inLimitUnusedKeysSize + 1); |
344 | - $value = $i < $inLimitUnusedKeysSize ? StorageClient::KEY_INIT : |
|
345 | - ($i < $inLimitUnusedKeysSize + $thirdDataset ? StorageClient::KEY_USED : StorageClient::KEY_NEW); |
|
343 | + $value = $i < $inLimitUnusedKeysSize ? StorageClient::KEY_INIT : ($i < $inLimitUnusedKeysSize + $thirdDataset ? StorageClient::KEY_USED : StorageClient::KEY_NEW); |
|
346 | 344 | } |
347 | 345 | break; |
348 | 346 |
@@ -23,8 +23,8 @@ |
||
23 | 23 | |
24 | 24 | use _generated\StorageSharedTesterActions; |
25 | 25 | |
26 | - /** |
|
27 | - * Define custom actions here |
|
28 | - */ |
|
26 | + /** |
|
27 | + * Define custom actions here |
|
28 | + */ |
|
29 | 29 | |
30 | 30 | } |