original_string: 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
          );
      }
code: 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
          );
      }
code_tokens: 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 ) ; }
docstring: Build the error message for validation failures.
  
  @param  string $message
  @param  string $attribute
  @param  string $rule
  @param  array $parameters
  @return string
docstring_tokens: Build the error message for validation failures .