Passed
Push — master ( 9c76a8...94f343 )
by Bertrand
34:04 queued 24:59
created
app/Observers/PageObserver.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -23,8 +23,8 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
         });
Please login to merge, or discard this patch.
app/Src/UseCases/Infra/Sql/Model/CharacteristicsModel.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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()
Please login to merge, or discard this patch.