@@ -23,8 +23,8 @@ discard block |
||
23 | 23 | |
24 | 24 | public function deleted(PageModel $pageModel) |
25 | 25 | { |
26 | - Log::info('Deleting all data from the page internal id: ' . $pageModel->id); |
|
27 | - DB::transaction(function () use($pageModel){ |
|
26 | + Log::info('Deleting all data from the page internal id: '.$pageModel->id); |
|
27 | + DB::transaction(function() use($pageModel){ |
|
28 | 28 | try { |
29 | 29 | $characteristic = CharacteristicsModel::query()->where('page_id', $pageModel->page_id)->first(); |
30 | 30 | if (isset($characteristic)) { |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | UserCharacteristicsModel::query()->where('characteristic_id', $characteristic->id)->delete(); |
37 | 37 | } |
38 | 38 | } catch (\Throwable $e) { |
39 | - Log::emergency('Error deleting all data from the page internal id: ' . $pageModel->id); |
|
39 | + Log::emergency('Error deleting all data from the page internal id: '.$pageModel->id); |
|
40 | 40 | throw $e; |
41 | 41 | } |
42 | 42 | }); |
@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | public function toDto() |
44 | 44 | { |
45 | 45 | $icon = null; |
46 | - if(isset($this->icon)){ |
|
46 | + if (isset($this->icon)) { |
|
47 | 47 | $icon = route('api.icon.serve', ['id' => $this->uuid]); |
48 | 48 | } |
49 | 49 | return new CharacteristicDto( |
@@ -58,7 +58,7 @@ discard block |
||
58 | 58 | |
59 | 59 | public function picturePath():string |
60 | 60 | { |
61 | - return storage_path('app/public/characteristics/' . $this->uuid . '.png'); |
|
61 | + return storage_path('app/public/characteristics/'.$this->uuid.'.png'); |
|
62 | 62 | } |
63 | 63 | |
64 | 64 | public function toDomain() |