original_string: public function hasAnyPermission(...$permissions): bool
      {
          if (is_array($permissions[0])) {
              $permissions = $permissions[0];
          }
  
          foreach ($permissions as $permission) {
              if ($this->checkPermissionTo($permission)) {
                  return true;
              }
          }
  
          return false;
      }
code: public function hasAnyPermission(...$permissions): bool
      {
          if (is_array($permissions[0])) {
              $permissions = $permissions[0];
          }
  
          foreach ($permissions as $permission) {
              if ($this->checkPermissionTo($permission)) {
                  return true;
              }
          }
  
          return false;
      }
code_tokens: public function hasAnyPermission ( ... $ permissions ) : bool { if ( is_array ( $ permissions [ 0 ] ) ) { $ permissions = $ permissions [ 0 ] ; } foreach ( $ permissions as $ permission ) { if ( $ this -> checkPermissionTo ( $ permission ) ) { return true ; } } return false ; }
docstring: Determine if the model has any of the given permissions.
  
  @param array ...$permissions
  
  @return bool
  @throws \Exception
docstring_tokens: Determine if the model has any of the given permissions .