public function printRoles()
    {
        $line = [];
        array_map(function ($role) use (&$line) {
            if ($text = $role->toString()) {
                $line[] = $text;
            }
        }, $this->allRoles);
        Log::logPrint(implode(', ', $line));
    }
public function printRoles()
    {
        $line = [];
        array_map(function ($role) use (&$line) {
            if ($text = $role->toString()) {
                $line[] = $text;
            }
        }, $this->allRoles);
        Log::logPrint(implode(', ', $line));
    }
public function printRoles ( ) { $ line = [ ] ; array_map ( function ( $ role ) use ( & $ line ) { if ( $ text = $ role -> toString ( ) ) { $ line [ ] = $ text ; } } , $ this -> allRoles ) ; Log :: logPrint ( implode ( ', ' , $ line ) ) ; }
prints all the roles to log.
prints all the roles to log .