Completed
Pull Request — master (#397)
by Luc
03:50
created
src/Storage/DBALPurgeService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
         $this->connection->exec($sql);
43 43
 
44 44
         if ($platform instanceof SqlitePlatform) {
45
-            $sql = 'UPDATE SQLITE_SEQUENCE SET SEQ=0 WHERE NAME=' . $this->connection->quoteIdentifier($this->tableName);
45
+            $sql = 'UPDATE SQLITE_SEQUENCE SET SEQ=0 WHERE NAME='.$this->connection->quoteIdentifier($this->tableName);
46 46
             $this->connection->exec($sql);
47 47
         }
48 48
     }
Please login to merge, or discard this patch.
src/MyOrganizers/ReadModel/Doctrine/DBALLookupService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@
 block discarded – undo
62 62
         // @todo transform @id here to an object that has a full URL
63 63
         // when json-encoded
64 64
         $organizers = array_map(
65
-            function ($resultRow) {
65
+            function($resultRow) {
66 66
                 return [
67 67
                     '@id' => $this->iriGenerator->iri($resultRow[Columns::ID]),
68 68
                     '@type' => 'Organizer',
Please login to merge, or discard this patch.
src/Cdb/ItemBaseAdapter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
             );
36 36
         }
37 37
 
38
-        return isset($userId) ? (string) $userId : '';
38
+        return isset($userId) ? (string)$userId : '';
39 39
     }
40 40
 
41 41
     public function getCreationDateTime(): ?DateTimeImmutable
Please login to merge, or discard this patch.
src/MyOrganizers/ReadModel/Doctrine/DBALHelperTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,6 +11,6 @@
 block discarded – undo
11 11
 
12 12
     public function parameter(string $name): string
13 13
     {
14
-        return ':' . $name;
14
+        return ':'.$name;
15 15
     }
16 16
 }
Please login to merge, or discard this patch.
src/ReadModel/Index/UDB2Projector.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
         $this->repository->updateIndex(
106 106
             $itemId,
107 107
             $itemType,
108
-            (string) $userId,
108
+            (string)$userId,
109 109
             $name,
110 110
             $postalCode,
111 111
             $city,
Please login to merge, or discard this patch.
src/Event/ReadModel/JSONLD/RelatedEventLDProjector.php 2 patches
Doc Comments   +17 added lines patch added patch discarded remove patch
@@ -98,26 +98,43 @@
 block discarded – undo
98 98
         }
99 99
     }
100 100
 
101
+    /**
102
+     * @param string $eventId
103
+     */
101 104
     private function updateEmbeddedOrganizer($eventId, $organizerJSONLD)
102 105
     {
103 106
         $this->updateJSONLD(
104 107
             $eventId,
108
+
109
+            /**
110
+             * @param string $eventLd
111
+             */
105 112
             function ($eventLd) use ($organizerJSONLD) {
106 113
                 $eventLd->organizer = $organizerJSONLD;
107 114
             }
108 115
         );
109 116
     }
110 117
 
118
+    /**
119
+     * @param string $eventId
120
+     */
111 121
     private function updatedEmbeddedLocation($eventId, $placeJSONLD)
112 122
     {
113 123
         $this->updateJSONLD(
114 124
             $eventId,
125
+
126
+            /**
127
+             * @param string $eventLd
128
+             */
115 129
             function ($eventLd) use ($placeJSONLD) {
116 130
                 $eventLd->location = $placeJSONLD;
117 131
             }
118 132
         );
119 133
     }
120 134
 
135
+    /**
136
+     * @param \Closure $callback
137
+     */
121 138
     private function updateJSONLD($eventId, $callback)
122 139
     {
123 140
         $document = $this->repository->get($eventId);
Please login to merge, or discard this 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
         $this->updateJSONLD(
104 104
             $eventId,
105
-            function ($eventLd) use ($organizerJSONLD) {
105
+            function($eventLd) use ($organizerJSONLD) {
106 106
                 $eventLd->organizer = $organizerJSONLD;
107 107
             }
108 108
         );
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
     {
113 113
         $this->updateJSONLD(
114 114
             $eventId,
115
-            function ($eventLd) use ($placeJSONLD) {
115
+            function($eventLd) use ($placeJSONLD) {
116 116
                 $eventLd->location = $placeJSONLD;
117 117
             }
118 118
         );
Please login to merge, or discard this patch.
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/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.