original_string: public function eachRole(array $roles, callable $callback)
      {
          $roles = array_flatten($roles);
  
          foreach ($roles as $role) {
              if ($role = $this->prepareRole($role)) {
                  $callback($role);    
              }
          }
      }
code: public function eachRole(array $roles, callable $callback)
      {
          $roles = array_flatten($roles);
  
          foreach ($roles as $role) {
              if ($role = $this->prepareRole($role)) {
                  $callback($role);    
              }
          }
      }
code_tokens: public function eachRole ( array $ roles , callable $ callback ) { $ roles = array_flatten ( $ roles ) ; foreach ( $ roles as $ role ) { if ( $ role = $ this -> prepareRole ( $ role ) ) { $ callback ( $ role ) ; } } }
docstring: Calc each rote
  
  @param array $roles
  @param callable $callback
docstring_tokens: Calc each rote