mirror of
https://github.com/flarum/framework.git
synced 2025-02-21 17:06:40 +08:00
Apply fixes from StyleCI
[ci skip] [skip ci]
This commit is contained in:
parent
e429558d0e
commit
65dd37278b
@ -96,9 +96,9 @@ class Post extends AbstractModel
|
||||
|
||||
/** @var ConnectionInterface $db */
|
||||
$db = static::getConnectionResolver();
|
||||
$post->number = new Expression('('. $db
|
||||
$post->number = new Expression('('.$db
|
||||
->table('posts', 'pn')
|
||||
->whereRaw('pn.discussion_id = ' . intval($post->discussion_id))
|
||||
->whereRaw('pn.discussion_id = '.intval($post->discussion_id))
|
||||
->select($db->raw('max(pn.number) + 1'))
|
||||
->toSql()
|
||||
.')');
|
||||
|
Loading…
x
Reference in New Issue
Block a user