Subversion-Projekte lars-tiefland.laravel_shop

Revision

Revision 148 | Zur aktuellen Revision | 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 61... Zeile 61...
61
    }
61
    }
Zeile 62... Zeile 62...
62
 
62
 
63
    /**
63
    /**
64
     * Print the signature name.
64
     * Print the signature name.
65
     *
65
     *
66
     * @param \Reflector $reflector
66
     * @param \ReflectionClass|ReflectionClassConstant|\ReflectionClassConstant|\ReflectionFunctionAbstract $reflector
67
     *
67
     *
68
     * @return string Formatted name
68
     * @return string Formatted name
69
     */
69
     */
70
    public static function formatName(\Reflector $reflector): string
70
    public static function formatName(\Reflector $reflector): string
Zeile 73... Zeile 73...
73
    }
73
    }
Zeile 74... Zeile 74...
74
 
74
 
75
    /**
75
    /**
76
     * Print the method, property or class modifiers.
76
     * Print the method, property or class modifiers.
77
     *
77
     *
78
     * @param \Reflector $reflector
78
     * @param \ReflectionMethod|\ReflectionProperty|\ReflectionClass $reflector
79
     *
79
     *
80
     * @return string Formatted modifiers
80
     * @return string Formatted modifiers
81
     */
81
     */
82
    private static function formatModifiers(\Reflector $reflector): string
82
    private static function formatModifiers(\Reflector $reflector): string
Zeile 171... Zeile 171...
171
 
171
 
172
    /**
172
    /**
173
     * Helper for getting output style for a given value's type.
173
     * Helper for getting output style for a given value's type.
174
     *
174
     *
175
     * @param mixed $value
-
 
176
     *
-
 
177
     * @return string
175
     * @param mixed $value
178
     */
176
     */
179
    private static function getTypeStyle($value): string
177
    private static function getTypeStyle($value): string
180
    {
178
    {
181
        if (\is_int($value) || \is_float($value)) {
179
        if (\is_int($value) || \is_float($value)) {
Zeile 322... Zeile 320...
322
 
320
 
323
    /**
321
    /**
324
     * Print function param or return type(s).
322
     * Print function param or return type(s).
325
     *
323
     *
326
     * @param \ReflectionType $type
-
 
327
     *
-
 
328
     * @return string
324
     * @param \ReflectionType $type
329
     */
325
     */
330
    private static function formatReflectionType(\ReflectionType $type = null): string
326
    private static function formatReflectionType(\ReflectionType $type = null): string
331
    {
327
    {
332
        if ($type === null) {
328
        if ($type === null) {