Completed
Push — swp-2216-mim ( f94f7a...bd5d6f )
by
unknown
48s
created
SWP/Component/ContentList/Repository/ContentListItemRepositoryInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
 
31 31
     public function getSortedItems(Criteria $criteria, array $sorting = [], array $groupValues = []): QueryBuilder;
32 32
 
33
-    public function getPaginatedByCriteria(EventDispatcherInterface $eventDispatcher,Criteria $criteria, array $sorting = [], PaginationData $paginationData = null);
33
+    public function getPaginatedByCriteria(EventDispatcherInterface $eventDispatcher, Criteria $criteria, array $sorting = [], PaginationData $paginationData = null);
34 34
 
35 35
     public function getCountByCriteria(Criteria $criteria): int;
36 36
 
Please login to merge, or discard this patch.
SWP/Bundle/ElasticSearchBundle/Controller/Api/ArticleSearchController.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -106,15 +106,15 @@
 block discarded – undo
106 106
 
107 107
   protected function createAdditionalCriteria(Request $request): array {
108 108
     return [
109
-        'routes' => array_filter((array)$request->query->get('route', [])),
110
-        'statuses' => array_filter((array)$request->query->get('status', [])),
111
-        'authors' => array_filter((array)$request->query->get('author', [])),
109
+        'routes' => array_filter((array) $request->query->get('route', [])),
110
+        'statuses' => array_filter((array) $request->query->get('status', [])),
111
+        'authors' => array_filter((array) $request->query->get('author', [])),
112 112
         'publishedBefore' => $request->query->has('published_before') ? new \DateTime($request->query->get('published_before')) : null,
113 113
         'publishedAfter' => $request->query->has('published_after') ? new \DateTime($request->query->get('published_after')) : null,
114 114
         'publishedAt' => $request->query->get('published_at'),
115
-        'sources' => array_filter((array)$request->query->get('source', [])),
116
-        'metadata' => array_filter((array)$request->query->get('metadata', [])),
117
-        'keywords' => array_filter((array)$request->query->get('keywords', [])),
115
+        'sources' => array_filter((array) $request->query->get('source', [])),
116
+        'metadata' => array_filter((array) $request->query->get('metadata', [])),
117
+        'keywords' => array_filter((array) $request->query->get('keywords', [])),
118 118
     ];
119 119
   }
120 120
 }
Please login to merge, or discard this patch.
SWP/Bundle/ElasticSearchBundle/Controller/Api/PackageSearchController.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
    * @Route("/api/{version}/packages/", methods={"GET"}, options={"expose"=true}, defaults={"version"="v2"}, name="swp_api_core_list_packages")
54 54
    */
55 55
   public function searchAction(Request $request, RepositoryManagerInterface $repositoryManager) {
56
-    $this->eventDispatcher->dispatch( new GenericEvent(), MultiTenancyEvents::TENANTABLE_DISABLE);
56
+    $this->eventDispatcher->dispatch(new GenericEvent(), MultiTenancyEvents::TENANTABLE_DISABLE);
57 57
     $currentTenant = $this->cachedTenantContext->getTenant();
58 58
 
59 59
     $criteria = Criteria::fromQueryParameters(
@@ -62,14 +62,14 @@  discard block
 block discarded – undo
62 62
             'page' => $request->query->get('page'),
63 63
             'sort' => $request->query->get('sorting'),
64 64
             'limit' => $request->query->get('limit', 10),
65
-            'authors' => array_filter((array)$request->query->get('author', [])),
65
+            'authors' => array_filter((array) $request->query->get('author', [])),
66 66
             'publishedBefore' => $request->query->get('published_before'),
67 67
             'publishedAfter' => $request->query->get('published_after'),
68 68
             'organization' => $currentTenant->getOrganization()->getId(),
69
-            'sources' => array_filter((array)$request->query->get('source', [])),
70
-            'tenants' => array_filter((array)$request->query->get('tenant', [])),
71
-            'routes' => array_filter((array)$request->query->get('route', [])),
72
-            'statuses' => array_filter((array)$request->query->get('status', [])),
69
+            'sources' => array_filter((array) $request->query->get('source', [])),
70
+            'tenants' => array_filter((array) $request->query->get('tenant', [])),
71
+            'routes' => array_filter((array) $request->query->get('route', [])),
72
+            'statuses' => array_filter((array) $request->query->get('status', [])),
73 73
             'language' => $request->query->get('language', ''),
74 74
         ]
75 75
     );
Please login to merge, or discard this patch.
src/SWP/Bundle/CoreBundle/EventListener/BodyListener.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -105,7 +105,7 @@
 block discarded – undo
105 105
 
106 106
       $request->request = new ParameterBag($data);
107 107
 
