src/Comodojo/Dispatcher/Response/Preprocessor.php
public function get($status) {

        $preprocessor = $this->has($status) ?
            $this->preprocessors[$status] :
            $this->preprocessors[self::DEFAULT_STATUS];

        return ($preprocessor instanceof HttpStatusPreprocessorInterface) ?
            $preprocessor : new $preprocessor;

    }
public function get($status) {

        $preprocessor = $this->has($status) ?
            $this->preprocessors[$status] :
            $this->preprocessors[self::DEFAULT_STATUS];

        return ($preprocessor instanceof HttpStatusPreprocessorInterface) ?
            $preprocessor : new $preprocessor;

    }
public function get ( $ status ) { $ preprocessor = $ this -> has ( $ status ) ? $ this -> preprocessors [ $ status ] : $ this -> preprocessors [ self :: DEFAULT_STATUS ] ; return ( $ preprocessor instanceof HttpStatusPreprocessorInterface ) ? $ preprocessor : new $ preprocessor ; }
Get an instance of the preprocessor for the current status

@param int $status
The HTTP status to use
@return HttpStatusPreprocessorInterface
Get an instance of the preprocessor for the current status