Completed
Pull Request — master (#1218)
by
unknown
58s
created
src/SWP/Bundle/MultiTenancyBundle/Command/CreateOrganizationCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
    * @param OrganizationRepositoryInterface $organizationRepository
44 44
    * @param OrganizationFactoryInterface $organizationFactory
45 45
    */
46
-  public function __construct( OrganizationRepositoryInterface $organizationRepository, OrganizationFactoryInterface $organizationFactory) {
46
+  public function __construct(OrganizationRepositoryInterface $organizationRepository, OrganizationFactoryInterface $organizationFactory) {
47 47
     $this->organizationRepository = $organizationRepository;
48 48
     $this->organizationFactory = $organizationFactory;
49 49
     parent::__construct();
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
     {
127 127
         if (!$input->getArgument($name)) {
128 128
             $question = new Question(sprintf('<question>Please enter %s:</question>', $name));
129
-            $question->setValidator(function ($argument) use ($name) {
129
+            $question->setValidator(function($argument) use ($name) {
130 130
                 if (empty($argument)) {
131 131
                     throw new \RuntimeException(sprintf('The %s can not be empty', $name));
132 132
                 }
Please login to merge, or discard this patch.
src/SWP/Bundle/ContentBundle/EventListener/LinkRequestListener.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -123,8 +123,8 @@
 block discarded – undo
123 123
 
124 124
             $subEvent = new ControllerEvent($event->getKernel(), $controller, $stubRequest, HttpKernelInterface::SUB_REQUEST);
125 125
             $kernelSubEvent = new RequestEvent($event->getKernel(), $stubRequest, HttpKernelInterface::SUB_REQUEST);
126
-            $dispatcher->dispatch( $kernelSubEvent, KernelEvents::REQUEST);
127
-            $dispatcher->dispatch( $subEvent, KernelEvents::CONTROLLER);
126
+            $dispatcher->dispatch($kernelSubEvent, KernelEvents::REQUEST);
127
+            $dispatcher->dispatch($subEvent, KernelEvents::CONTROLLER);
128 128
             $controller = $subEvent->getController();
129 129
 
130 130
             $argumentResolver = new ArgumentResolver();
Please login to merge, or discard this patch.
src/SWP/Bundle/ContentBundle/Doctrine/ORM/ArticleRepository.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -151,7 +151,7 @@  discard block
 block discarded – undo
151 151
             $paginationData = new PaginationData();
152 152
         }
153 153
 
154
-        return $this->getPaginator($eventDispatcher,$queryBuilder, $paginationData);
154
+        return $this->getPaginator($eventDispatcher, $queryBuilder, $paginationData);
155 155
     }
156 156
 
157 157
     /**
@@ -172,7 +172,7 @@  discard block
 block discarded – undo
172 172
                 ->leftJoin('a.extraEmbedFields', 'eef');
173 173
 
174 174
             foreach ((array) $criteria->get('extra') as $key => $value) {
175
-                if(is_array($value)) {
175
+                if (is_array($value)) {
176 176
                     $andX = $queryBuilder->expr()->andX();
177 177
                     $andX->add($queryBuilder->expr()->eq('eef.fieldName', $queryBuilder->expr()->literal($key)));
178 178
                     $andX->add($queryBuilder->expr()->eq('eef.embed', $queryBuilder->expr()->literal($value['embed'])));
Please login to merge, or discard this patch.
src/SWP/Bundle/ContentBundle/Doctrine/ORM/RelatedArticleRepository.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@
 block discarded – undo
61 61
             $paginationData = new PaginationData();
62 62
         }
63 63
 
64
-        return $this->getPaginator($eventDispatcher,$queryBuilder, $paginationData);
64
+        return $this->getPaginator($eventDispatcher, $queryBuilder, $paginationData);
65 65
     }
66 66
 
67 67
     private function applyCustomCriteria(QueryBuilder $queryBuilder, Criteria $criteria): void
Please login to merge, or discard this patch.
src/SWP/Bundle/ContentBundle/Controller/ContentPushController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
   private DataTransformerInterface $dataTransformer; // swp_bridge.transformer.json_to_package
49 49
   private MediaManagerInterface $mediaManager; // swp_content_bundle.manager.media
50 50
   private EntityManagerInterface $entityManager; // swp.object_manager.media
51
-  private PackageRepositoryInterface $packageRepository;//swp.repository.package
51
+  private PackageRepositoryInterface $packageRepository; //swp.repository.package
52 52
   private FileProviderInterface $fileProvider;
53 53
 
54 54
   /**
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
         );
127 127
       }
128 128
 
129
-      throw new \Exception('Uploaded file is not valid:' . $uploadedFile->getErrorMessage());
129
+      throw new \Exception('Uploaded file is not valid:'.$uploadedFile->getErrorMessage());
130 130
     }
131 131
 
132 132
     return new SingleResourceResponse($form);
Please login to merge, or discard this patch.
src/SWP/Bundle/MenuBundle/Doctrine/ORM/MenuItemRepository.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
     /**
103 103
      * {@inheritdoc}
104 104
      */
105
-    public function findChildrenAsTree(EventDispatcherInterface $eventDispatcher,MenuItemInterface $menuItem)
105
+    public function findChildrenAsTree(EventDispatcherInterface $eventDispatcher, MenuItemInterface $menuItem)
106 106
     {
107 107
         $queryBuilder = $this->createQueryBuilder('m');
108 108
         $queryBuilder
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
             ->orderBy('m.lft', 'asc')
115 115
         ;
116 116
 
117
-        return $this->getPaginator($eventDispatcher,$queryBuilder, new PaginationData());
117
+        return $this->getPaginator($eventDispatcher, $queryBuilder, new PaginationData());
118 118
     }
119 119
 
120 120
     /**
Please login to merge, or discard this patch.
src/SWP/Bundle/ContentListBundle/Loader/ContentListsItemLoader.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -144,7 +144,7 @@
 block discarded – undo
144 144
   private function getItemMeta($item) {
145 145
     if (null !== $item) {
146 146
       if ($item instanceof ContentListItemInterface) {
147
-        $this->cacheBlocksTagsCollector->addTagToCurrentCacheBlock('a-' . $item->getContent()->getId());
147
+        $this->cacheBlocksTagsCollector->addTagToCurrentCacheBlock('a-'.$item->getContent()->getId());
148 148
       }
149 149
 
150 150
       return $this->metaFactory->create($item);
Please login to merge, or discard this patch.
src/SWP/Bundle/UserBundle/Controller/RegistrationController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -121,7 +121,7 @@
 block discarded – undo
121 121
    */
122 122
   public function verifyUserEmail(Request            $request, GuardAuthenticatorHandler $guardHandler,
123 123
                                   LoginAuthenticator $authenticator): Response {
124
-    $id = (int)$request->get('id'); // retrieve the user id from the url
124
+    $id = (int) $request->get('id'); // retrieve the user id from the url
125 125
 
126 126
     if ($request->isXmlHttpRequest()) {
127 127
       return $this->verifyUserEmailFromPWA($id, $request);
Please login to merge, or discard this patch.
src/SWP/Bundle/CoreBundle/Theme/Uploader/OrganizationAwareThemeUploader.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
       $pathInArray = explode('/', $zip->getNameIndex(0));
66 66
       $themeDirInZip = array_shift($pathInArray);
67 67
 
68
-      $themeConfiguration = $zip->getFromName($themeDirInZip . DIRECTORY_SEPARATOR . 'theme.json');
68
+      $themeConfiguration = $zip->getFromName($themeDirInZip.DIRECTORY_SEPARATOR.'theme.json');
69 69
       if (false === $themeConfiguration) {
70 70
         throw new \Exception('In ZIP file we expect one directory and theme.json file inside');
71 71
       }
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
       }
77 77
 
78 78
       $themeName = $themeConfiguration['name'];
79
-      $unpackedThemePath = $destinationFolder . DIRECTORY_SEPARATOR . $themeDirInZip;
79
+      $unpackedThemePath = $destinationFolder.DIRECTORY_SEPARATOR.$themeDirInZip;
80 80
 
81 81
       if ($filesystem->exists($unpackedThemePath)) {
82 82
         $filesystem->remove($unpackedThemePath);
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
       $zip->extractTo($destinationFolder);
86 86
       $zip->close();
87 87
 
88
-      $finalPath = $destinationFolder . DIRECTORY_SEPARATOR . str_replace('/', '__', $themeName);
88
+      $finalPath = $destinationFolder.DIRECTORY_SEPARATOR.str_replace('/', '__', $themeName);
89 89
       $filesystem->rename($unpackedThemePath, $finalPath, true);
90 90
 
91 91
       return $finalPath;
@@ -101,6 +101,6 @@  discard block
 block discarded – undo
101 101
     $tenant = $this->tenantContext->getTenant();
102 102
     $organization = $tenant->getOrganization();
103 103
     $organizationCode = $organization->getCode();
104
-    return sprintf($this->baseDir . DIRECTORY_SEPARATOR . ThemeUploaderInterface::AVAILABLE_THEMES_PATH, $organizationCode);
104
+    return sprintf($this->baseDir.DIRECTORY_SEPARATOR.ThemeUploaderInterface::AVAILABLE_THEMES_PATH, $organizationCode);
105 105
   }
106 106
 }
Please login to merge, or discard this patch.