public function replaceImageSize($message, $attribute, $rule, $parameters)
    {
        $width = $height = $this->checkDimension($parameters[0]);
        if (isset($parameters[1])) {
            $height = $this->checkDimension($parameters[1]);
        }

        return str_replace(
            [':width', ':height'],
            [$width['message'], $height['message']],
            $message
        );
    }
public function replaceImageSize($message, $attribute, $rule, $parameters)
    {
        $width = $height = $this->checkDimension($parameters[0]);
        if (isset($parameters[1])) {
            $height = $this->checkDimension($parameters[1]);
        }

        return str_replace(
            [':width', ':height'],
            [$width['message'], $height['message']],
            $message
        );
    }
public function replaceImageSize ( $ message , $ attribute , $ rule , $ parameters ) { $ width = $ height = $ this -> checkDimension ( $ parameters [ 0 ] ) ; if ( isset ( $ parameters [ 1 ] ) ) { $ height = $ this -> checkDimension ( $ parameters [ 1 ] ) ; } return str_replace ( [ ':width' , ':height' ] , [ $ width [ 'message' ] , $ height [ 'message' ] ] , $ message ) ; }
Build the error message for validation failures.

@param  string $message
@param  string $attribute
@param  string $rule
@param  array $parameters
@return string
Build the error message for validation failures .