Apply fixes from StyleCI

[ci skip] [skip ci]
This commit is contained in:
StyleCI Bot 2022-03-23 23:28:45 +00:00 committed by Daniël Klabbers
parent 6a65993ea5
commit 3ae113b897

View File

@ -99,7 +99,7 @@ class Post extends AbstractModel
$post->number = new Expression('('.$db
->table('posts', 'pn')
->whereRaw('pn.discussion_id = '.intval($post->discussion_id))
->select($db->raw('max('. $db->getTablePrefix() .'pn.number) + 1'))
->select($db->raw('max('.$db->getTablePrefix().'pn.number) + 1'))
->toSql()
.')');
});