Completed
Pull Request — master (#1218)
by
unknown
36s
created
src/SWP/Bundle/UserBundle/Controller/ResetPasswordController.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -160,9 +160,9 @@
 block discarded – undo
160 160
             $resetToken = $this->resetPasswordHelper->generateResetToken($user);
161 161
         } catch (ResetPasswordExceptionInterface $e) {
162 162
             $this->addFlash('reset_password_error', sprintf(
163
-                 'There was a problem handling your password reset request - %s',
164
-                 $e->getReason()
165
-             ));
163
+                    'There was a problem handling your password reset request - %s',
164
+                    $e->getReason()
165
+                ));
166 166
 
167 167
             return $this->redirectToRoute('swp_user_check_email');
168 168
         }
Please login to merge, or discard this patch.
DependencyInjection/Compiler/OverrideThemeAssetsInstallerPass.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
             AssetsInstaller::class
34 34
         );
35 35
 
36
-        if($newDefinition = $this->getDefinitionIfExists($container, AssetsInstallerInterface::class)) {
36
+        if ($newDefinition = $this->getDefinitionIfExists($container, AssetsInstallerInterface::class)) {
37 37
             $newDefinition->setArgument(4, new Reference(ThemeHierarchyProviderInterface::class));
38 38
         }
39 39
     }
Please login to merge, or discard this patch.
src/SWP/Bundle/CoreBundle/Controller/ThemesController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@
 block discarded – undo
56 56
         $tenantCode = $tenant->getCode();
57 57
         $themes = array_filter(
58 58
             $themeRepository->findAll(),
59
-            static function ($element) use (&$tenantCode) {
59
+            static function($element) use (&$tenantCode) {
60 60
                 if (strpos($element->getName(), ThemeHelper::SUFFIX_SEPARATOR.$tenantCode)) {
61 61
                     return true;
62 62
                 }
Please login to merge, or discard this patch.
src/SWP/Bundle/CoreBundle/Theme/Loader/TenantAwareThemeLoader.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
142 142
             }
143 143
             $themes[$themeName] = $theme;
144 144
 
145
-            if(isset($configuration['generatedData'])) {
145
+            if (isset($configuration['generatedData'])) {
146 146
                 $theme->setGeneratedData($configuration['generatedData']);
147 147
             }
148 148
         }
@@ -175,7 +175,7 @@  discard block
 block discarded – undo
175 175
     {
176 176
         $tenantCode = substr($themeName, strpos($themeName, '@') + 1);
177 177
 
178
-        return array_map(function ($parentName) use ($themeName, $existingThemes, $tenantCode) {
178
+        return array_map(function($parentName) use ($themeName, $existingThemes, $tenantCode) {
179 179
             $parentName .= '@'.$tenantCode;
180 180
             if (!isset($existingThemes[$parentName])) {
181 181
                 throw new ThemeLoadingFailedException(sprintf(
@@ -196,7 +196,7 @@  discard block
 block discarded – undo
196 196
      */
197 197
     private function convertAuthorsArraysToAuthorsObjects(array $authorsArrays)
198 198
     {
199
-        return array_map(function (array $authorArray) {
199
+        return array_map(function(array $authorArray) {
200 200
             return $this->themeAuthorFactory->createFromArray($authorArray);
201 201
         }, $authorsArrays);
202 202
     }
@@ -208,7 +208,7 @@  discard block
 block discarded – undo
208 208
      */
209 209
     private function convertScreenshotsArraysToScreenshotsObjects(array $screenshotsArrays)
210 210
     {
211
-        return array_map(function (array $screenshotArray) {
211
+        return array_map(function(array $screenshotArray) {
212 212
             return $this->themeScreenshotFactory->createFromArray($screenshotArray);
213 213
         }, $screenshotsArrays);
214 214
     }
Please login to merge, or discard this patch.
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.