Completed
Pull Request — master (#454)
by Jonas
05:45 queued 02:11
created
src/EventSourcing/DomainMessageBuilder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -88,7 +88,7 @@
 block discarded – undo
88 88
             )
89 89
         );
90 90
 
91
-        $message =  new DomainMessage(
91
+        $message = new DomainMessage(
92 92
             $this->id ?? UUID::generateAsString(),
93 93
             $this->playhead ?? 1,
94 94
             $finalMetaData,
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/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/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.
src/Organizer/Organizer.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -259,7 +259,7 @@  discard block
 block discarded – undo
259 259
      */
260 260
     public function importLabels(Labels $labels, Labels $labelsToKeepIfAlreadyOnOrganizer)
261 261
     {
262
-        $convertLabelClass = function (\CultuurNet\UDB3\Model\ValueObject\Taxonomy\Label\Label $label) {
262
+        $convertLabelClass = function(\CultuurNet\UDB3\Model\ValueObject\Taxonomy\Label\Label $label) {
263 263
             return new Label(
264 264
                 $label->getName()->toString(),
265 265
                 $label->isVisible()
@@ -290,7 +290,7 @@  discard block
 block discarded – undo
290 290
         foreach ($addedLabels->asArray() as $addedLabel) {
291 291
             $importLabels = $importLabels->with(
292 292
                 new \CultuurNet\UDB3\Model\ValueObject\Taxonomy\Label\Label(
293
-                    new LabelName((string) $addedLabel),
293
+                    new LabelName((string)$addedLabel),
294 294
                     $addedLabel->isVisible()
295 295
                 )
296 296
             );
@@ -359,7 +359,7 @@  discard block
 block discarded – undo
359 359
     protected function applyOrganizerImportedFromUDB2(
360 360
         OrganizerImportedFromUDB2 $organizerImported
361 361
     ) {
362
-        $this->actorId = (string) $organizerImported->getActorId();
362
+        $this->actorId = (string)$organizerImported->getActorId();
363 363
 
364 364
         // On import from UDB2 the default main language is 'nl'.
365 365
         $this->mainLanguage = new Language('nl');
Please login to merge, or discard this patch.
src/Offer/Commands/AbstractImportLabels.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -48,14 +48,14 @@  discard block
 block discarded – undo
48 48
     public function getLabelsToImport()
49 49
     {
50 50
         $labelNamesToKeep = array_map(
51
-            function (Label $label) {
51
+            function(Label $label) {
52 52
                 return $label->getName();
53 53
             },
54 54
             $this->labelsToKeepIfAlreadyOnOffer->toArray()
55 55
         );
56 56
 
57 57
         return $this->labels->filter(
58
-            function (Label $label) use ($labelNamesToKeep) {
58
+            function(Label $label) use ($labelNamesToKeep) {
59 59
                 return !in_array($label->getName(), $labelNamesToKeep);
60 60
             }
61 61
         );
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
     public function getNames()
68 68
     {
69 69
         return array_map(
70
-            function (Label $label) {
70
+            function(Label $label) {
71 71
                 return new StringLiteral($label->getName()->toString());
72 72
             },
73 73
             $this->getLabelsToImport()->toArray()
Please login to merge, or discard this patch.
src/Offer/ReadModel/JSONLD/CdbXMLItemBaseImporter.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -170,7 +170,7 @@  discard block
 block discarded – undo
170 170
 
171 171
         $mainLanguageDetails = array_filter(
172 172
             $details,
173
-            function (\CultureFeed_Cdb_Data_Detail $detail) use ($mainLanguage) {
173
+            function(\CultureFeed_Cdb_Data_Detail $detail) use ($mainLanguage) {
174 174
                 return $detail->getLanguage() === $mainLanguage->getCode();
175 175
             }
176 176
         );
@@ -235,14 +235,14 @@  discard block
 block discarded – undo
235 235
             foreach ($translatedTariffs as $tariffName => $tariffPrice) {
236 236
                 if (!isset($tariffs[$tariffIndex])) {
237 237
                     $tariff = new Tariff(
238
-                        new MultilingualString(new Language($language), new StringLiteral((string) $tariffName)),
238
+                        new MultilingualString(new Language($language), new StringLiteral((string)$tariffName)),
239 239
                         Price::fromFloat($tariffPrice),
240 240
                         Currency::fromNative('EUR')
241 241
                     );
242 242
                 } else {
243 243
                     $tariff = $tariffs[$tariffIndex];
244 244
                     $name = $tariff->getName();
245
-                    $name = $name->withTranslation(new Language($language), new StringLiteral((string) $tariffName));
245
+                    $name = $name->withTranslation(new Language($language), new StringLiteral((string)$tariffName));
246 246
                     $tariff = new Tariff(
247 247
                         $name,
248 248
                         $tariff->getPrice(),
Please login to merge, or discard this patch.