Completed
Push — symfony4 ( 6bce00...4f08c4 )
by
unknown
26s
created
src/SWP/Bundle/CoreBundle/Controller/MenuController.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
     $form->handleRequest($request);
155 155
     if ($form->isSubmitted() && $form->isValid()) {
156 156
       $this->menuItemManager->update($menu);
157
-      if($parent !== $menu->getParent()) {
157
+      if ($parent !== $menu->getParent()) {
158 158
           $this->menuItemManager->update($parent);
159 159
       }
160 160
       $this->menuItemRepository->flush();
Please login to merge, or discard this patch.
src/SWP/Bundle/ContentBundle/Controller/ContentPushController.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -42,11 +42,11 @@  discard block
 block discarded – undo
42 42
 class ContentPushController extends AbstractController {
43 43
   private EventDispatcherInterface $eventDispatcher;
44 44
   private FormFactoryInterface $formFactory;
45
-  private MessageBusInterface $messageBus;//swp_multi_tenancy.tenant_context
45
+  private MessageBusInterface $messageBus; //swp_multi_tenancy.tenant_context
46 46
   private DataTransformerInterface $dataTransformer; // swp_bridge.transformer.json_to_package
47 47
   private MediaManagerInterface $mediaManager; // swp_content_bundle.manager.media
48 48
   private EntityManagerInterface $entityManager; // swp.object_manager.media
49
-  private PackageRepository $packageRepository;//swp.repository.package
49
+  private PackageRepository $packageRepository; //swp.repository.package
50 50
   private FileProviderInterface $fileProvider;
51 51
 
52 52
   /**
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
         );
123 123
       }
124 124
 
125
-      throw new \Exception('Uploaded file is not valid:' . $uploadedFile->getErrorMessage());
125
+      throw new \Exception('Uploaded file is not valid:'.$uploadedFile->getErrorMessage());
126 126
     }
127 127
 
128 128
     return new SingleResourceResponse($form);
Please login to merge, or discard this patch.
src/SWP/Component/TemplatesSystem/Gimme/Context/Context.php 1 patch
Spacing   +3 added lines, -3 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
-            $files = $this->metadataCache->get('metadata_config_files', function () use ($configsPath) {
129
+            $files = $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
-        $configuration  = $this->metadataCache->get($cacheKey, function () use ($filePath) {
192
+        $configuration = $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
               }
@@ -221,7 +221,7 @@  discard block
 block discarded – undo
221 221
     public function registerMeta(Meta $meta = null)
222 222
     {
223 223
         $configuration = $meta->getConfiguration();
224
-        if(array_key_exists("name" ,$configuration)) {
224
+        if (array_key_exists("name", $configuration)) {
225 225
           $name = $configuration['name'];
226 226
           if (!array_key_exists($name, $this->registeredMeta)) {
227 227
             $this->registeredMeta[$name] = $configuration;
Please login to merge, or discard this patch.
src/SWP/Bundle/ContentBundle/Model/Article.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -333,7 +333,7 @@  discard block
 block discarded – undo
333 333
     {
334 334
         return $this->getExtraCollection()
335 335
             ->map(
336
-                function (ArticleExtraFieldInterface $field) {
336
+                function(ArticleExtraFieldInterface $field) {
337 337
                     return $field->toApiFormat();
338 338
                 }
339 339
             )->toArray();
@@ -536,8 +536,8 @@  discard block
 block discarded – undo
536 536
             if (is_array($value)) {
537 537
                 $this->addEmbedExtra(ArticleExtraEmbedField::newFromValue($key, $value));
538 538
             } else {
539
-                if(is_int($value)) {
540
-                    $value = (string)$value;
539
+                if (is_int($value)) {
540
+                    $value = (string) $value;
541 541
                 }
542 542
                 $this->addTextExtra(ArticleExtraTextField::newFromValue($key, $value));
543 543
             }
Please login to merge, or discard this patch.