Remove return nulls

This commit is contained in:
Nabeel Shahzad 2018-09-08 11:40:03 -05:00
parent daffd1017f
commit 146fe05bdc

View File

@ -169,8 +169,6 @@ class Pirep extends Model
if (array_key_exists('block_off_time', $this->attributes)) { if (array_key_exists('block_off_time', $this->attributes)) {
return new Carbon($this->attributes['block_off_time']); return new Carbon($this->attributes['block_off_time']);
} }
return null;
} }
/** /**
@ -183,8 +181,6 @@ class Pirep extends Model
if (array_key_exists('block_on_time', $this->attributes)) { if (array_key_exists('block_on_time', $this->attributes)) {
return new Carbon($this->attributes['block_on_time']); return new Carbon($this->attributes['block_on_time']);
} }
return null;
} }
/** /**
@ -197,8 +193,6 @@ class Pirep extends Model
if (array_key_exists('submitted_at', $this->attributes)) { if (array_key_exists('submitted_at', $this->attributes)) {
return new Carbon($this->attributes['submitted_at']); return new Carbon($this->attributes['submitted_at']);
} }
return null;
} }
/** /**