Add rule for concatenation operator spacing

[MAILPOET-2090]
This commit is contained in:
Pavel Dohnal
2019-05-20 14:12:31 +02:00
committed by M. Shull
parent 12ff88ee21
commit 5d64ec168d
61 changed files with 273 additions and 267 deletions

View File

@@ -15,7 +15,7 @@ class SubscriberSegment extends Model {
public static $_table = MP_SUBSCRIBER_SEGMENT_TABLE;
function subscriber() {
return $this->has_one(__NAMESPACE__.'\Subscriber', 'id', 'subscriber_id');
return $this->has_one(__NAMESPACE__ . '\Subscriber', 'id', 'subscriber_id');
}
static function unsubscribeFromSegments($subscriber, $segment_ids = []) {
@@ -112,9 +112,9 @@ class SubscriberSegment extends Model {
}
$query = [
'INSERT IGNORE INTO `'.self::$_table.'`',
'INSERT IGNORE INTO `' . self::$_table . '`',
'(`subscriber_id`, `segment_id`, `created_at`)',
'VALUES '.rtrim(str_repeat('(?, ?, NOW()),', $row_count), ','),
'VALUES ' . rtrim(str_repeat('(?, ?, NOW()),', $row_count), ','),
];
self::rawExecute(join(' ', $query), $values);