@@ -126,7 +126,7 @@ discard block |
||
126 | 126 | public function loadConfigsFromPath($configsPath) |
127 | 127 | { |
128 | 128 | if (file_exists($configsPath)) { |
129 | - $this->metadataCache->get('metadata_config_files', function () use ($configsPath) { |
|
129 | + $this->metadataCache->get('metadata_config_files', function() use ($configsPath) { |
|
130 | 130 | $finder = new Finder(); |
131 | 131 | $finder->in($configsPath)->files()->name('*.{yaml,yml}'); |
132 | 132 | $files = []; |
@@ -189,7 +189,7 @@ discard block |
||
189 | 189 | public function addNewConfig(string $filePath) |
190 | 190 | { |
191 | 191 | $cacheKey = md5($filePath); |
192 | - return $this->metadataCache->get($cacheKey, function () use ($filePath) { |
|
192 | + return $this->metadataCache->get($cacheKey, function() use ($filePath) { |
|
193 | 193 | if (!is_readable($filePath)) { |
194 | 194 | throw new \InvalidArgumentException('Configuration file is not readable for parser'); |
195 | 195 | } |
@@ -52,7 +52,7 @@ |
||
52 | 52 | public function getMedia(string $mediaId, string $extension): Response |
53 | 53 | { |
54 | 54 | $cacheKey = md5(serialize(['media_file', $mediaId])); |
55 | - $media = $this->cacheProvider->get($cacheKey, function () use ($mediaId, $extension) { |
|
55 | + $media = $this->cacheProvider->get($cacheKey, function() use ($mediaId, $extension) { |
|
56 | 56 | return $this->fileProvider->getFile(ArticleMedia::handleMediaId($mediaId), $extension); |
57 | 57 | }); |
58 | 58 |
@@ -59,7 +59,7 @@ |
||
59 | 59 | |
60 | 60 | public function getSavedCacheBlockTags(string $cacheKey) |
61 | 61 | { |
62 | - return $this->cache->get($cacheKey, function () { |
|
62 | + return $this->cache->get($cacheKey, function() { |
|
63 | 63 | if (null !== $this->currentCacheBlockKey) { |
64 | 64 | $this->currentCacheBlockKey = null; |
65 | 65 |
@@ -154,7 +154,7 @@ |
||
154 | 154 | { |
155 | 155 | $cacheKey = md5(serialize(['analytics_report', $fileName])); |
156 | 156 | |
157 | - $analyticsReport = $this->cacheProvider->get($cacheKey, function () use ($fileName) { |
|
157 | + $analyticsReport = $this->cacheProvider->get($cacheKey, function() use ($fileName) { |
|
158 | 158 | /* @var AnalyticsReportInterface|null $analyticsReport */ |
159 | 159 | return $this->analyticsReportRepository->findOneBy(['assetId' => $fileName]); |
160 | 160 | }); |
@@ -39,7 +39,7 @@ |
||
39 | 39 | /** |
40 | 40 | * @param Schema $schema |
41 | 41 | */ |
42 | - public function postUp(Schema $schema) : void |
|
42 | + public function postUp(Schema $schema) : void |
|
43 | 43 | { |
44 | 44 | $entityManager = $this->container->get('doctrine.orm.default_entity_manager'); |
45 | 45 | $query = $entityManager |
@@ -74,7 +74,7 @@ |
||
74 | 74 | return $this->themes[$key]; |
75 | 75 | } |
76 | 76 | |
77 | - return $this->cacheService->get('theme_'.$key, function () use ($tenant, $key) { |
|
77 | + return $this->cacheService->get('theme_'.$key, function() use ($tenant, $key) { |
|
78 | 78 | $themeName = $this->resolveThemeName($tenant); |
79 | 79 | if (null === $themeName) { |
80 | 80 | return null; |
@@ -44,7 +44,7 @@ |
||
44 | 44 | $geoIpPlaces = $article->getGeoIpPlaces(); |
45 | 45 | $cacheKey = $this->generateCacheKey($ipAddress, $article, $geoIpPlaces); |
46 | 46 | |
47 | - return $this->cacheProvider->get($cacheKey, function () use ($ipAddress, $geoIpPlaces) { |
|
47 | + return $this->cacheProvider->get($cacheKey, function() use ($ipAddress, $geoIpPlaces) { |
|
48 | 48 | return $this->geoIpChecker->isGranted($ipAddress, $geoIpPlaces); |
49 | 49 | }); |
50 | 50 | } |
@@ -65,7 +65,7 @@ |
||
65 | 65 | public function registerPeriodicTimer(Topic $topic): void |
66 | 66 | { |
67 | 67 | $n = 1; |
68 | - $this->periodicTimer->addPeriodicTimer($this, 'ping', 5, function () use ($topic, &$n) { |
|
68 | + $this->periodicTimer->addPeriodicTimer($this, 'ping', 5, function() use ($topic, &$n) { |
|
69 | 69 | $topic->broadcast(['ping' => $n]); |
70 | 70 | |
71 | 71 | ++$n; |
@@ -162,6 +162,6 @@ |
||
162 | 162 | */ |
163 | 163 | private function dispatchRouteEvent($eventName, RouteInterface $route) |
164 | 164 | { |
165 | - $this->eventDispatcher->dispatch(new RouteEvent($route, $eventName), $eventName); |
|
165 | + $this->eventDispatcher->dispatch(new RouteEvent($route, $eventName), $eventName); |
|
166 | 166 | } |
167 | 167 | } |