original_string: private function disableAll()
      {
          // set all non-error endpoints to disabled
          $this->getEndpoints()->map(function (Endpoint $endpoint) {
              if ($endpoint->isError() === false) {
                  $endpoint->setStatus(Endpoint::STATUS_DISABLED);
              }
          });
      }
code: private function disableAll()
      {
          // set all non-error endpoints to disabled
          $this->getEndpoints()->map(function (Endpoint $endpoint) {
              if ($endpoint->isError() === false) {
                  $endpoint->setStatus(Endpoint::STATUS_DISABLED);
              }
          });
      }
code_tokens: private function disableAll ( ) { // set all non-error endpoints to disabled $ this -> getEndpoints ( ) -> map ( function ( Endpoint $ endpoint ) { if ( $ endpoint -> isError ( ) === false ) { $ endpoint -> setStatus ( Endpoint :: STATUS_DISABLED ) ; } } ) ; }
docstring: Disable all endpoints, except the ones in error.
  
  @throws InputException
docstring_tokens: Disable all endpoints except the ones in error .