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 55... Zeile 55...
55
    }
55
    }
Zeile 56... Zeile 56...
56
 
56
 
57
    /**
57
    /**
58
     * Get the currently set Downloader or create one based on the capabilities of the php environment.
58
     * Get the currently set Downloader or create one based on the capabilities of the php environment.
59
     *
-
 
60
     * @return Downloader
-
 
61
     *
59
     *
62
     * @throws ErrorException if a downloader cannot be created for the php environment
60
     * @throws ErrorException if a downloader cannot be created for the php environment
63
     */
61
     */
64
    private function getDownloader(): Downloader
62
    private function getDownloader(): Downloader
65
    {
63
    {
Zeile 75... Zeile 73...
75
     *
73
     *
76
     * The file name used in the URL will include the flavour postfix extracted from the current version
74
     * The file name used in the URL will include the flavour postfix extracted from the current version
77
     * if it's present
75
     * if it's present
78
     *
76
     *
79
     * @param string $latestVersion
77
     * @param string $latestVersion
80
     *
-
 
81
     * @return string
-
 
82
     */
78
     */
83
    private function getAssetUrl(string $latestVersion): string
79
    private function getAssetUrl(string $latestVersion): string
84
    {
80
    {
85
        $versionPostfix = '';
81
        $versionPostfix = '';
86
        if (\strpos(Shell::VERSION, '+')) {
82
        if (\strpos(Shell::VERSION, '+')) {
Zeile 98... Zeile 94...
98
     *
94
     *
99
     * @param InputInterface  $input
95
     * @param InputInterface  $input
100
     * @param OutputInterface $output
96
     * @param OutputInterface $output
101
     *
97
     *
102
     * @throws ErrorException if the current version is not restored when installation fails
98
     * @throws ErrorException if the current version is not restored when installation fails
103
     *
-
 
104
     * @return int
-
 
105
     */
99
     */
106
    public function run(InputInterface $input, OutputInterface $output): int
100
    public function run(InputInterface $input, OutputInterface $output): int
107
    {
101
    {
108
        $currentVersion = Shell::VERSION;
102
        $currentVersion = Shell::VERSION;