Skip to content

Commit

Permalink
Update 2020.03.26
Browse files Browse the repository at this point in the history
  • Loading branch information
tiagosampaio committed Mar 26, 2021
1 parent 19eff7c commit 8647cec
Show file tree
Hide file tree
Showing 4,531 changed files with 331,963 additions and 60,242 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
Empty file modified bin/magento
100644 → 100755
Empty file.
5,216 changes: 3,476 additions & 1,740 deletions composer.lock

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions var/vendor/autoload.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?php

// autoload.php @generated by Composer

require_once __DIR__ . '/composer/autoload_real.php';

return ComposerAutoloaderInitf8f3d28d6c043744386646079ba62770::getLoader();
64 changes: 64 additions & 0 deletions var/vendor/bin/composer
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
#!/usr/bin/env php
<?php

if (PHP_SAPI !== 'cli' && PHP_SAPI !== 'phpdbg') {
echo 'Warning: Composer should be invoked via the CLI version of PHP, not the '.PHP_SAPI.' SAPI'.PHP_EOL;
}

setlocale(LC_ALL, 'C');
require __DIR__.'/../src/bootstrap.php';

use Composer\Console\Application;
use Composer\XdebugHandler\XdebugHandler;

error_reporting(-1);

// Restart without Xdebug
$xdebug = new XdebugHandler('Composer', '--ansi');
$xdebug->check();
unset($xdebug);

if (defined('HHVM_VERSION') && version_compare(HHVM_VERSION, '4.0', '>=')) {
echo 'HHVM 4.0 has dropped support for Composer, please use PHP instead. Aborting.'.PHP_EOL;
exit(1);
}

if (function_exists('ini_set')) {
@ini_set('display_errors', '1');

// Set user defined memory limit
if ($memoryLimit = getenv('COMPOSER_MEMORY_LIMIT')) {
@ini_set('memory_limit', $memoryLimit);
} else {
$memoryInBytes = function ($value) {
$unit = strtolower(substr($value, -1, 1));
$value = (int) $value;
switch($unit) {
case 'g':
$value *= 1024;
// no break (cumulative multiplier)
case 'm':
$value *= 1024;
// no break (cumulative multiplier)
case 'k':
$value *= 1024;
}

return $value;
};

$memoryLimit = trim(ini_get('memory_limit'));
// Increase memory_limit if it is lower than 1.5GB
if ($memoryLimit != -1 && $memoryInBytes($memoryLimit) < 1024 * 1024 * 1536) {
@ini_set('memory_limit', '1536M');
}
unset($memoryInBytes);
}
unset($memoryLimit);
}

putenv('COMPOSER_BINARY='.realpath($_SERVER['argv'][0]));

// run the command application
$application = new Application();
$application->run();
117 changes: 117 additions & 0 deletions var/vendor/bin/jsonlint
Original file line number Diff line number Diff line change
@@ -0,0 +1,117 @@
#!/usr/bin/env php
<?php

/*
* This file is part of the JSON Lint package.
*
* (c) Jordi Boggiano <j.boggiano@seld.be>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

function includeIfExists($file)
{
if (file_exists($file)) {
return include $file;
}
}

if (!includeIfExists(__DIR__.'/../vendor/autoload.php') && !includeIfExists(__DIR__.'/../../../autoload.php')) {
$msg = 'You must set up the project dependencies, run the following commands:'.PHP_EOL.
'curl -sS https://getcomposer.org/installer | php'.PHP_EOL.
'php composer.phar install'.PHP_EOL;
fwrite(STDERR, $msg);
exit(1);
}

use Seld\JsonLint\JsonParser;

$files = array();
$quiet = false;

if (isset($_SERVER['argc']) && $_SERVER['argc'] > 1) {
for ($i = 1; $i < $_SERVER['argc']; $i++) {
$arg = $_SERVER['argv'][$i];
if ($arg == '-q' || $arg == '--quiet') {
$quiet = true;
} else {
if ($arg == '-h' || $arg == '--help') {
showUsage($_SERVER['argv'][0]);
} else {
$files[] = $arg;
}
}
}
}

if (!empty($files)) {
// file linting
$exitCode = 0;
foreach ($files as $file) {
$result = lintFile($file, $quiet);
if ($result === false) {
$exitCode = 1;
}
}
exit($exitCode);
} else {
//stdin linting
if ($contents = file_get_contents('php://stdin')) {
lint($contents);
} else {
fwrite(STDERR, 'No file name or json input given' . PHP_EOL);
exit(1);
}
}

// stdin lint function
function lint($content, $quiet = false)
{
$parser = new JsonParser();
if ($err = $parser->lint($content)) {
fwrite(STDERR, $err->getMessage() . ' (stdin)' . PHP_EOL);
exit(1);
}
if (!$quiet) {
echo 'Valid JSON (stdin)' . PHP_EOL;
exit(0);
}
}

// file lint function
function lintFile($file, $quiet = false)
{
if (!preg_match('{^https?://}i', $file)) {
if (!file_exists($file)) {
fwrite(STDERR, 'File not found: ' . $file . PHP_EOL);
return false;
}
if (!is_readable($file)) {
fwrite(STDERR, 'File not readable: ' . $file . PHP_EOL);
return false;
}
}

$content = file_get_contents($file);
$parser = new JsonParser();
if ($err = $parser->lint($content)) {
fwrite(STDERR, $file . ': ' . $err->getMessage() . PHP_EOL);
return false;
}
if (!$quiet) {
echo 'Valid JSON (' . $file . ')' . PHP_EOL;
}
return true;
}

// usage text function
function showUsage($programPath)
{
echo 'Usage: '.$programPath.' file [options]'.PHP_EOL;
echo PHP_EOL;
echo 'Options:'.PHP_EOL;
echo ' -q, --quiet Cause jsonlint to be quiet when no errors are found'.PHP_EOL;
echo ' -h, --help Show this message'.PHP_EOL;
exit(0);
}
Loading

0 comments on commit 8647cec

Please sign in to comment.