22
33namespace Buildcode \LaravelDatabaseEmails ;
44
5- use Illuminate \Database \Eloquent \Model ;
6- use Carbon \Carbon ;
75use Exception ;
6+ use Carbon \Carbon ;
7+ use Illuminate \Database \Eloquent \Model ;
88
99/**
1010 * @property $id
@@ -124,7 +124,7 @@ public function getRecipientsAsString()
124124 {
125125 $ glue = ', ' ;
126126
127- return implode ($ glue , (array )$ this ->recipient );
127+ return implode ($ glue , (array ) $ this ->recipient );
128128 }
129129
130130 /**
@@ -164,7 +164,6 @@ public function getSubject()
164164 */
165165 public function getView ()
166166 {
167-
168167 return $ this ->view ;
169168 }
170169
@@ -225,7 +224,7 @@ public function getScheduledDate()
225224 */
226225 public function hasVariables ()
227226 {
228- return !is_null ($ this ->variables );
227+ return ! is_null ($ this ->variables );
229228 }
230229
231230 /**
@@ -299,7 +298,7 @@ public function hasBcc()
299298 */
300299 public function isScheduled ()
301300 {
302- return !is_null ($ this ->getScheduledDate ());
301+ return ! is_null ($ this ->getScheduledDate ());
303302 }
304303
305304 /**
@@ -309,7 +308,7 @@ public function isScheduled()
309308 */
310309 public function isEncrypted ()
311310 {
312- return !! $ this ->getOriginal ('encrypted ' );
311+ return ( bool ) $ this ->getOriginal ('encrypted ' );
313312 }
314313
315314 /**
@@ -319,7 +318,7 @@ public function isEncrypted()
319318 */
320319 public function isSent ()
321320 {
322- return !is_null ($ this ->sent_at );
321+ return ! is_null ($ this ->sent_at );
323322 }
324323
325324 /**
@@ -373,7 +372,7 @@ public function markAsFailed(Exception $exception)
373372 $ this ->update ([
374373 'sending ' => 0 ,
375374 'failed ' => 1 ,
376- 'error ' => (string )$ exception ,
375+ 'error ' => (string ) $ exception ,
377376 ]);
378377 }
379378
0 commit comments