Completed
Pull Request — master (#49)
by
unknown
07:21
created
cli/cron-update-versions.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -10,12 +10,12 @@  discard block
 block discarded – undo
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
 
21 21
 use Joomla\Http\HttpFactory;
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
 
24 24
 // Load the config
25 25
 $configuration = new Registry;
26
-$configuration->loadFile(APPROOT . '/etc/config.json');
26
+$configuration->loadFile(APPROOT.'/etc/config.json');
27 27
 
28 28
 $http = new HttpFactory;
29 29
 $http = $http->getHttp([
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
         $patch = (int) $patch;
94 94
         $patch++;
95 95
 
96
-        $joomlaJsonData[] = $major . '.' . $minor . '.' . $patch;
96
+        $joomlaJsonData[] = $major.'.'.$minor.'.'.$patch;
97 97
     }
98 98
 }
99 99
 
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
     // Get all PHP Releases via GitHub Releases
107 107
     $phpReleases = json_decode(
108 108
         $http->get(
109
-            'https://api.github.com/repos/php/php-src/tags?page=' . $page,
109
+            'https://api.github.com/repos/php/php-src/tags?page='.$page,
110 110
             [
111 111
                 'Accept' => 'application/vnd.github.v3+json',
112 112
                 'token' => $configuration->get('github.gh.token')
@@ -148,5 +148,5 @@  discard block
 block discarded – undo
148 148
 
149 149
 
150 150
 // Write JSON to file
151
-file_put_contents(APPROOT . '/versions/joomla.json', $joomlaJson);
152
-file_put_contents(APPROOT . '/versions/php.json', $phpJson);
151
+file_put_contents(APPROOT.'/versions/joomla.json', $joomlaJson);
152
+file_put_contents(APPROOT.'/versions/php.json', $phpJson);
Please login to merge, or discard this patch.