mirror of
https://github.com/HDInnovations/UNIT3D-Community-Edition.git
synced 2026-02-15 16:19:27 -06:00
refactor: use increment/decrement assign
This commit is contained in:
@@ -212,7 +212,7 @@ class Topic extends Model
|
||||
{
|
||||
$count = 0;
|
||||
foreach ($this->posts as $post) {
|
||||
$count += 1;
|
||||
++$count;
|
||||
if ($searchId == $post->id) {
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user