Completed
Pull Request — master (#1218)
by
unknown
28s
created
src/SWP/Component/TemplatesSystem/Gimme/Context/Context.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
             }
Please login to merge, or discard this patch.
src/SWP/Bundle/ContentBundle/Controller/AbstractMediaController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/SWP/Bundle/ContentBundle/Twig/Cache/CacheBlockTagsCollector.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/SWP/Bundle/CoreBundle/Controller/AnalyticsExportController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -154,7 +154,7 @@
 block discarded – undo
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
         });
Please login to merge, or discard this patch.
src/SWP/Bundle/CoreBundle/Migrations/Version20180605111249.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
src/SWP/Bundle/CoreBundle/Theme/TenantAwareThemeContext.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/SWP/Bundle/CoreBundle/GeoIp/CachedGeoIpChecker.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/SWP/Bundle/CoreBundle/WebSocket/Topic/PackageTopic.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/SWP/Bundle/ContentBundle/Service/RouteService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -162,6 +162,6 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.