Completed
Pull Request — master (#434)
by
unknown
34s
created
tests/Integration/CachedBuilder/WhereRawTest.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
             ->whereRaw("name != 'test3'")
35 35
             ->whereRaw('name = ? AND name != ?', [$authorName, "test2"])
36 36
             ->get();
37
-        $key = sha1("genealabs:laravel-model-caching:testing:{$this->testingSqlitePath}testing.sqlite:authors:genealabslaravelmodelcachingtestsfixturesauthor-name_!=_test-_and_name_!=_'test3'-_and_name_=_" . str_replace(" ", "_", $authorName) . "__AND_name_!=_test2-authors.deleted_at_null");
37
+        $key = sha1("genealabs:laravel-model-caching:testing:{$this->testingSqlitePath}testing.sqlite:authors:genealabslaravelmodelcachingtestsfixturesauthor-name_!=_test-_and_name_!=_'test3'-_and_name_=_".str_replace(" ", "_", $authorName)."__AND_name_!=_test2-authors.deleted_at_null");
38 38
         $tags = ["genealabs:laravel-model-caching:testing:{$this->testingSqlitePath}testing.sqlite:genealabslaravelmodelcachingtestsfixturesauthor"];
39 39
 
40 40
         $cachedResults = collect([$this->cache()->tags($tags)->get($key)['value']]);
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
         ];
71 71
 
72 72
         $authors = (new Author)
