src/Stack.php
private function getTypes($middleware)
    {
        $types = [];

        if ($middleware instanceof PrepareableInterface) {
            $types[] = 'prepareable';
        }
        if ($middleware instanceof RespondableInterface) {
            $types[] = 'respondable';
        }
        if ($middleware instanceof CloseableInterface) {
            $types[] = 'closeable';
        }

        return $types;
    }
private function getTypes($middleware)
    {
        $types = [];

        if ($middleware instanceof PrepareableInterface) {
            $types[] = 'prepareable';
        }
        if ($middleware instanceof RespondableInterface) {
            $types[] = 'respondable';
        }
        if ($middleware instanceof CloseableInterface) {
            $types[] = 'closeable';
        }

        return $types;
    }
private function getTypes ( $ middleware ) { $ types = [ ] ; if ( $ middleware instanceof PrepareableInterface ) { $ types [ ] = 'prepareable' ; } if ( $ middleware instanceof RespondableInterface ) { $ types [ ] = 'respondable' ; } if ( $ middleware instanceof CloseableInterface ) { $ types [ ] = 'closeable' ; } return $ types ; }
Returns the applicable types for the middleware
@param mixed $middleware
@return array
Returns the applicable types for the middleware