Release master - Cleanup external API
This commit is contained in:
parent
9ed0cb10fa
commit
2084f79bfd
Binary file not shown.
BIN
madeline.phar
BIN
madeline.phar
Binary file not shown.
8
phar.php
8
phar.php
@ -83,11 +83,11 @@ function ___install_madeline()
|
||||
|
||||
if ($phar) {
|
||||
$extractVersions = static function () {
|
||||
if (!file_exists('phar://madeline.phar/vendor/composer/installed.json')) {
|
||||
return array();
|
||||
if (!\file_exists('phar://madeline.phar/vendor/composer/installed.json')) {
|
||||
return [];
|
||||
}
|
||||
$composer = \json_decode(\file_get_contents('phar://madeline.phar/vendor/composer/installed.json'), true);
|
||||
$packages = array();
|
||||
$packages = [];
|
||||
foreach ($composer as $dep) {
|
||||
$packages[$dep['name']] = $dep['version_normalized'];
|
||||
}
|
||||
@ -100,7 +100,7 @@ function ___install_madeline()
|
||||
\file_put_contents('madeline.phar.version', $release);
|
||||
|
||||
$current = $extractVersions();
|
||||
$postData = array('downloads' => array());
|
||||
$postData = ['downloads' => []];
|
||||
foreach ($current as $name => $version) {
|
||||
if (isset($previous[$name]) && $previous[$name] === $version) {
|
||||
continue;
|
||||
|
2
release
2
release
@ -1 +1 @@
|
||||
0003ada3ff4de9114b5a8b04f5362f549d45c8ed-
|
||||
9b7ae03d8f12a9ccf71524a129f845065d72a246-
|
@ -1 +1 @@
|
||||
0003ada3ff4de9114b5a8b04f5362f549d45c8ed-
|
||||
9b7ae03d8f12a9ccf71524a129f845065d72a246-
|
Loading…
Reference in New Issue
Block a user