mirror of
https://github.com/flarum/core.git
synced 2025-07-16 14:26:25 +02:00
Apply fixes from StyleCI
[ci skip] [skip ci]
This commit is contained in:
committed by
Daniël Klabbers
parent
e429558d0e
commit
65dd37278b
@ -96,9 +96,9 @@ class Post extends AbstractModel
|
|||||||
|
|
||||||
/** @var ConnectionInterface $db */
|
/** @var ConnectionInterface $db */
|
||||||
$db = static::getConnectionResolver();
|
$db = static::getConnectionResolver();
|
||||||
$post->number = new Expression('('. $db
|
$post->number = new Expression('('.$db
|
||||||
->table('posts', 'pn')
|
->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'))
|
->select($db->raw('max(pn.number) + 1'))
|
||||||
->toSql()
|
->toSql()
|
||||||
.')');
|
.')');
|
||||||
|
Reference in New Issue
Block a user