108
-      if(!empty($request->files->all())) {
108
+      if (!empty($request->files->all())) {
109 109
         $data = $request->files->all();
110 110
 
111 111
         try {
Please login to merge, or discard this patch.
src/SWP/Bundle/CoreBundle/EventListener/SecuredContentPushListener.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
 use SWP\Bundle\CoreBundle\Model\OrganizationInterface;
21 21
 use SWP\Component\MultiTenancy\Context\TenantContextInterface;
22 22
 use Symfony\Component\HttpFoundation\Response;
23
-use Symfony\Component\HttpKernel\Event\RequestEvent ;
23
+use Symfony\Component\HttpKernel\Event\RequestEvent;
24 24
 
25 25
 class SecuredContentPushListener
26 26
 {
Please login to merge, or discard this patch.
src/SWP/Bundle/CoreBundle/EventListener/CurrentDeviceListener.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
 namespace SWP\Bundle\CoreBundle\EventListener;
16 16
 
17 17
 use SWP\Bundle\CoreBundle\Detection\DeviceDetectionInterface;
18
-use Symfony\Component\HttpKernel\Event\RequestEvent ;
18
+use Symfony\Component\HttpKernel\Event\RequestEvent;
19 19
 use Symfony\Component\HttpKernel\HttpKernelInterface;
20 20
 
21 21
 class CurrentDeviceListener
Please login to merge, or discard this patch.
src/SWP/Bundle/CoreBundle/Controller/AnalyticsExportController.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
     $currentlyLoggedInUser = $this->getUser();
100 100
 
101 101
     $now = PublisherDateTime::getCurrentDateTime();
102
-    $fileName = 'analytics-' . $now->format('Y-m-d-H:i:s') . '.csv';
102
+    $fileName = 'analytics-'.$now->format('Y-m-d-H:i:s').'.csv';
103 103
 
104 104
     $form = $this->formFactory->createNamed('', ExportAnalyticsType::class, null, ['method' => $request->getMethod()]);
105 105
     $form->handleRequest($request);
@@ -162,7 +162,7 @@  discard block
 block discarded – undo
162 162
   public function downloadFile(string $fileName): Response {
163 163
     $cacheKey = md5(serialize(['analytics_report', $fileName]));
164 164
 
165
-    $analyticsReport = $this->cacheProvider->get($cacheKey, function () use ($fileName) {
165
+    $analyticsReport = $this->cacheProvider->get($cacheKey, function() use ($fileName) {
166 166
       /* @var AnalyticsReportInterface|null $analyticsReport */
167 167
       return $this->analyticsReportRepository->findOneBy(['assetId' => $fileName]);
168 168
     });
@@ -184,7 +184,7 @@  discard block
 block discarded – undo
184 184
     $response->setMaxAge(63072000);
185 185
     $response->setSharedMaxAge(63072000);
186 186
     $response->setLastModified($analyticsReport->getUpdatedAt() ?: $analyticsReport->getCreatedAt());
187
-    $response->setContent($this->filesystem->read($this->csvReportFileLocationResolver->getMediaBasePath() . '/' . $analyticsReport->getAssetId()));
187
+    $response->setContent($this->filesystem->read($this->csvReportFileLocationResolver->getMediaBasePath().'/'.$analyticsReport->getAssetId()));
188 188
 
189 189
     return $response;
190 190
   }
Please login to merge, or discard this patch.
SWP/Bundle/CoreBundle/Controller/RelatedArticleOrganizationController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
    * @Route("/api/{version}/packages/{id}/related/", methods={"GET"}, options={"expose"=true}, defaults={"version"="v2"}, name="swp_api_core_packages_related_articles", requirements={"id"="\d+"})
81 81
    */
82 82
   public function getRelatedAction(string $id) {
83
-    $package = $this->findOr404((int)$id);
83
+    $package = $this->findOr404((int) $id);
84 84
 
85 85
     $relatedArticlesList = $this->getRelated($package);
86 86
 
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
   }
89 89
 
90 90
   private function getRelated(PackageInterface $package): RelatedArticleList {
91
-    $relatedItemsGroups = $package->getItems()->filter(static function ($group) {
91
+    $relatedItemsGroups = $package->getItems()->filter(static function($group) {
92 92
       return ItemInterface::TYPE_TEXT === $group->getType();
93 93
     });
94 94
 
Please login to merge, or discard this patch.
src/SWP/Bundle/CoreBundle/Controller/WebhookController.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
    * @Route("/api/{version}/webhooks/", options={"expose"=true}, defaults={"version"="v2"}, methods={"GET"}, name="swp_api_core_list_webhook")
57 57
    */
58 58
   public function listAction(Request $request): ResourcesListResponseInterface {
59
-    return $this->listWebhooks($this->eventDispatcher,$this->webhookRepository, $request);
59
+    return $this->listWebhooks($this->eventDispatcher, $this->webhookRepository, $request);
60 60
   }
61 61
 
62 62
   /**
Please login to merge, or discard this patch.