Completed
Push — master ( fa4c12...c4f1b1 )
by
unknown
31s queued 23s
created
src/UiTID/CdbXmlCreatedByToUserIdResolver.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
             return $createdByIdentifier;
43 43
         } catch (InvalidNativeArgumentException $exception) {
44 44
             $this->logger->info(
45
-                'The provided createdByIdentifier ' . $createdByIdentifier->toNative() . ' is not a UUID.',
45
+                'The provided createdByIdentifier '.$createdByIdentifier->toNative().' is not a UUID.',
46 46
                 [
47 47
                     'exception' => $exception,
48 48
                 ]
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
 
55 55
             if (!$userId) {
56 56
                 $this->logger->warning(
57
-                    'Unable to find user with identifier ' . $createdByIdentifier
57
+                    'Unable to find user with identifier '.$createdByIdentifier
58 58
                 );
59 59
             }
60 60
         } catch (Exception $e) {
Please login to merge, or discard this patch.
src/SavedSearches/UiTIDSavedSearchRepository.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
     {
74 74
         $name = new StringLiteral($savedSearch->name);
75 75
         $query = QueryString::fromURLQueryString($savedSearch->query);
76
-        $id = new StringLiteral((string) $savedSearch->id);
76
+        $id = new StringLiteral((string)$savedSearch->id);
77 77
 
78 78
         return new SavedSearch($name, $query, $id);
79 79
     }
@@ -83,8 +83,8 @@  discard block
 block discarded – undo
83 83
      */
84 84
     public function write(StringLiteral $userId, StringLiteral $name, QueryString $queryString): void
85 85
     {
86
-        $userId = (string) $userId;
87
-        $name = (string) $name;
86
+        $userId = (string)$userId;
87
+        $name = (string)$name;
88 88
         $query = $queryString->toURLQueryString();
89 89
 
90 90
         $savedSearch = new \CultureFeed_SavedSearches_SavedSearch(
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
                         'error' => $exception->getMessage(),
105 105
                         'userId' => $userId,
106 106
                         'name' => $name,
107
-                        'query' => (string) $queryString,
107
+                        'query' => (string)$queryString,
108 108
                     ]
109 109
                 );
110 110
             }
@@ -116,8 +116,8 @@  discard block
 block discarded – undo
116 116
      */
117 117
     public function delete(StringLiteral $userId, StringLiteral $searchId): void
118 118
     {
119
-        $userId = (string) $userId;
120
-        $searchId = (string) $searchId;
119
+        $userId = (string)$userId;
120
+        $searchId = (string)$searchId;
121 121
 
122 122
         try {
123 123
             $this->savedSearches->unsubscribe($searchId, $userId);
Please login to merge, or discard this patch.
src/SavedSearches/UDB3SavedSearchRepository.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -90,8 +90,8 @@  discard block
 block discarded – undo
90 90
     ): void {
91 91
         $queryBuilder = $this->connection->createQueryBuilder()
92 92
             ->delete($this->tableName->toNative())
93
-            ->where(SchemaConfigurator::USER . ' = ?')
94
-            ->andWhere(SchemaConfigurator::ID . ' = ?')
93
+            ->where(SchemaConfigurator::USER.' = ?')
94
+            ->andWhere(SchemaConfigurator::ID.' = ?')
95 95
             ->setParameters(
96 96
                 [
97 97
                     $userId->toNative(),
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
         $queryBuilder = $this->connection->createQueryBuilder()
111 111
             ->select('*')
112 112
             ->from($this->tableName->toNative())
113
-            ->where(SchemaConfigurator::USER . ' = ?')
113
+            ->where(SchemaConfigurator::USER.' = ?')
114 114
             ->setParameters(
115 115
                 [
116 116
                     $this->userId->toNative(),
Please login to merge, or discard this patch.
src/Organizer/OrganizerLDProjector.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -197,7 +197,7 @@
 block discarded – undo
197 197
     /**
198 198
      * @param $jsonLD
199 199
      * @param DomainMessage $domainMessage
200
-     * @return mixed
200
+     * @return \stdClass
201 201
      */
202 202
     private function appendCreator($jsonLD, $domainMessage)
203 203
     {
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -232,7 +232,7 @@  discard block
 block discarded – undo
232 232
 
233 233
         $this->setMainLanguage($jsonLD, $organizerCreated->getMainLanguage());
234 234
 
235
-        $jsonLD->url = (string) $organizerCreated->getWebsite();
235
+        $jsonLD->url = (string)$organizerCreated->getWebsite();
236 236
 
237 237
         $jsonLD->name = [
238 238
             $this->getMainLanguage($jsonLD)->getCode() => $organizerCreated->getTitle(),
@@ -262,7 +262,7 @@  discard block
 block discarded – undo
262 262
         $document = $this->repository->get($organizerId);
263 263
 
264 264
         $jsonLD = $document->getBody();
265
-        $jsonLD->url = (string) $websiteUpdated->getWebsite();
265
+        $jsonLD->url = (string)$websiteUpdated->getWebsite();
266 266
 
267 267
         return $document->withBody($jsonLD);
268 268
     }
@@ -371,7 +371,7 @@  discard block
 block discarded – undo
371 371
         $labelsProperty = $labelAdded->getLabel()->isVisible() ? 'labels' : 'hiddenLabels';
372 372
 
373 373
         $labels = isset($jsonLD->{$labelsProperty}) ? $jsonLD->{$labelsProperty} : [];
374
-        $label = (string) $labelAdded->getLabel();
374
+        $label = (string)$labelAdded->getLabel();
375 375
 
376 376
         $labels[] = $label;
377 377
         $jsonLD->{$labelsProperty} = array_unique($labels);
@@ -396,7 +396,7 @@  discard block
 block discarded – undo
396 396
             if (isset($jsonLD->{$labelsProperty}) && is_array($jsonLD->{$labelsProperty})) {
397 397
                 $jsonLD->{$labelsProperty} = array_filter(
398 398
                     $jsonLD->{$labelsProperty},
399
-                    function ($label) use ($labelRemoved) {
399
+                    function($label) use ($labelRemoved) {
400 400
                         return !$labelRemoved->getLabel()->equals(
401 401
                             new Label($label)
402 402
                         );
Please login to merge, or discard this patch.
src/SavedSearches/Properties/CreatedByQueryString.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -15,9 +15,9 @@
 block discarded – undo
15 15
 
16 16
         $query = implode(' OR ', $queryParts);
17 17
         if (count($queryParts) > 1) {
18
-            $query = '(' . $query . ')';
18
+            $query = '('.$query.')';
19 19
         }
20
-        $query = 'createdby:' . $query;
20
+        $query = 'createdby:'.$query;
21 21
 
22 22
         parent::__construct($query);
23 23
     }
Please login to merge, or discard this patch.
src/Search/Sapi3SearchService.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
 
73 73
         $offerRequest = new Request(
74 74
             'GET',
75
-            (string) $offerQuery,
75
+            (string)$offerQuery,
76 76
             $headers
77 77
         );
78 78
 
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
 
84 84
         $offerIds = array_reduce(
85 85
             $searchResponseData->{'member'},
86
-            function (OfferIdentifierCollection $offerIds, $item) {
86
+            function(OfferIdentifierCollection $offerIds, $item) {
87 87
                 return $offerIds->with(
88 88
                     $this->offerIdentifier->fromIri(Url::fromNative($item->{'@id'}))
89 89
                 );
Please login to merge, or discard this patch.
src/Offer/Security/Sapi3SearchQueryFactory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -19,9 +19,9 @@
 block discarded – undo
19 19
         StringLiteral $constraint,
20 20
         StringLiteral $offerId
21 21
     ) {
22
-        $constraintStr = '(' . $constraint->toNative() . ')';
22
+        $constraintStr = '('.$constraint->toNative().')';
23 23
         $offerIdStr = $offerId->toNative();
24 24
 
25
-        return '(' . $constraintStr . ' AND id:' . $offerIdStr . ')';
25
+        return '('.$constraintStr.' AND id:'.$offerIdStr.')';
26 26
     }
27 27
 }
Please login to merge, or discard this patch.
src/SavedSearches/Properties/CreatorQueryString.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -15,9 +15,9 @@
 block discarded – undo
15 15
 
16 16
         $query = implode(' OR ', $queryParts);
17 17
         if (count($queryParts) > 1) {
18
-            $query = '(' . $query . ')';
18
+            $query = '('.$query.')';
19 19
         }
20
-        $query = 'creator:' . $query;
20
+        $query = 'creator:'.$query;
21 21
 
22 22
         parent::__construct($query);
23 23
     }
Please login to merge, or discard this patch.
src/Search/Sapi3CountingSearchService.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
 
79 79
         $request = new Request(
80 80
             'GET',
81
-            (string) $url,
81
+            (string)$url,
82 82
             $headers
83 83
         );
84 84
 
@@ -88,6 +88,6 @@  discard block
 block discarded – undo
88 88
             $response->getBody()->getContents()
89 89
         );
90 90
 
91
-        return (int) $decodedResponse->{'totalItems'};
91
+        return (int)$decodedResponse->{'totalItems'};
92 92
     }
93 93
 }
Please login to merge, or discard this patch.