public static function cleanHasViewed() { $players = Data::loadPlayersWithOldMatches(); foreach ($players as $player) { \Own\Bus\Notification\Service::create($player['player_id'], 0, 'oldMatches', [['oldMatch', $player['total']]]); } return Data::cleanHasViewed(); }