73
-            ->where(function ($query) {
73
+            ->where(function($query) {
74 74
                 $query->orWhereRaw("id BETWEEN 1 AND 3")
75 75
                     ->orWhereRaw("id BETWEEN 5 AND 6");
76 76
             })
@@ -82,13 +82,13 @@  discard block
 block discarded – undo
82 82
     public function testNestedWhereRawWithBindings()
83 83
     {
84 84
         $books = (new Book)
85
-            ->where(function ($query) {
86
-                $query->whereRaw("title like ? or description like ? or published_at like ? or price like ?", ['%larravel%', '%larravel%', '%larravel%', '%larravel%',]);
85
+            ->where(function($query) {
86
+                $query->whereRaw("title like ? or description like ? or published_at like ? or price like ?", ['%larravel%', '%larravel%', '%larravel%', '%larravel%', ]);
87 87
             })->get();
88 88
 
89 89
         $uncachedBooks = (new UncachedBook)
90
-            ->where(function ($query) {
91
-                $query->whereRaw("title like ? or description like ? or published_at like ? or price like ?", ['%larravel%', '%larravel%', '%larravel%', '%larravel%',]);
90
+            ->where(function($query) {
91
+                $query->whereRaw("title like ? or description like ? or published_at like ? or price like ?", ['%larravel%', '%larravel%', '%larravel%', '%larravel%', ]);
92 92
             })->get();
93 93
 
94 94
         $this->assertEquals($books->pluck("id"), $uncachedBooks->pluck("id"));
Please login to merge, or discard this patch.
tests/Integration/HelperTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
         $key = sha1("genealabs:laravel-model-caching:testing:{$this->testingSqlitePath}testing.sqlite:authors:genealabslaravelmodelcachingtestsfixturesauthor-authors.deleted_at_null");
12 12
         $tags = ["genealabs:laravel-model-caching:testing:{$this->testingSqlitePath}testing.sqlite:genealabslaravelmodelcachingtestsfixturesauthor"];
13 13
 
14
-        $authors = app("model-cache")->runDisabled(function () {
14
+        $authors = app("model-cache")->runDisabled(function() {
15 15
             return (new Author)
16 16
                 ->get();
17 17
         });
Please login to merge, or discard this patch.
tests/Integration/CachedModelTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
     {
111 111
         $books = (new Book)
112 112
             ->with('author')
113
-            ->whereHas('author', function ($query) {
113
+            ->whereHas('author', function($query) {
114 114
                 $query->whereId('1');
115 115
             })
116 116
             ->get();
@@ -134,14 +134,14 @@  discard block
 block discarded – undo
134 134
     {
135 135
         $books1 = (new Book)
136 136
             ->with('author')
137
-            ->whereHas('author', function ($query) {
137
+            ->whereHas('author', function($query) {
138 138
                 $query->whereId(1);
139 139
             })
140 140
             ->get()
141 141
             ->keyBy('id');
142 142
         $books2 = (new Book)
143 143
             ->with('author')
144
-            ->whereHas('author', function ($query) {
144
+            ->whereHas('author', function($query) {
145 145
                 $query->whereId(2);
146 146
             })
147 147
             ->get()
Please login to merge, or discard this patch.
tests/Integration/CachedBuilderTest.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
                 "genealabs:laravel-model-caching:testing:{$this->testingSqlitePath}testing.sqlite:genealabslaravelmodelcachingtestsfixturesbook"
49 49
             ])
50 50
             ->get(sha1(
51
-                "genealabs:laravel-model-caching:testing:{$this->testingSqlitePath}testing.sqlite:authors:genealabslaravelmodelcachingtestsfixturesauthor_1_2_3_4_5_6_" .
51
+                "genealabs:laravel-model-caching:testing:{$this->testingSqlitePath}testing.sqlite:authors:genealabslaravelmodelcachingtestsfixturesauthor_1_2_3_4_5_6_".
52 52
                 "7_8_9_10-genealabs:laravel-model-caching:testing:{$this->testingSqlitePath}testing.sqlite:genealabslaravelmodelcachingtestsfixturesbooks"
53 53
             ));
54 54
 
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
                 "genealabs:laravel-model-caching:testing:{$this->testingSqlitePath}testing.sqlite:genealabslaravelmodelcachingtestsfixturesbook"
67 67
             ])
68 68
             ->get(sha1(
69
-                "genealabs:laravel-model-caching:testing:{$this->testingSqlitePath}testing.sqlite:authors:genealabslaravelmodelcachingtestsfixturesauthor_1_2_3_4_5_6_" .
69
+                "genealabs:laravel-model-caching:testing:{$this->testingSqlitePath}testing.sqlite:authors:genealabslaravelmodelcachingtestsfixturesauthor_1_2_3_4_5_6_".
70 70
                 "7_8_9_10-genealabs:laravel-model-caching:testing:{$this->testingSqlitePath}testing.sqlite:genealabslaravelmodelcachingtestsfixturesbooks"
71 71
             ));
72 72
 
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
                 "genealabs:laravel-model-caching:testing:{$this->testingSqlitePath}testing.sqlite:genealabslaravelmodelcachingtestsfixturesbook"
84 84
             ])
85 85
             ->get(sha1(
86
-                "genealabs:laravel-model-caching:testing:{$this->testingSqlitePath}testing.sqlite:authors:genealabslaravelmodelcachingtestsfixturesauthor_1_2_3_4_5_6_" .
86
+                "genealabs:laravel-model-caching:testing:{$this->testingSqlitePath}testing.sqlite:authors:genealabslaravelmodelcachingtestsfixturesauthor_1_2_3_4_5_6_".
87 87
                 "7_8_9_10-genealabs:laravel-model-caching:testing:{$this->testingSqlitePath}testing.sqlite:genealabslaravelmodelcachingtestsfixturesbooks"
88 88
             ));
89 89
 
@@ -186,11 +186,11 @@  discard block
 block discarded – undo
186 186
         $chunkedKeys = [];
187 187
         $tags = ["genealabs:laravel-model-caching:testing:{$this->testingSqlitePath}testing.sqlite:genealabslaravelmodelcachingtestsfixturesauthor"];
188 188
         (new Author)
189
-            ->chunk(3, function ($authors) use (&$chunkedAuthors, &$chunkedKeys) {
189
+            ->chunk(3, function($authors) use (&$chunkedAuthors, &$chunkedKeys) {
190 190
                 $offset = "";
191 191
 
192 192
                 if (count($chunkedKeys)) {
193
-                    $offset = "-offset_" . (count($chunkedKeys) * 3);
193
+                    $offset = "-offset_".(count($chunkedKeys) * 3);
194 194
                 }
195 195
 
196 196
                 $key = "genealabs:laravel-model-caching:testing:{$this->testingSqlitePath}testing.sqlite:authors:genealabslaravelmodelcachingtestsfixturesauthor-authors.deleted_at_null_orderBy_authors.id_asc{$offset}-limit_3";
@@ -663,7 +663,7 @@  discard block
 block discarded – undo
663 663
             ->tags($tags1)
664 664
             ->rememberForever(
665 665
                 $key1,
666
-                function () use ($key2, $authors) {
666
+                function() use ($key2, $authors) {
667 667
                     return [
668 668
                         'key' => $key2,
669 669
                         'value' => $authors,
Please login to merge, or discard this patch.
tests/Integration/DisabledCachedBuilderTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
 
51 51
         $authors = (new Author)->with('books', 'profile')
52 52
             ->disableCache()
53
-            ->chunk($chunkSize, function ($chunk) use (&$cachedChunks, $chunkSize) {
53
+            ->chunk($chunkSize, function($chunk) use (&$cachedChunks, $chunkSize) {
54 54
                 $offset = '';
55 55
 
56 56
                 if ($cachedChunks['authors']->count()) {
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
             });
66 66
 
67 67
         $liveResults = (new UncachedAuthor)->with('books', 'profile')
68
-            ->chunk($chunkSize, function ($chunk) use (&$uncachedChunks) {
68
+            ->chunk($chunkSize, function($chunk) use (&$uncachedChunks) {
69 69
                 $uncachedChunks->push($chunk);
70 70
             });
71 71
 
Please login to merge, or discard this patch.
tests/Integration/CachedBuilder/SubQueryAddSelectTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
         /** @var Collection $publishers */
20 20
         $publishers = factory(UncachedPublisher::class, 5)->create();
21 21
 
22
-        $publishers->each(function (UncachedPublisher $publisher) {
22
+        $publishers->each(function(UncachedPublisher $publisher) {
23 23
             factory(UncachedBook::class, 2)->create(['publisher_id' => $publisher->id]);
24 24
         });
25 25
 
Please login to merge, or discard this patch.
tests/Integration/CachedBuilder/BooleanTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
         factory(Book::class)->create(['author_id' => $expectedAuthor->getKey(), 'title' => 'Mixed Clause']);
68 68
 
69 69
         $books = (new Book)
70
-            ->whereHas('author', function ($query) {
70
+            ->whereHas('author', function($query) {
71 71
                 return $query->where('is_famous', false);
72 72
             })
73 73
             ->whereRaw("title = ?", ['Mixed Clause']) // Test ensures this binding is included in the key
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
             ->tags($tags)
77 77
             ->get($key)['value'];
78 78
         $liveResults = (new UncachedBook)
79
-            ->whereHas('author', function ($query) {
79
+            ->whereHas('author', function($query) {
80 80
                 return $query->where('is_famous', false);
81 81
             })
82 82
             ->whereRaw("title = ?", ['Mixed Clause'])
Please login to merge, or discard this patch.
tests/Integration/CachedBuilder/ScopeTest.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
         $this->actingAs($user);
112 112
         $authorsA = (new AuthorBeginsWithScoped)
113 113
             ->all()
114
-            ->map(function ($author) {
114
+            ->map(function($author) {
115 115
                 return (new Str)->substr($author->name, 0, 1);
116 116
             })
117 117
             ->unique();
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
         $this->actingAs($user);
120 120
         $authorsB = (new AuthorBeginsWithScoped)
121 121
             ->all()
122
-            ->map(function ($author) {
122
+            ->map(function($author) {
123 123
                 return (new Str)->substr($author->name, 0, 1);
124 124
             })
125 125
             ->unique();
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
         $this->actingAs($user);
138 138
         $authorsA = (new AuthorBeginsWithScoped)
139 139
             ->get()
140
-            ->map(function ($author) {
140
+            ->map(function($author) {
141 141
                 return (new Str)->substr($author->name, 0, 1);
142 142
             })
143 143
             ->unique();
@@ -145,7 +145,7 @@  discard block
 block discarded – undo
145 145
         $this->actingAs($user);
146 146
         $authorsB = (new AuthorBeginsWithScoped)
147 147
             ->get()
148
-            ->map(function ($author) {
148
+            ->map(function($author) {
149 149
                 return (new Str)->substr($author->name, 0, 1);
150 150
             })
151 151
             ->unique();
@@ -164,7 +164,7 @@  discard block
 block discarded – undo
164 164
         $authorsA = (new AuthorBeginsWithScoped)
165 165
             ->withoutGlobalScopes()
166 166
             ->get()
167
-            ->map(function ($author) {
167
+            ->map(function($author) {
168 168
                 return (new Str)->substr($author->name, 0, 1);
169 169
             })
170 170
             ->unique();
@@ -173,7 +173,7 @@  discard block
 block discarded – undo
173 173
         $authorsB = (new AuthorBeginsWithScoped)
174 174
             ->withoutGlobalScopes(['GeneaLabs\LaravelModelCaching\Tests\Fixtures\Scopes\NameBeginsWith'])
175 175
             ->get()
176
-            ->map(function ($author) {
176
+            ->map(function($author) {
177 177
                 return (new Str)->substr($author->name, 0, 1);
178 178
             })
179 179
             ->unique();
@@ -190,7 +190,7 @@  discard block
 block discarded – undo
190 190
         $authorsA = (new AuthorBeginsWithScoped)
191 191
             ->withoutGlobalScope('GeneaLabs\LaravelModelCaching\Tests\Fixtures\Scopes\NameBeginsWith')
192 192
             ->get()
193
-            ->map(function ($author) {
193
+            ->map(function($author) {
194 194
                 return (new Str)->substr($author->name, 0, 1);
195 195
             })
196 196
             ->unique();
@@ -199,7 +199,7 @@  discard block
 block discarded – undo
199 199
         $authorsB = (new AuthorBeginsWithScoped)
200 200
             ->withoutGlobalScope('GeneaLabs\LaravelModelCaching\Tests\Fixtures\Scopes\NameBeginsWith')
201 201
             ->get()
202
-            ->map(function ($author) {
202
+            ->map(function($author) {
203 203
                 return (new Str)->substr($author->name, 0, 1);
204 204
             })
205 205
             ->unique();
@@ -213,13 +213,13 @@  discard block
 block discarded – undo
213 213
         $first = "A";
214 214
         $second = "B";
215 215
         $authors1 = (new Author)
216
-            ->with(['books' => static function (HasMany $model) use ($first) {
216
+            ->with(['books' => static function(HasMany $model) use ($first) {
217 217
                 $model->startsWith($first);
218 218
             }])
219 219
             ->get();
220 220
         $authors2 = (new Author)
221 221
             ->disableModelCaching()
222
-            ->with(['books' => static function (HasMany $model) use ($second) {
222
+            ->with(['books' => static function(HasMany $model) use ($second) {
223 223
                 $model->startsWith($second);
224 224
             }])
225 225
             ->get();
Please login to merge, or discard this patch.
src/CacheKey.php 1 patch
Spacing   +32 added lines, -32 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
 
60 60
     protected function getBindingsSlug() : string
61 61
     {
62
-        if (! method_exists($this->model, 'query')) {
62
+        if (!method_exists($this->model, 'query')) {
63 63
             return '';
64 64
         }
65 65
 
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
 
96 96
     protected function getInAndNotInClauses(array $where) : string
97 97
     {
98
-        if (! in_array($where["type"], ["In", "NotIn", "InRaw"])) {
98
+        if (!in_array($where["type"], ["In", "NotIn", "InRaw"])) {
99 99
             return "";
100 100
         }
101 101
 
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
             $this->currentBinding += count($where["values"]);
108 108
         }
109 109
 
110
-        if (! is_numeric($subquery) && ! is_numeric(str_replace("_", "", $subquery))) {
110
+        if (!is_numeric($subquery) && !is_numeric(str_replace("_", "", $subquery))) {
111 111
             try {
112 112
                 $subquery = Uuid::fromBytes($subquery);
113 113
                 $values = $this->recursiveImplode([$subquery], "_");
@@ -127,8 +127,8 @@  discard block
 block discarded – undo
127 127
 
128 128
     protected function getLimitClause() : string
129 129
     {
130
-        if (! property_exists($this->query, "limit")
131
-            || ! $this->query->limit
130
+        if (!property_exists($this->query, "limit")
131
+            || !$this->query->limit
132 132
         ) {
133 133
             return "";
134 134
         }
@@ -143,17 +143,17 @@  discard block
 block discarded – undo
143 143
 
144 144
     protected function getNestedClauses(array $where) : string
145 145
     {
146
-        if (! in_array($where["type"], ["Exists", "Nested", "NotExists"])) {
146
+        if (!in_array($where["type"], ["Exists", "Nested", "NotExists"])) {
147 147
             return "";
148 148
         }
149 149
 
150
-        return "-" . strtolower($where["type"]) . $this->getWhereClauses($where["query"]->wheres);
150
+        return "-".strtolower($where["type"]).$this->getWhereClauses($where["query"]->wheres);
151 151
     }
152 152
 
153 153
     protected function getOffsetClause() : string
154 154
     {
155
-        if (! property_exists($this->query, "offset")
156
-            || ! $this->query->offset
155
+        if (!property_exists($this->query, "offset")
156
+            || !$this->query->offset
157 157
         ) {
158 158
             return "";
159 159
         }
@@ -163,8 +163,8 @@  discard block
 block discarded – undo
163 163
 
164 164
     protected function getOrderByClauses() : string
165 165
     {
166
-        if (! property_exists($this->query, "orders")
167
-            || ! $this->query->orders
166
+        if (!property_exists($this->query, "orders")
167
+            || !$this->query->orders
168 168
         ) {
169 169
             return "";
170 170
         }
@@ -172,12 +172,12 @@  discard block
 block discarded – undo
172 172
         $orders = collect($this->query->orders);
173 173
 
174 174
         return $orders
175
-            ->reduce(function ($carry, $order) {
175
+            ->reduce(function($carry, $order) {
176 176
                 if (($order["type"] ?? "") === "Raw") {
177
-                    return $carry . "_orderByRaw_" . (new Str)->slug($order["sql"]);
177
+                    return $carry."_orderByRaw_".(new Str)->slug($order["sql"]);
178 178
                 }
179 179
 
180
-                return $carry . "_orderBy_" . $order["column"] . "_" . $order["direction"];
180
+                return $carry."_orderBy_".$order["column"]."_".$order["direction"];
181 181
             })
182 182
             ?: "";
183 183
     }
@@ -202,8 +202,8 @@  discard block
 block discarded – undo
202 202
     {
203 203
         if (($columns === ["*"]
204 204
                 || $columns === [])
205
-            && (! property_exists($this->query, "columns")
206
-                || ! $this->query->columns)
205
+            && (!property_exists($this->query, "columns")
206
+                || !$this->query->columns)
207 207
         ) {
208 208
             return "";
209 209
         }
@@ -211,15 +211,15 @@  discard block
 block discarded – undo
211 211
         if (property_exists($this->query, "columns")
212 212
             && $this->query->columns
213 213
         ) {
214
-            return "_" . implode("_", $this->query->columns);
214
+            return "_".implode("_", $this->query->columns);
215 215
         }
216 216
 
217
-        return "_" . implode("_", $columns);
217
+        return "_".implode("_", $columns);
218 218
     }
219 219
 
220 220
     protected function getRawClauses(array $where) : string
221 221
     {
222
-        if (! in_array($where["type"], ["raw"])) {
222
+        if (!in_array($where["type"], ["raw"])) {
223 223
             return "";
224 224
         }
225 225
 
@@ -227,7 +227,7 @@  discard block
 block discarded – undo
227 227
         $clause = "_{$where["boolean"]}";
228 228
 
229 229
         while (count($queryParts) > 1) {
230
-            $clause .= "_" . array_shift($queryParts);
230
+            $clause .= "_".array_shift($queryParts);
231 231
             $clause .= $this->getCurrentBinding("where");
232 232
             $this->currentBinding++;
233 233
         }
@@ -235,10 +235,10 @@  discard block
 block discarded – undo
235 235
         $lastPart = array_shift($queryParts);
236 236
 
237 237
         if ($lastPart) {
238
-            $clause .= "_" . $lastPart;
238
+            $clause .= "_".$lastPart;
239 239
         }
240 240
 
241
-        return "-" . str_replace(" ", "_", $clause);
241
+        return "-".str_replace(" ", "_", $clause);
242 242
     }
243 243
 
244 244
     protected function getTableSlug() : string
@@ -258,7 +258,7 @@  discard block
 block discarded – undo
258 258
 
259 259
     protected function getValuesClause(array $where = []) : string
260 260
     {
261
-        if (! $where
261
+        if (!$where
262 262
             || in_array($where["type"], ["NotNull", "Null"])
263 263
         ) {
264 264
             return "";
@@ -267,7 +267,7 @@  discard block
 block discarded – undo
267 267
         $values = $this->getValuesFromWhere($where);
268 268
         $values = $this->getValuesFromBindings($where, $values);
269 269
 
270
-        return "_" . $values;
270
+        return "_".$values;
271 271
     }
272 272
 
273 273
     protected function getValuesFromWhere(array $where) : string
@@ -296,7 +296,7 @@  discard block
 block discarded – undo
296 296
 
297 297
     protected function getValuesFromBindings(array $where, string $values) : string
298 298
     {
299
-        $bindingFallback = __CLASS__ . ':UNKNOWN_BINDING';
299
+        $bindingFallback = __CLASS__.':UNKNOWN_BINDING';
300 300
         $currentBinding = $this->getCurrentBinding("where", $bindingFallback);
301 301
 
302 302
         if ($currentBinding !== $bindingFallback) {
@@ -304,7 +304,7 @@  discard block
 block discarded – undo
304 304
             $this->currentBinding++;
305 305
 
306 306
             if ($where["type"] === "between") {
307
-                $values .= "_" . $this->getCurrentBinding("where");
307
+                $values .= "_".$this->getCurrentBinding("where");
308 308
                 $this->currentBinding++;
309 309
             }
310 310
         }
@@ -320,8 +320,8 @@  discard block
 block discarded – undo
320 320
 
321 321
     protected function getWhereClauses(array $wheres = []) : string
322 322
     {
323
-        return "" . $this->getWheres($wheres)
324
-            ->reduce(function ($carry, $where) {
323
+        return "".$this->getWheres($wheres)
324
+            ->reduce(function($carry, $where) {
325 325
                 $value = $carry;
326 326
                 $value .= $this->getNestedClauses($where);
327 327
                 $value .= $this->getColumnClauses($where);
@@ -354,8 +354,8 @@  discard block
 block discarded – undo
354 354
             return "";
355 355
         }
356 356
 
357
-        return $eagerLoads->keys()->reduce(function ($carry, $related) {
358
-            if (! method_exists($this->model, $related)) {
357
+        return $eagerLoads->keys()->reduce(function($carry, $related) {
358
+            if (!method_exists($this->model, $related)) {
359 359
                 return "{$carry}-{$related}";
360 360
             }
361 361
 
@@ -387,13 +387,13 @@  discard block
 block discarded – undo
387 387
                 continue;
388 388
             }
389 389
 
390
-            $result .= $glue . $value;
390
+            $result .= $glue.$value;
391 391
         }
392 392
 
393 393
         return $result;
394 394
     }
395 395
 
396
-    private function processEnum(\BackedEnum|\UnitEnum|string $value): string
396
+    private function processEnum(\BackedEnum | \UnitEnum | string $value): string
397 397
     {
398 398
         if ($value instanceof \BackedEnum) {
399 399
             return $value->value;
Please login to merge, or discard this patch.