protected function makeResult($exception, $resourceChecker)
    {
        $message = $exception->getMessage()
            ? $exception->getMessage()
            : static::UNKNOWN_ERROR;

        if (! isset($resourceChecker)) {
            return [
                null,
                [
                    'healthy' => false,
                    'message' => $message,
                ],
            ];
        }

        $resourceChecker->makeResult(false, $message);

        return [$resourceChecker, null];
    }
protected function makeResult($exception, $resourceChecker)
    {
        $message = $exception->getMessage()
            ? $exception->getMessage()
            : static::UNKNOWN_ERROR;

        if (! isset($resourceChecker)) {
            return [
                null,
                [
                    'healthy' => false,
                    'message' => $message,
                ],
            ];
        }

        $resourceChecker->makeResult(false, $message);

        return [$resourceChecker, null];
    }
protected function makeResult ( $ exception , $ resourceChecker ) { $ message = $ exception -> getMessage ( ) ? $ exception -> getMessage ( ) : static :: UNKNOWN_ERROR ; if ( ! isset ( $ resourceChecker ) ) { return [ null , [ 'healthy' => false , 'message' => $ message , ] , ] ; } $ resourceChecker -> makeResult ( false , $ message ) ; return [ $ resourceChecker , null ] ; }
Make the result array.

@param $exception
@param $resourceChecker
@return array
Make the result array .