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 200
Zeile 1... Zeile 1...
1
<?php
1
<?php
Zeile 2... Zeile 2...
2
 
2
 
3
/*
3
/*
4
 * This file is part of Psy Shell.
4
 * This file is part of Psy Shell.
5
 *
5
 *
6
 * (c) 2012-2022 Justin Hileman
6
 * (c) 2012-2023 Justin Hileman
7
 *
7
 *
8
 * For the full copyright and license information, please view the LICENSE
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
9
 * file that was distributed with this source code.
Zeile 43... Zeile 43...
43
     * Takes in the default value of a parameter and turns it into a
43
     * Takes in the default value of a parameter and turns it into a
44
     *  string representation that fits inline.
44
     *  string representation that fits inline.
45
     * This is not 100% true to the original (newlines are inlined, for example).
45
     * This is not 100% true to the original (newlines are inlined, for example).
46
     *
46
     *
47
     * @param mixed $value
47
     * @param mixed $value
48
     *
-
 
49
     * @return string
-
 
50
     */
48
     */
51
    private function valueToShortString($value): string
49
    private function valueToShortString($value): string
52
    {
50
    {
53
        if (!\is_array($value)) {
51
        if (!\is_array($value)) {
54
            return \json_encode($value);
52
            return \json_encode($value);