Completed
Pull Request — master (#49)
by
unknown
08:40
created
cli/cron-update-versions.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -10,19 +10,19 @@  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
 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
 block discarded – undo
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
 
@@ -104,10 +104,10 @@  discard block
 block discarded – undo
104 104
 	// Get all PHP Releases via GitHub Releases
105 105
 	$phpReleases = json_decode(
106 106
 		$http->get(
107
-			'https://api.github.com/repos/php/php-src/tags?per_page=100&page=' . $page,
107
+			'https://api.github.com/repos/php/php-src/tags?per_page=100&page='.$page,
108 108
 			[
109 109
 				'Accept' => 'application/vnd.github.v3+json',
110
-				'Authorization' => 'token ' . $configuration->get('github.gh.token')
110
+				'Authorization' => 'token '.$configuration->get('github.gh.token')
111 111
 			]
112 112
 		)->body
113 113
 	);
@@ -146,5 +146,5 @@  discard block
 block discarded – undo
146 146
 $phpJson = json_encode($phpJsonData);
147 147
 
148 148
 // Write JSON to file
149
-file_put_contents(APPROOT . '/versions/joomla.json', $joomlaJson);
150
-file_put_contents(APPROOT . '/versions/php.json', $phpJson);
149
+file_put_contents(APPROOT.'/versions/joomla.json', $joomlaJson);
150
+file_put_contents(APPROOT.'/versions/php.json', $phpJson);
Please login to merge, or discard this patch.