private function shrinkParameters(array $parameters, array $combination)
    {
        array_shift($parameters);
        $result = '';

        $maxLength  = $this->maxCharWidth;
        $maxLength -= count($parameters) * 5;
        $maxLength /= count($parameters);

        foreach ($parameters as $key => $value) {
            $isLarger = false;

            if (strlen($value) > $maxLength) {
                $value = wordwrap($value, $maxLength, "\n", true);
                $value = explode("\n", $value);
                $value = $value[0];

                $isLarger = true;
            }
            $value = self::escapeFunction($value);

            if (! is_numeric($value)) {
                $value = substr($value, 1, -1);
            }

            if ($isLarger) {
                $value .= ' [...]';
            }

            $result .= ' ' . $combination[$key] . ' ' . $value;
        }

        return trim($result);
    }
private function shrinkParameters(array $parameters, array $combination)
    {
        array_shift($parameters);
        $result = '';

        $maxLength  = $this->maxCharWidth;
        $maxLength -= count($parameters) * 5;
        $maxLength /= count($parameters);

        foreach ($parameters as $key => $value) {
            $isLarger = false;

            if (strlen($value) > $maxLength) {
                $value = wordwrap($value, $maxLength, "\n", true);
                $value = explode("\n", $value);
                $value = $value[0];

                $isLarger = true;
            }
            $value = self::escapeFunction($value);

            if (! is_numeric($value)) {
                $value = substr($value, 1, -1);
            }

            if ($isLarger) {
                $value .= ' [...]';
            }

            $result .= ' ' . $combination[$key] . ' ' . $value;
        }

        return trim($result);
    }
private function shrinkParameters ( array $ parameters , array $ combination ) { array_shift ( $ parameters ) ; $ result = '' ; $ maxLength = $ this -> maxCharWidth ; $ maxLength -= count ( $ parameters ) * 5 ; $ maxLength /= count ( $ parameters ) ; foreach ( $ parameters as $ key => $ value ) { $ isLarger = false ; if ( strlen ( $ value ) > $ maxLength ) { $ value = wordwrap ( $ value , $ maxLength , "\n" , true ) ; $ value = explode ( "\n" , $ value ) ; $ value = $ value [ 0 ] ; $ isLarger = true ; } $ value = self :: escapeFunction ( $ value ) ; if ( ! is_numeric ( $ value ) ) { $ value = substr ( $ value , 1 , - 1 ) ; } if ( $ isLarger ) { $ value .= ' [...]' ; } $ result .= ' ' . $ combination [ $ key ] . ' ' . $ value ; } return trim ( $ result ) ; }
Shrink the values of parameters from a combination

@param array $parameters
@param array $combination

@return string
Shrink the values of parameters from a combination