Add space between if and ‘(‘
[MAILPOET-1791]
This commit is contained in:
@@ -18,17 +18,17 @@ class StatsNotification extends Model {
|
||||
static function createOrUpdate($data = array()) {
|
||||
$model = null;
|
||||
|
||||
if(isset($data['id']) && (int)$data['id'] > 0) {
|
||||
if (isset($data['id']) && (int)$data['id'] > 0) {
|
||||
$model = static::findOne((int)$data['id']);
|
||||
}
|
||||
|
||||
if(!$model && isset($data['task_id']) && $data['newsletter_id']) {
|
||||
if (!$model && isset($data['task_id']) && $data['newsletter_id']) {
|
||||
$model = self::where('newsletter_id', $data['newsletter_id'])
|
||||
->where('task_id', $data['task_id'])
|
||||
->findOne();
|
||||
}
|
||||
|
||||
if(!$model) {
|
||||
if (!$model) {
|
||||
$model = static::create();
|
||||
$model->hydrate($data);
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user