@@ -10,19 +10,19 @@ discard block |
||
10 | 10 | \define('APPROOT', \dirname(__DIR__)); |
11 | 11 | |
12 | 12 | // Ensure we've initialized Composer |
13 | -if (!file_exists(APPROOT . '/vendor/autoload.php')) |
|
13 | +if (!file_exists(APPROOT.'/vendor/autoload.php')) |
|
14 | 14 | { |
15 | 15 | exit; |
16 | 16 | } |
17 | 17 | |
18 | -require APPROOT . '/vendor/autoload.php'; |
|
18 | +require APPROOT.'/vendor/autoload.php'; |
|
19 | 19 | |
20 | 20 | use Joomla\Http\HttpFactory; |
21 | 21 | use Joomla\Registry\Registry; |
22 | 22 | |
23 | 23 | // Load the config |
24 | 24 | $configuration = new Registry; |
25 | -$configuration->loadFile(APPROOT . '/etc/config.json'); |
|
25 | +$configuration->loadFile(APPROOT.'/etc/config.json'); |
|
26 | 26 | |
27 | 27 | $http = new HttpFactory; |
28 | 28 | $http = $http->getHttp([ |
@@ -92,7 +92,7 @@ discard block |
||
92 | 92 | $patch = (int) $patch; |
93 | 93 | $patch++; |
94 | 94 | |
95 | - $joomlaJsonData[] = $major . '.' . $minor . '.' . $patch; |
|
95 | + $joomlaJsonData[] = $major.'.'.$minor.'.'.$patch; |
|
96 | 96 | } |
97 | 97 | } |
98 | 98 | |
@@ -105,7 +105,7 @@ discard block |
||
105 | 105 | // Get all PHP Releases via GitHub Releases |
106 | 106 | $phpReleases = json_decode( |
107 | 107 | $http->get( |
108 | - 'https://api.github.com/repos/php/php-src/tags?page=' . $page, |
|
108 | + 'https://api.github.com/repos/php/php-src/tags?page='.$page, |
|
109 | 109 | [ |
110 | 110 | 'Accept' => 'application/vnd.github.v3+json', |
111 | 111 | 'token' => $configuration->get('github.gh.token') |
@@ -144,5 +144,5 @@ discard block |
||
144 | 144 | $phpJson = json_encode($phpJsonData); |
145 | 145 | |
146 | 146 | // Write JSON to file |
147 | -file_put_contents(APPROOT . '/versions/joomla.json', $joomlaJson); |
|
148 | -file_put_contents(APPROOT . '/versions/php.json', $phpJson); |
|
147 | +file_put_contents(APPROOT.'/versions/joomla.json', $joomlaJson); |
|
148 | +file_put_contents(APPROOT.'/versions/php.json', $phpJson); |