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 23... Zeile 23...
23
    private $parser;
23
    private $parser;
24
    private $timestamps = [];
24
    private $timestamps = [];
Zeile 25... Zeile 25...
25
 
25
 
26
    /**
26
    /**
27
     * Only enabled if Runkit is installed.
-
 
28
     *
-
 
29
     * @return bool
27
     * Only enabled if Runkit is installed.
30
     */
28
     */
31
    public static function isSupported(): bool
29
    public static function isSupported(): bool
32
    {
30
    {
33
        // runkit_import was removed in runkit7-4.0.0a1
31
        // runkit_import was removed in runkit7-4.0.0a1
Zeile 125... Zeile 123...
125
     * Should this file be re-imported?
123
     * Should this file be re-imported?
126
     *
124
     *
127
     * Use PHP-Parser to ensure that the file is valid PHP.
125
     * Use PHP-Parser to ensure that the file is valid PHP.
128
     *
126
     *
129
     * @param string $file
127
     * @param string $file
130
     *
-
 
131
     * @return bool
-
 
132
     */
128
     */
133
    private function lintFile(string $file): bool
129
    private function lintFile(string $file): bool
134
    {
130
    {
135
        // first try to parse it
131
        // first try to parse it
136
        try {
132
        try {