This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
foreach($users as $key => $user) // <--- $user is used only (1), $key is used only for indexing in array | |
{ | |
$id = $user['id']; // <--- (1)here | |
if($id == $currentUserId) | |
unset($users[$key]); | |
if($tags != null) // not strict comparison with null, (2) | |
{ | |
$tmpTags = $tagsRepo->createQueryAllByUserId($id)->getResult(); // <--- WAT?! |
NewerOlder