original_string: public function eachPermission(array $permissions, callable $callback)
      {
          $permissions = array_flatten($permissions);
  
          foreach ($permissions as $permission) {
              if ($permission = $this->preparePermission($permission)) {
                  $callback($permission);    
              }
          }
      }
code: public function eachPermission(array $permissions, callable $callback)
      {
          $permissions = array_flatten($permissions);
  
          foreach ($permissions as $permission) {
              if ($permission = $this->preparePermission($permission)) {
                  $callback($permission);    
              }
          }
      }
code_tokens: public function eachPermission ( array $ permissions , callable $ callback ) { $ permissions = array_flatten ( $ permissions ) ; foreach ( $ permissions as $ permission ) { if ( $ permission = $ this -> preparePermission ( $ permission ) ) { $ callback ( $ permission ) ; } } }
docstring: Calc each permission
  
  @param array $permissions
  @param callable $callback
docstring_tokens: Calc each permission