refactor: use increment/decrement assign

This commit is contained in:
HDVinnie
2020-04-24 11:37:59 -04:00
parent bf76798bd3
commit eb12908712
4 changed files with 4 additions and 4 deletions

View File

@@ -212,7 +212,7 @@ class Topic extends Model
{
$count = 0;
foreach ($this->posts as $post) {
$count += 1;
++$count;
if ($searchId == $post->id) {
break;
}