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 88... Zeile 88...
88
 
88
 
89
    /**
89
    /**
90
     * Present a reference to the value.
90
     * Present a reference to the value.
91
     *
91
     *
92
     * @param mixed $value
-
 
93
     *
-
 
94
     * @return string
92
     * @param mixed $value
95
     */
93
     */
96
    public function presentRef($value): string
94
    public function presentRef($value): string
97
    {
95
    {
98
        return $this->present($value, 0);
96
        return $this->present($value, 0);
Zeile 104... Zeile 102...
104
     * If $depth is 0, the value will be presented as a ref instead.
102
     * If $depth is 0, the value will be presented as a ref instead.
105
     *
103
     *
106
     * @param mixed $value
104
     * @param mixed $value
107
     * @param int   $depth   (default: null)
105
     * @param int   $depth   (default: null)
108
     * @param int   $options One of Presenter constants
106
     * @param int   $options One of Presenter constants
109
     *
-
 
110
     * @return string
-
 
111
     */
107
     */
112
    public function present($value, int $depth = null, int $options = 0): string
108
    public function present($value, int $depth = null, int $options = 0): string
113
    {
109
    {
114
        $data = $this->cloner->cloneVar($value, !($options & self::VERBOSE) ? Caster::EXCLUDE_VERBOSE : 0);
110
        $data = $this->cloner->cloneVar($value, !($options & self::VERBOSE) ? Caster::EXCLUDE_VERBOSE : 0);