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 112... Zeile 112...
112
 
112
 
113
    /**
113
    /**
114
     * @param bool        $execOption
114
     * @param bool        $execOption
115
     * @param bool        $noExecOption
115
     * @param bool        $noExecOption
116
     * @param string|null $filePath
-
 
117
     *
-
 
118
     * @return bool
116
     * @param string|null $filePath
119
     */
117
     */
120
    private function shouldExecuteFile(bool $execOption, bool $noExecOption, string $filePath = null): bool
118
    private function shouldExecuteFile(bool $execOption, bool $noExecOption, string $filePath = null): bool
121
    {
119
    {
122
        if ($execOption) {
120
        if ($execOption) {
Zeile 152... Zeile 150...
152
 
150
 
153
    /**
151
    /**
154
     * @param string $filePath
152
     * @param string $filePath
155
     * @param bool   $shouldRemoveFile
153
     * @param bool   $shouldRemoveFile
156
     *
-
 
157
     * @return string
-
 
158
     *
154
     *
159
     * @throws \UnexpectedValueException if file_get_contents on $filePath returns false instead of a string
155
     * @throws \UnexpectedValueException if file_get_contents on $filePath returns false instead of a string
160
     */
156
     */
161
    private function editFile(string $filePath, bool $shouldRemoveFile): string
157
    private function editFile(string $filePath, bool $shouldRemoveFile): string
162
    {
158
    {