Subversion-Projekte lars-tiefland.laravel_shop

Revision

Revision 148 | Ganze Datei anzeigen | Leerzeichen ignorieren | Details | Blame | Letzte Änderung | Log anzeigen | RSS feed

Revision 148 Revision 991
Zeile 182... Zeile 182...
182
        if ($bin) {
182
        if ($bin) {
183
            $str = $this->utf8Encode($str);
183
            $str = $this->utf8Encode($str);
184
        }
184
        }
185
        if ('' === $str) {
185
        if ('' === $str) {
186
            $this->line .= '""';
186
            $this->line .= '""';
-
 
187
            if ($cut) {
-
 
188
                $this->line .= '…'.$cut;
-
 
189
            }
187
            $this->endValue($cursor);
190
            $this->endValue($cursor);
188
        } else {
191
        } else {
189
            $attr += [
192
            $attr += [
190
                'length' => 0 <= $cut ? mb_strlen($str, 'UTF-8') + $cut : 0,
193
                'length' => 0 <= $cut ? mb_strlen($str, 'UTF-8') + $cut : 0,
191
                'binary' => $bin,
194
                'binary' => $bin,
Zeile 416... Zeile 419...
416
    protected function style(string $style, string $value, array $attr = []): string
419
    protected function style(string $style, string $value, array $attr = []): string
417
    {
420
    {
418
        $this->colors ??= $this->supportsColors();
421
        $this->colors ??= $this->supportsColors();
Zeile 419... Zeile 422...
419
 
422
 
420
        $this->handlesHrefGracefully ??= 'JetBrains-JediTerm' !== getenv('TERMINAL_EMULATOR')
423
        $this->handlesHrefGracefully ??= 'JetBrains-JediTerm' !== getenv('TERMINAL_EMULATOR')
-
 
424
            && (!getenv('KONSOLE_VERSION') || (int) getenv('KONSOLE_VERSION') > 201100)
Zeile 421... Zeile 425...
421
            && (!getenv('KONSOLE_VERSION') || (int) getenv('KONSOLE_VERSION') > 201100);
425
            && !isset($_SERVER['IDEA_INITIAL_DIRECTORY']);
422
 
426
 
423
        if (isset($attr['ellipsis'], $attr['ellipsis-type'])) {
427
        if (isset($attr['ellipsis'], $attr['ellipsis-type'])) {
424
            $prefix = substr($value, 0, -$attr['ellipsis']);
428
            $prefix = substr($value, 0, -$attr['ellipsis']);