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 53... Zeile 53...
53
 
53
 
54
    /**
54
    /**
55
     * Check whether a command $name is defined.
55
     * Check whether a command $name is defined.
56
     *
56
     *
57
     * @param string $name
-
 
58
     *
-
 
59
     * @return bool
57
     * @param string $name
60
     */
58
     */
61
    protected function isCommand(string $name): bool
59
    protected function isCommand(string $name): bool
62
    {
60
    {
63
        return \in_array($name, $this->commands);
61
        return \in_array($name, $this->commands);
Zeile 64... Zeile 62...
64
    }
62
    }
65
 
63
 
66
    /**
64
    /**
67
     * Check whether input matches a defined command.
65
     * Check whether input matches a defined command.
68
     *
-
 
69
     * @param string $name
-
 
70
     *
66
     *
71
     * @return bool
67
     * @param string $name
72
     */
68
     */
73
    protected function matchCommand(string $name): bool
69
    protected function matchCommand(string $name): bool
74
    {
70
    {