File tree Expand file tree Collapse file tree 3 files changed +6
-9
lines changed
src/Charcoal/CookieConsent/Model Expand file tree Collapse file tree 3 files changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ class Category extends Content
26
26
public function getHandle (): ?string
27
27
{
28
28
if (\is_null ($ this ->handle ) && $ this ->name ) {
29
- $ this ->setHandle ((string ) $ this ->name );
29
+ $ this ->setHandle ((string )$ this ->name );
30
30
}
31
31
32
32
return $ this ->handle ;
@@ -165,7 +165,7 @@ protected function sanitizeKey($key): ?string
165
165
':: Any-Latin; :: Latin-ASCII; :: NFD; :: [:Nonspacing Mark:] Remove; :: Lower(); :: NFC; ' ,
166
166
Transliterator::FORWARD
167
167
);
168
- $ key = $ transliterator ->transliterate ((string ) $ key );
168
+ $ key = $ transliterator ->transliterate ((string )$ key );
169
169
if (!$ key ) {
170
170
return null ;
171
171
}
Original file line number Diff line number Diff line change @@ -76,6 +76,6 @@ public function setRevisionNumber($number): self
76
76
*/
77
77
protected function sanitizeRevisionNumber ($ number ): int
78
78
{
79
- return \min (0 , \abs ((int ) $ number ));
79
+ return \min (0 , \abs ((int )$ number ));
80
80
}
81
81
}
Original file line number Diff line number Diff line change @@ -175,17 +175,14 @@ public function isSupportedTarget($target): bool
175
175
public function getHref ()
176
176
{
177
177
switch ($ this ->getType ()) {
178
- case self ::TYPE_FILE : {
178
+ case self ::TYPE_FILE :
179
179
return $ this ->getFilePath ();
180
- }
181
180
182
- case self ::TYPE_MODEL : {
181
+ case self ::TYPE_MODEL :
183
182
return $ this ->getModel ()['url ' ];
184
- }
185
183
186
- case self ::TYPE_URL : {
184
+ case self ::TYPE_URL :
187
185
return $ this ->getUrl ();
188
- }
189
186
}
190
187
191
188
return null ;
You can’t perform that action at this time.
0 commit comments