Skip to content

Commit 8d777e1

Browse files
committed
Apply fixes from StyleCI
1 parent 67d8134 commit 8d777e1

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

src/Models/Template.php

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,29 +39,32 @@ public static function content(Model $model, string $field)
3939
'[store_street_line_1]' => Rapidez::config('general/store_information/street_line1'),
4040
'[store_street_line_2]' => Rapidez::config('general/store_information/street_line2'),
4141
'[store_city]' => Rapidez::config('general/store_information/city'),
42-
'[store_postcode]' => Rapidez::config('general/store_information/postcode')
42+
'[store_postcode]' => Rapidez::config('general/store_information/postcode'),
4343
]));
4444

4545
// Remove double spaces
4646
return preg_replace('/\s+/', ' ', $value);
4747
}
4848

49-
protected static function getModelType(Model $model) {
49+
protected static function getModelType(Model $model)
50+
{
5051
return match (true) {
51-
$model instanceof Product => 1,
52+
$model instanceof Product => 1,
5253
$model instanceof Category => 2
5354
};
5455
}
5556

56-
protected static function getReplaceKeys(string $value) {
57+
protected static function getReplaceKeys(string $value)
58+
{
5759
preg_match_all('/\[(.*?)\]/', $value, $matches);
5860

5961
return $matches[0];
6062
}
6163

62-
protected static function getReplaceValue(Model $model, string $replaceKey) {
64+
protected static function getReplaceValue(Model $model, string $replaceKey)
65+
{
6366
$replace = match (true) {
64-
$model instanceof Product => str_replace('product_', '', $replaceKey),
67+
$model instanceof Product => str_replace('product_', '', $replaceKey),
6568
$model instanceof Category => str_replace('category_', '', $replaceKey)
6669
};
6770

0 commit comments

Comments
 (0)