@@ -145,10 +145,11 @@ discard block |
||
| 145 | 145 | */ |
| 146 | 146 | public function getUpdatedAtHumanAttribute() |
| 147 | 147 | { |
| 148 | - if ($this->updated_at->diffInDays() > 0) |
|
| 149 | - return $this->updated_at->setTimezone(Auth::user()->timezone)->format('M d, Y h:i a'); |
|
| 150 | - else |
|
| 151 | - return $this->updated_at->diffForHumans(); |
|
| 148 | + if ($this->updated_at->diffInDays() > 0) { |
|
| 149 | + return $this->updated_at->setTimezone(Auth::user()->timezone)->format('M d, Y h:i a'); |
|
| 150 | + } else { |
|
| 151 | + return $this->updated_at->diffForHumans(); |
|
| 152 | + } |
|
| 152 | 153 | } |
| 153 | 154 | |
| 154 | 155 | /** |
@@ -163,9 +164,10 @@ discard block |
||
| 163 | 164 | */ |
| 164 | 165 | public function getCreatedAtHumanAttribute() |
| 165 | 166 | { |
| 166 | - if ($this->created_at->diffInDays() > 0) |
|
| 167 | - return $this->created_at->setTimezone(Auth::user()->timezone)->format('M d, Y h:i a'); |
|
| 168 | - else |
|
| 169 | - return $this->created_at->diffForHumans(); |
|
| 167 | + if ($this->created_at->diffInDays() > 0) { |
|
| 168 | + return $this->created_at->setTimezone(Auth::user()->timezone)->format('M d, Y h:i a'); |
|
| 169 | + } else { |
|
| 170 | + return $this->created_at->diffForHumans(); |
|
| 171 | + } |
|
| 170 | 172 | } |
| 171 | 173 | } |
| 172 | 174 | \ No newline at end of file |
@@ -89,10 +89,11 @@ discard block |
||
| 89 | 89 | */ |
| 90 | 90 | public function getUpdatedAtHumanAttribute() |
| 91 | 91 | { |
| 92 | - if ($this->updated_at->diffInDays() > 0) |
|
| 93 | - return $this->updated_at->setTimezone(Auth::user()->timezone)->format('M d, Y h:i a'); |
|
| 94 | - else |
|
| 95 | - return $this->updated_at->diffForHumans(); |
|
| 92 | + if ($this->updated_at->diffInDays() > 0) { |
|
| 93 | + return $this->updated_at->setTimezone(Auth::user()->timezone)->format('M d, Y h:i a'); |
|
| 94 | + } else { |
|
| 95 | + return $this->updated_at->diffForHumans(); |
|
| 96 | + } |
|
| 96 | 97 | } |
| 97 | 98 | |
| 98 | 99 | /** |
@@ -107,9 +108,10 @@ discard block |
||
| 107 | 108 | */ |
| 108 | 109 | public function getCreatedAtHumanAttribute() |
| 109 | 110 | { |
| 110 | - if ($this->created_at->diffInDays() > 0) |
|
| 111 | - return $this->created_at->setTimezone(Auth::user()->timezone)->format('M d, Y h:i a'); |
|
| 112 | - else |
|
| 113 | - return $this->created_at->diffForHumans(); |
|
| 111 | + if ($this->created_at->diffInDays() > 0) { |
|
| 112 | + return $this->created_at->setTimezone(Auth::user()->timezone)->format('M d, Y h:i a'); |
|
| 113 | + } else { |
|
| 114 | + return $this->created_at->diffForHumans(); |
|
| 115 | + } |
|
| 114 | 116 | } |
| 115 | 117 | } |