Completed
Push — master ( 969583...51d9c2 )
by Julien
06:28
created
src/models/Fight.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -112,15 +112,15 @@
 block discarded – undo
112 112
     {
113 113
         $isTeam = $this->group->championship->category->isTeam;
114 114
         if ($isTeam) {
115
-            $teamToUpdate = 'team'.$numFighter;
115
+            $teamToUpdate = 'team' . $numFighter;
116 116
 
117 117
             return optional($this->$teamToUpdate)->$attr;
118 118
         }
119
-        $competitorToUpdate = 'competitor'.$numFighter;
119
+        $competitorToUpdate = 'competitor' . $numFighter;
120 120
         if ($attr == 'name') {
121 121
             return $this->$competitorToUpdate == null
122 122
                 ? ''
123
-                : $this->$competitorToUpdate->user->firstname.' '.$this->$competitorToUpdate->user->lastname;
123
+                : $this->$competitorToUpdate->user->firstname . ' ' . $this->$competitorToUpdate->user->lastname;
124 124
         } elseif ($attr == 'short_id') {
125 125
             return optional($this->$competitorToUpdate)->short_id;
126 126
         }
Please login to merge, or discard this patch.