Add PHP 7.4 support (#464)
* Add PHP 7.4 to build matrix * DB fix * YAML parser fix in test data * Show versions * Package updates * Track used ICAOs * 7.4 METAR parsing fix * METAR parser fix * Formatting * Add meters to response units * Call instance for unit conversion * Return value * Catch exception for unknown quantity * Comment fix * Formatting * METAR parsing fixes on PHP 7.4 * Package updates * More random airport ID * More random airport ID * Properly disable toolbar * Semver written out to version file * Use dev as default identifier
This commit is contained in:
15
.travis.yml
15
.travis.yml
@@ -6,12 +6,11 @@ language: php
|
|||||||
php:
|
php:
|
||||||
- '7.2'
|
- '7.2'
|
||||||
- '7.3'
|
- '7.3'
|
||||||
|
- '7.4'
|
||||||
|
|
||||||
matrix:
|
env:
|
||||||
include:
|
- DB=mysql
|
||||||
- php: '7.2'
|
- DB=mariadb
|
||||||
- php: '7.3'
|
|
||||||
fast_finish: true
|
|
||||||
|
|
||||||
cache:
|
cache:
|
||||||
# Cache lives for 10 min
|
# Cache lives for 10 min
|
||||||
@@ -24,7 +23,12 @@ cache:
|
|||||||
services:
|
services:
|
||||||
- mysql
|
- mysql
|
||||||
|
|
||||||
|
addons:
|
||||||
|
mariadb: '10.2'
|
||||||
|
|
||||||
install:
|
install:
|
||||||
|
- php --version
|
||||||
|
- mysql --version
|
||||||
- composer install --dev --no-interaction --verbose
|
- composer install --dev --no-interaction --verbose
|
||||||
- cp .travis/env.travis.php env.php
|
- cp .travis/env.travis.php env.php
|
||||||
- cp .travis/phpunit.travis.xml phpunit.xml
|
- cp .travis/phpunit.travis.xml phpunit.xml
|
||||||
@@ -41,6 +45,7 @@ after_failure:
|
|||||||
- cat storage/logs/*.log
|
- cat storage/logs/*.log
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
fast_finish: true
|
||||||
include:
|
include:
|
||||||
# Just packages up a release
|
# Just packages up a release
|
||||||
- stage: package
|
- stage: package
|
||||||
|
|||||||
@@ -2,140 +2,127 @@
|
|||||||
|
|
||||||
if [ "$TRAVIS" = "true" ]; then
|
if [ "$TRAVIS" = "true" ]; then
|
||||||
|
|
||||||
cd $TRAVIS_BUILD_DIR
|
cd $TRAVIS_BUILD_DIR
|
||||||
|
|
||||||
if test "$TRAVIS_TAG"; then
|
if test "$TRAVIS_TAG"; then
|
||||||
PKG_NAME=$TRAVIS_TAG
|
PKG_NAME=$TRAVIS_TAG
|
||||||
else
|
VERSION=$TRAVIS_TAG
|
||||||
echo "On branch $TRAVIS_BRANCH"
|
|
||||||
|
|
||||||
if [ "$TRAVIS_BRANCH" != "master" ] && [ "$TRAVIS_BRANCH" != "dev" ]; then
|
# Pass in the tag as the version to write out
|
||||||
echo "Not on valid branch, exiting"
|
php artisan phpvms:version --write $VERSION
|
||||||
exit 0;
|
else
|
||||||
fi;
|
echo "On branch $TRAVIS_BRANCH"
|
||||||
|
|
||||||
BASE_VERSION=$(php artisan phpvms:version --base-only)
|
if [ "$TRAVIS_BRANCH" != "master" ] && [ "$TRAVIS_BRANCH" != "dev" ]; then
|
||||||
PKG_NAME=${BASE_VERSION}-${TRAVIS_BRANCH}
|
echo "Not on valid branch, exiting"
|
||||||
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
FILE_NAME="phpvms-$PKG_NAME"
|
BASE_VERSION=$(php artisan phpvms:version --base-only)
|
||||||
TAR_NAME="$FILE_NAME.tar.gz"
|
PKG_NAME=${BASE_VERSION}-${TRAVIS_BRANCH}
|
||||||
echo "Writing $TAR_NAME"
|
|
||||||
|
|
||||||
|
# Don't pass in a version here, just write out the latest hash
|
||||||
php artisan phpvms:version --write > VERSION
|
php artisan phpvms:version --write > VERSION
|
||||||
VERSION=$(cat VERSION)
|
VERSION=$(cat VERSION)
|
||||||
echo "Version: $VERSION"
|
fi
|
||||||
|
|
||||||
echo "Cleaning files"
|
echo "Version: $VERSION"
|
||||||
|
|
||||||
rm -rf vendor
|
FILE_NAME="phpvms-$PKG_NAME"
|
||||||
composer install --no-dev --prefer-dist --no-interaction --verbose
|
TAR_NAME="$FILE_NAME.tar.gz"
|
||||||
|
|
||||||
# Clean up the dependencies to remove some of the dev packages
|
echo "Cleaning files"
|
||||||
# declare -a remove_packages=(
|
|
||||||
# 'barryvdh/laravel-ide-helper'
|
|
||||||
# 'bpocallaghan/generators'
|
|
||||||
# 'codedungeon/phpunit-result-printer'
|
|
||||||
# 'fzaninotto/faker'
|
|
||||||
# 'nikic/php-parser'
|
|
||||||
# 'phpstan/phpstan'
|
|
||||||
# 'phpunit/phpunit',
|
|
||||||
# 'weebly/phpstan-laravel'
|
|
||||||
# )
|
|
||||||
#
|
|
||||||
# for pkg in "${remove_packages[@]}"
|
|
||||||
# do
|
|
||||||
# composer --optimize-autoloader --no-interaction remove $pkg
|
|
||||||
# done
|
|
||||||
|
|
||||||
# Leftover individual files to delete
|
rm -rf vendor
|
||||||
declare -a remove_files=(
|
composer install --no-dev --prefer-dist --no-interaction --verbose
|
||||||
.git
|
|
||||||
.github
|
|
||||||
.sass-cache
|
|
||||||
.idea
|
|
||||||
.travis
|
|
||||||
docker
|
|
||||||
tests
|
|
||||||
_ide_helper.php
|
|
||||||
.dpl
|
|
||||||
.editorconfig
|
|
||||||
.eslintignore
|
|
||||||
.eslintrc
|
|
||||||
.php_cs
|
|
||||||
.php_cs.cache
|
|
||||||
.phpstorm.meta.php
|
|
||||||
.styleci.yml
|
|
||||||
.phpunit.result.cache
|
|
||||||
env.php
|
|
||||||
intellij_style.xml
|
|
||||||
config.php
|
|
||||||
docker-compose.yml
|
|
||||||
Makefile
|
|
||||||
phpcs.xml
|
|
||||||
phpunit.xml
|
|
||||||
phpvms.iml
|
|
||||||
Procfile
|
|
||||||
phpstan.neon
|
|
||||||
node_modules
|
|
||||||
composer.phar
|
|
||||||
vendor/willdurand/geocoder/tests
|
|
||||||
)
|
|
||||||
|
|
||||||
for file in "${remove_files[@]}"
|
# Leftover individual files to delete
|
||||||
do
|
declare -a remove_files=(
|
||||||
rm -rf $file
|
.git
|
||||||
done
|
.github
|
||||||
|
.sass-cache
|
||||||
|
.idea
|
||||||
|
.travis
|
||||||
|
docker
|
||||||
|
_ide_helper.php
|
||||||
|
.dpl
|
||||||
|
.editorconfig
|
||||||
|
.eslintignore
|
||||||
|
.eslintrc
|
||||||
|
.php_cs
|
||||||
|
.php_cs.cache
|
||||||
|
.phpstorm.meta.php
|
||||||
|
.styleci.yml
|
||||||
|
.phpunit.result.cache
|
||||||
|
env.php
|
||||||
|
intellij_style.xml
|
||||||
|
config.php
|
||||||
|
docker-compose.yml
|
||||||
|
Makefile
|
||||||
|
phpcs.xml
|
||||||
|
phpunit.xml
|
||||||
|
phpvms.iml
|
||||||
|
Procfile
|
||||||
|
phpstan.neon
|
||||||
|
node_modules
|
||||||
|
composer.phar
|
||||||
|
vendor/willdurand/geocoder/tests
|
||||||
|
)
|
||||||
|
|
||||||
find ./vendor -type d -name ".git" -print0 | xargs rm -rf
|
for file in "${remove_files[@]}"; do
|
||||||
find . -type d -name "sass-cache" -print0 | xargs rm -rf
|
rm -rf $file
|
||||||
|
done
|
||||||
|
|
||||||
# clear any app specific stuff that might have been loaded in
|
find ./vendor -type d -name ".git" -print0 | xargs rm -rf
|
||||||
find bootstrap/cache -mindepth 1 -maxdepth 1 -not -name '.gitignore' -print0 -exec rm -rf {} +
|
find . -type d -name "sass-cache" -print0 | xargs rm -rf
|
||||||
find storage/app -mindepth 1 -maxdepth 1 -not -name '.gitignore' -not -name public -not -name import -print0 -exec rm -rf {} +
|
|
||||||
find storage/app/public -mindepth 1 -maxdepth 1 -not -name '.gitignore' -not -name avatars -not -name uploads -print0 -exec rm -rf {} +
|
|
||||||
find storage/app/public/avatars -mindepth 1 -not -name '.gitignore' -print0 -exec rm -rf {} +
|
|
||||||
find storage/app/public/uploads -mindepth 1 -not -name '.gitignore' -print0 -exec rm -rf {} +
|
|
||||||
find storage/debugbar -mindepth 1 -not -name '.gitignore' -print0 -exec rm -rf {} +
|
|
||||||
find storage/docker -mindepth 1 -not -name '.gitignore' -print0 -exec rm -rf {} +
|
|
||||||
find storage/framework/cache -mindepth 1 -not -name '.gitignore' -print0 -exec rm -rf {} +
|
|
||||||
find storage/framework/sessions -mindepth 1 -not -name '.gitignore' -print0 -exec rm -rf {} +
|
|
||||||
find storage/framework/views -mindepth 1 -not -name '.gitignore' -print0 -exec rm -rf {} +
|
|
||||||
find storage/logs -mindepth 1 -not -name '.gitignore' -print0 -exec rm -rf {} +
|
|
||||||
|
|
||||||
mkdir -p storage/app/public/avatars
|
# clear any app specific stuff that might have been loaded in
|
||||||
mkdir -p storage/app/public/uploads
|
find bootstrap/cache -mindepth 1 -maxdepth 1 -not -name '.gitignore' -print0 -exec rm -rf {} +
|
||||||
mkdir -p storage/framework/cache
|
find storage/app -mindepth 1 -maxdepth 1 -not -name '.gitignore' -not -name public -not -name import -print0 -exec rm -rf {} +
|
||||||
mkdir -p storage/framework/sessions
|
find storage/app/public -mindepth 1 -maxdepth 1 -not -name '.gitignore' -not -name avatars -not -name uploads -print0 -exec rm -rf {} +
|
||||||
mkdir -p storage/framework/views
|
find storage/app/public/avatars -mindepth 1 -not -name '.gitignore' -print0 -exec rm -rf {} +
|
||||||
|
find storage/app/public/uploads -mindepth 1 -not -name '.gitignore' -print0 -exec rm -rf {} +
|
||||||
|
find storage/debugbar -mindepth 1 -not -name '.gitignore' -print0 -exec rm -rf {} +
|
||||||
|
find storage/docker -mindepth 1 -not -name '.gitignore' -print0 -exec rm -rf {} +
|
||||||
|
find storage/framework/cache -mindepth 1 -not -name '.gitignore' -print0 -exec rm -rf {} +
|
||||||
|
find storage/framework/sessions -mindepth 1 -not -name '.gitignore' -print0 -exec rm -rf {} +
|
||||||
|
find storage/framework/views -mindepth 1 -not -name '.gitignore' -print0 -exec rm -rf {} +
|
||||||
|
find storage/logs -mindepth 1 -not -name '.gitignore' -print0 -exec rm -rf {} +
|
||||||
|
|
||||||
# Regenerate the autoloader and classes
|
mkdir -p storage/app/public/avatars
|
||||||
composer dump-autoload
|
mkdir -p storage/app/public/uploads
|
||||||
make clean
|
mkdir -p storage/framework/cache
|
||||||
|
mkdir -p storage/framework/sessions
|
||||||
|
mkdir -p storage/framework/views
|
||||||
|
|
||||||
echo "Creating Tarball"
|
# Regenerate the autoloader and classes
|
||||||
cd /tmp
|
composer dump-autoload
|
||||||
tar -czf $TAR_NAME -C $TRAVIS_BUILD_DIR/../ phpvms
|
make clean
|
||||||
sha256sum $TAR_NAME > "$TAR_NAME.sha256"
|
|
||||||
|
|
||||||
echo "Uploading to S3"
|
echo "Writing $TAR_NAME"
|
||||||
mkdir -p $TRAVIS_BUILD_DIR/build
|
|
||||||
cd $TRAVIS_BUILD_DIR/build
|
|
||||||
|
|
||||||
mv "/tmp/$TAR_NAME" "/tmp/$TAR_NAME.sha256" .
|
cd /tmp
|
||||||
artifacts upload --target-paths "/" $TAR_NAME $TRAVIS_BUILD_DIR/VERSION $TAR_NAME.sha256
|
tar -czf $TAR_NAME -C $TRAVIS_BUILD_DIR/../ phpvms
|
||||||
|
sha256sum $TAR_NAME >"$TAR_NAME.sha256"
|
||||||
|
|
||||||
# Upload the version for a tagged release. Move to a version file in different
|
echo "Uploading to S3"
|
||||||
# tags. Within phpVMS, we have an option of which version to track in the admin
|
mkdir -p $TRAVIS_BUILD_DIR/build
|
||||||
if test "$TRAVIS_TAG"; then
|
cd $TRAVIS_BUILD_DIR/build
|
||||||
echo "Uploading release version file"
|
|
||||||
cp "$TRAVIS_BUILD_DIR/VERSION" release_version
|
|
||||||
artifacts upload --target-paths "/" release_version
|
|
||||||
else
|
|
||||||
echo "Uploading ${TRAVIS_BRANCH}_version file"
|
|
||||||
cp $TRAVIS_BUILD_DIR/VERSION ${TRAVIS_BRANCH}_version
|
|
||||||
artifacts upload --target-paths "/" ${TRAVIS_BRANCH}_version
|
|
||||||
fi
|
|
||||||
|
|
||||||
curl -X POST --data "{\"content\": \"A new build is available at http://downloads.phpvms.net/$TAR_NAME ($VERSION)\"}" -H "Content-Type: application/json" $DISCORD_WEBHOOK_URL
|
mv "/tmp/$TAR_NAME" "/tmp/$TAR_NAME.sha256" .
|
||||||
|
artifacts upload --target-paths "/" $TAR_NAME $TRAVIS_BUILD_DIR/VERSION $TAR_NAME.sha256
|
||||||
|
|
||||||
|
# Upload the version for a tagged release. Move to a version file in different
|
||||||
|
# tags. Within phpVMS, we have an option of which version to track in the admin
|
||||||
|
if test "$TRAVIS_TAG"; then
|
||||||
|
echo "Uploading release version file"
|
||||||
|
cp "$TRAVIS_BUILD_DIR/VERSION" release_version
|
||||||
|
artifacts upload --target-paths "/" release_version
|
||||||
|
else
|
||||||
|
echo "Uploading ${TRAVIS_BRANCH}_version file"
|
||||||
|
cp $TRAVIS_BUILD_DIR/VERSION ${TRAVIS_BRANCH}_version
|
||||||
|
artifacts upload --target-paths "/" ${TRAVIS_BRANCH}_version
|
||||||
|
fi
|
||||||
|
|
||||||
|
curl -X POST --data "{\"content\": \"A new build is available at http://downloads.phpvms.net/$TAR_NAME ($VERSION)\"}" -H "Content-Type: application/json" $DISCORD_WEBHOOK_URL
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ use Symfony\Component\Yaml\Yaml;
|
|||||||
|
|
||||||
class Version extends Command
|
class Version extends Command
|
||||||
{
|
{
|
||||||
protected $signature = 'phpvms:version {--write} {--base-only}';
|
protected $signature = 'phpvms:version {--write} {--base-only} {--write-full-version} {version?}';
|
||||||
|
|
||||||
private $versionSvc;
|
private $versionSvc;
|
||||||
|
|
||||||
@@ -26,11 +26,32 @@ class Version extends Command
|
|||||||
*/
|
*/
|
||||||
public function handle()
|
public function handle()
|
||||||
{
|
{
|
||||||
// Write the updated build number out to the file
|
|
||||||
if ($this->option('write')) {
|
if ($this->option('write')) {
|
||||||
|
// Write the updated build number out to the file
|
||||||
$version_file = config_path('version.yml');
|
$version_file = config_path('version.yml');
|
||||||
$cfg = Yaml::parse(file_get_contents($version_file));
|
$cfg = Yaml::parse(file_get_contents($version_file));
|
||||||
|
|
||||||
|
// If a version is being passed in, the update the build, etc data against this
|
||||||
|
if ($this->argument('version')) {
|
||||||
|
$version = \SemVer\SemVer\Version::fromString($this->argument('version'));
|
||||||
|
if ($this->option('write_full_version')) {
|
||||||
|
$cfg['current']['major'] = $version->getMajor();
|
||||||
|
$cfg['current']['minor'] = $version->getMinor();
|
||||||
|
$cfg['current']['patch'] = $version->getPatch();
|
||||||
|
}
|
||||||
|
|
||||||
|
$prerelease = $version->getPreRelease();
|
||||||
|
if (strpos($prerelease, '.') !== false) {
|
||||||
|
$prerelease = explode('.', $prerelease);
|
||||||
|
$cfg['current']['prerelease'] = $prerelease[0];
|
||||||
|
$cfg['current']['buildmetadata'] = $prerelease[1];
|
||||||
|
} else {
|
||||||
|
$cfg['current']['prerelease'] = $prerelease;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
$build_number = $this->versionSvc->getBuildId($cfg);
|
$build_number = $this->versionSvc->getBuildId($cfg);
|
||||||
|
$cfg['current']['commit'] = $build_number;
|
||||||
$cfg['build']['number'] = $build_number;
|
$cfg['build']['number'] = $build_number;
|
||||||
|
|
||||||
file_put_contents($version_file, Yaml::dump($cfg, 4, 2));
|
file_put_contents($version_file, Yaml::dump($cfg, 4, 2));
|
||||||
|
|||||||
@@ -3,13 +3,10 @@
|
|||||||
namespace App\Contracts;
|
namespace App\Contracts;
|
||||||
|
|
||||||
use ArrayAccess;
|
use ArrayAccess;
|
||||||
|
use PhpUnitsOfMeasure\Exception\UnknownUnitOfMeasure;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Class Unit
|
* Abstract unit wrapper
|
||||||
*
|
|
||||||
* @property mixed $instance
|
|
||||||
* @property string $unit
|
|
||||||
* @property array $units
|
|
||||||
*/
|
*/
|
||||||
class Unit implements ArrayAccess
|
class Unit implements ArrayAccess
|
||||||
{
|
{
|
||||||
@@ -25,6 +22,8 @@ class Unit implements ArrayAccess
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds an instance of the PhpUnit type
|
* Holds an instance of the PhpUnit type
|
||||||
|
*
|
||||||
|
* @var \PhpUnitsOfMeasure\AbstractPhysicalQuantity
|
||||||
*/
|
*/
|
||||||
protected $instance;
|
protected $instance;
|
||||||
|
|
||||||
@@ -75,7 +74,7 @@ class Unit implements ArrayAccess
|
|||||||
*/
|
*/
|
||||||
public function offsetExists($offset)
|
public function offsetExists($offset)
|
||||||
{
|
{
|
||||||
return array_key_exists($offset, $this->units);
|
return $this->offsetGet($offset) !== null;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -87,7 +86,16 @@ class Unit implements ArrayAccess
|
|||||||
*/
|
*/
|
||||||
public function offsetGet($offset)
|
public function offsetGet($offset)
|
||||||
{
|
{
|
||||||
return round($this->instance->toUnit($offset), 2);
|
try {
|
||||||
|
$value = $this->instance->toUnit($offset);
|
||||||
|
if (!$value) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
} catch (UnknownUnitOfMeasure $e) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
return round($value, 2);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -116,6 +124,6 @@ class Unit implements ArrayAccess
|
|||||||
*/
|
*/
|
||||||
public function __toString()
|
public function __toString()
|
||||||
{
|
{
|
||||||
return (string) $this->units[$this->unit];
|
return (string) $this->offsetGet($this->unit);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ use Faker\Generator as Faker;
|
|||||||
if (!function_exists('createFactoryICAO')) {
|
if (!function_exists('createFactoryICAO')) {
|
||||||
function createFactoryICAO(): string
|
function createFactoryICAO(): string
|
||||||
{
|
{
|
||||||
$characters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';
|
$characters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789';
|
||||||
$max = strlen($characters) - 1;
|
$max = strlen($characters) - 1;
|
||||||
$string = '';
|
$string = '';
|
||||||
for ($i = 0; $i < 4; $i++) {
|
for ($i = 0; $i < 4; $i++) {
|
||||||
@@ -26,14 +26,15 @@ if (!function_exists('createFactoryICAO')) {
|
|||||||
* Add any number of airports. Don't really care if they're real or not
|
* Add any number of airports. Don't really care if they're real or not
|
||||||
*/
|
*/
|
||||||
$factory->define(App\Models\Airport::class, function (Faker $faker) {
|
$factory->define(App\Models\Airport::class, function (Faker $faker) {
|
||||||
$used = [];
|
$usedIcaos = [];
|
||||||
return [
|
|
||||||
'id' => function () use ($used) {
|
|
||||||
do {
|
|
||||||
$string = createFactoryICAO();
|
|
||||||
} while (in_array($string, $used, true));
|
|
||||||
|
|
||||||
return $string;
|
return [
|
||||||
|
'id' => function () use ($usedIcaos) {
|
||||||
|
do {
|
||||||
|
$airport = createFactoryICAO();
|
||||||
|
} while (in_array($airport, $usedIcaos, true));
|
||||||
|
|
||||||
|
return $airport;
|
||||||
},
|
},
|
||||||
'icao' => function (array $apt) {
|
'icao' => function (array $apt) {
|
||||||
return $apt['id'];
|
return $apt['id'];
|
||||||
|
|||||||
@@ -307,10 +307,10 @@ flights:
|
|||||||
dpt_airport_id: MKJP
|
dpt_airport_id: MKJP
|
||||||
arr_airport_id: MWCR
|
arr_airport_id: MWCR
|
||||||
flight_time: 70
|
flight_time: 70
|
||||||
flight_type: J
|
flight_type: 'J'
|
||||||
dpt_time: 0800
|
dpt_time: '0800'
|
||||||
arr_time: 0900
|
arr_time: '0900'
|
||||||
route: MLY5 KEMBO UG442 SIA UG633 OTEKO UR640 NALRO GUBEL3
|
route: 'MLY5 KEMBO UG442 SIA UG633 OTEKO UR640 NALRO GUBEL3'
|
||||||
created_at: NOW
|
created_at: NOW
|
||||||
updated_at: NOW
|
updated_at: NOW
|
||||||
|
|
||||||
|
|||||||
@@ -74,6 +74,12 @@ class AppServiceProvider extends ServiceProvider
|
|||||||
/* @noinspection PhpFullyQualifiedNameUsageInspection */
|
/* @noinspection PhpFullyQualifiedNameUsageInspection */
|
||||||
$this->app->register(\Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider::class);
|
$this->app->register(\Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider::class);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (config('app.debug_toolbar') === true) {
|
||||||
|
app('debugbar')->enable();
|
||||||
|
} else {
|
||||||
|
app('debugbar')->disable();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -153,6 +153,12 @@ class VersionService extends Service
|
|||||||
|
|
||||||
$c = $cfg['current'];
|
$c = $cfg['current'];
|
||||||
$version = "{$c['major']}.{$c['minor']}.{$c['patch']}";
|
$version = "{$c['major']}.{$c['minor']}.{$c['patch']}";
|
||||||
|
if ($c['prerelease'] !== '') {
|
||||||
|
$version .= "-{$c['prerelease']}";
|
||||||
|
if ($c['buildmetadata'] !== '') {
|
||||||
|
$version .= ".{$c['buildmetadata']}";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if ($include_build) {
|
if ($include_build) {
|
||||||
// Get the current build id
|
// Get the current build id
|
||||||
|
|||||||
@@ -520,13 +520,16 @@ class Metar implements \ArrayAccess
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Finally determine if it's VFR or IFR conditions
|
// Finally determine if it's VFR or IFR conditions
|
||||||
// https://www.aviationweather.gov/cva/help
|
// https://www.aviationweather.gov/cva/help
|
||||||
|
$this->result['category'] = 'VFR';
|
||||||
|
|
||||||
if (array_key_exists('cavok', $this->result) && $this->result['cavok']) {
|
if (array_key_exists('cavok', $this->result) && $this->result['cavok']) {
|
||||||
$this->result['category'] = 'VFR';
|
$this->result['category'] = 'VFR';
|
||||||
} else {
|
} else {
|
||||||
/* @noinspection NestedPositiveIfStatementsInspection */
|
/* @noinspection NestedPositiveIfStatementsInspection */
|
||||||
if (array_key_exists('cloud_height', $this->result) && array_key_exists('visibility', $this->result)) {
|
if (array_key_exists('cloud_height', $this->result) && $this->result['cloud_height'] !== null) {
|
||||||
if ($this->result['cloud_height']['ft'] > 3000 && $this->result['visibility']['nmi'] > 5) {
|
if ($this->result['cloud_height']['ft'] > 3000 && $this->result['visibility']['nmi'] > 5) {
|
||||||
$this->result['category'] = 'VFR';
|
$this->result['category'] = 'VFR';
|
||||||
} else {
|
} else {
|
||||||
@@ -902,7 +905,7 @@ class Metar implements \ArrayAccess
|
|||||||
}
|
}
|
||||||
|
|
||||||
$this->set_result_value('visibility', $visibility);
|
$this->set_result_value('visibility', $visibility);
|
||||||
$this->set_result_value('visibility_report', $prefix.$visibility.$unit);
|
$this->set_result_value('visibility_report', $prefix.$visibility['m'].$unit);
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
@@ -1086,7 +1089,7 @@ class Metar implements \ArrayAccess
|
|||||||
$observed['height'] = $this->createAltitude($found[5] * 100, 'feet');
|
$observed['height'] = $this->createAltitude($found[5] * 100, 'feet');
|
||||||
|
|
||||||
// Cloud height
|
// Cloud height
|
||||||
if (null === $this->result['cloud_height']['m'] || $observed['height']['m'] < $this->result['cloud_height']['m']) {
|
if (null === $this->result['cloud_height'] || $observed['height']['m'] < $this->result['cloud_height']['m']) {
|
||||||
$this->set_result_value('cloud_height', $observed['height']);
|
$this->set_result_value('cloud_height', $observed['height']);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -8,6 +8,7 @@ use PhpUnitsOfMeasure\PhysicalQuantity\Length;
|
|||||||
class Distance extends Unit
|
class Distance extends Unit
|
||||||
{
|
{
|
||||||
public $responseUnits = [
|
public $responseUnits = [
|
||||||
|
'm',
|
||||||
'km',
|
'km',
|
||||||
'mi',
|
'mi',
|
||||||
'nmi',
|
'nmi',
|
||||||
|
|||||||
@@ -57,7 +57,7 @@
|
|||||||
"bpocallaghan/generators": "5.0.1",
|
"bpocallaghan/generators": "5.0.1",
|
||||||
"codedungeon/phpunit-result-printer": "^0.13.0",
|
"codedungeon/phpunit-result-printer": "^0.13.0",
|
||||||
"filp/whoops": "~2.0",
|
"filp/whoops": "~2.0",
|
||||||
"fzaninotto/faker": "~1.8.0",
|
"fzaninotto/faker": "~1.9.0",
|
||||||
"friendsofphp/php-cs-fixer": "^2.15",
|
"friendsofphp/php-cs-fixer": "^2.15",
|
||||||
"mockery/mockery": "0.9.*",
|
"mockery/mockery": "0.9.*",
|
||||||
"nunomaduro/collision": "^3.0",
|
"nunomaduro/collision": "^3.0",
|
||||||
|
|||||||
114
composer.lock
generated
114
composer.lock
generated
@@ -4,7 +4,7 @@
|
|||||||
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
|
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
|
||||||
"This file is @generated automatically"
|
"This file is @generated automatically"
|
||||||
],
|
],
|
||||||
"content-hash": "de3570051ae52b54dc313e93abcfc877",
|
"content-hash": "0e1a4708258d0302ac1d45fc0d190772",
|
||||||
"packages": [
|
"packages": [
|
||||||
{
|
{
|
||||||
"name": "akaunting/money",
|
"name": "akaunting/money",
|
||||||
@@ -558,16 +558,16 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "composer/ca-bundle",
|
"name": "composer/ca-bundle",
|
||||||
"version": "1.2.4",
|
"version": "1.2.5",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/composer/ca-bundle.git",
|
"url": "https://github.com/composer/ca-bundle.git",
|
||||||
"reference": "10bb96592168a0f8e8f6dcde3532d9fa50b0b527"
|
"reference": "62e8fc2dc550e5d6d8c9360c7721662670f58149"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/composer/ca-bundle/zipball/10bb96592168a0f8e8f6dcde3532d9fa50b0b527",
|
"url": "https://api.github.com/repos/composer/ca-bundle/zipball/62e8fc2dc550e5d6d8c9360c7721662670f58149",
|
||||||
"reference": "10bb96592168a0f8e8f6dcde3532d9fa50b0b527",
|
"reference": "62e8fc2dc550e5d6d8c9360c7721662670f58149",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
@@ -578,7 +578,7 @@
|
|||||||
"require-dev": {
|
"require-dev": {
|
||||||
"phpunit/phpunit": "^4.8.35 || ^5.7 || 6.5 - 8",
|
"phpunit/phpunit": "^4.8.35 || ^5.7 || 6.5 - 8",
|
||||||
"psr/log": "^1.0",
|
"psr/log": "^1.0",
|
||||||
"symfony/process": "^2.5 || ^3.0 || ^4.0"
|
"symfony/process": "^2.5 || ^3.0 || ^4.0 || ^5.0"
|
||||||
},
|
},
|
||||||
"type": "library",
|
"type": "library",
|
||||||
"extra": {
|
"extra": {
|
||||||
@@ -610,7 +610,7 @@
|
|||||||
"ssl",
|
"ssl",
|
||||||
"tls"
|
"tls"
|
||||||
],
|
],
|
||||||
"time": "2019-08-30T08:44:50+00:00"
|
"time": "2019-12-11T14:44:42+00:00"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "composer/composer",
|
"name": "composer/composer",
|
||||||
@@ -2376,16 +2376,16 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "laravel/framework",
|
"name": "laravel/framework",
|
||||||
"version": "v6.6.0",
|
"version": "v6.7.0",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/laravel/framework.git",
|
"url": "https://github.com/laravel/framework.git",
|
||||||
"reference": "b48528ba5422ac909dbabf0b1cc34534928e7bce"
|
"reference": "ba4204f3a8b9672b6116398c165bd9c0c6eac077"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/laravel/framework/zipball/b48528ba5422ac909dbabf0b1cc34534928e7bce",
|
"url": "https://api.github.com/repos/laravel/framework/zipball/ba4204f3a8b9672b6116398c165bd9c0c6eac077",
|
||||||
"reference": "b48528ba5422ac909dbabf0b1cc34534928e7bce",
|
"reference": "ba4204f3a8b9672b6116398c165bd9c0c6eac077",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
@@ -2481,7 +2481,7 @@
|
|||||||
"league/flysystem-sftp": "Required to use the Flysystem SFTP driver (^1.0).",
|
"league/flysystem-sftp": "Required to use the Flysystem SFTP driver (^1.0).",
|
||||||
"moontoast/math": "Required to use ordered UUIDs (^1.1).",
|
"moontoast/math": "Required to use ordered UUIDs (^1.1).",
|
||||||
"pda/pheanstalk": "Required to use the beanstalk queue driver (^4.0).",
|
"pda/pheanstalk": "Required to use the beanstalk queue driver (^4.0).",
|
||||||
"psr/http-message": "Required to allow Storage::put to accept a StreamInterface (^1.0)",
|
"psr/http-message": "Required to allow Storage::put to accept a StreamInterface (^1.0).",
|
||||||
"pusher/pusher-php-server": "Required to use the Pusher broadcast driver (^4.0).",
|
"pusher/pusher-php-server": "Required to use the Pusher broadcast driver (^4.0).",
|
||||||
"symfony/cache": "Required to PSR-6 cache bridge (^4.3.4).",
|
"symfony/cache": "Required to PSR-6 cache bridge (^4.3.4).",
|
||||||
"symfony/psr-http-message-bridge": "Required to use PSR-7 bridging features (^1.2).",
|
"symfony/psr-http-message-bridge": "Required to use PSR-7 bridging features (^1.2).",
|
||||||
@@ -2518,7 +2518,7 @@
|
|||||||
"framework",
|
"framework",
|
||||||
"laravel"
|
"laravel"
|
||||||
],
|
],
|
||||||
"time": "2019-11-26T15:33:08+00:00"
|
"time": "2019-12-10T16:01:57+00:00"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "laravel/helpers",
|
"name": "laravel/helpers",
|
||||||
@@ -2710,16 +2710,16 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "league/flysystem",
|
"name": "league/flysystem",
|
||||||
"version": "1.0.57",
|
"version": "1.0.61",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/thephpleague/flysystem.git",
|
"url": "https://github.com/thephpleague/flysystem.git",
|
||||||
"reference": "0e9db7f0b96b9f12dcf6f65bc34b72b1a30ea55a"
|
"reference": "4fb13c01784a6c9f165a351e996871488ca2d8c9"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/thephpleague/flysystem/zipball/0e9db7f0b96b9f12dcf6f65bc34b72b1a30ea55a",
|
"url": "https://api.github.com/repos/thephpleague/flysystem/zipball/4fb13c01784a6c9f165a351e996871488ca2d8c9",
|
||||||
"reference": "0e9db7f0b96b9f12dcf6f65bc34b72b1a30ea55a",
|
"reference": "4fb13c01784a6c9f165a351e996871488ca2d8c9",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
@@ -2790,7 +2790,7 @@
|
|||||||
"sftp",
|
"sftp",
|
||||||
"storage"
|
"storage"
|
||||||
],
|
],
|
||||||
"time": "2019-10-16T21:01:05+00:00"
|
"time": "2019-12-08T21:46:50+00:00"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "league/geotools",
|
"name": "league/geotools",
|
||||||
@@ -3116,16 +3116,16 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "nabeel/vacentral",
|
"name": "nabeel/vacentral",
|
||||||
"version": "2.0.3",
|
"version": "2.0.4",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/nabeelio/vacentral-library.git",
|
"url": "https://github.com/nabeelio/vacentral-library.git",
|
||||||
"reference": "a6e9dcc0f20b729634d2a27651f5feba472d4937"
|
"reference": "af0d4f6db1bff455ce1eeaf1b544e2e26ffbdd81"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/nabeelio/vacentral-library/zipball/a6e9dcc0f20b729634d2a27651f5feba472d4937",
|
"url": "https://api.github.com/repos/nabeelio/vacentral-library/zipball/af0d4f6db1bff455ce1eeaf1b544e2e26ffbdd81",
|
||||||
"reference": "a6e9dcc0f20b729634d2a27651f5feba472d4937",
|
"reference": "af0d4f6db1bff455ce1eeaf1b544e2e26ffbdd81",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
@@ -3149,7 +3149,7 @@
|
|||||||
"license": [
|
"license": [
|
||||||
"MIT"
|
"MIT"
|
||||||
],
|
],
|
||||||
"time": "2019-10-01T16:32:12+00:00"
|
"time": "2019-12-11T14:44:00+00:00"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "nesbot/carbon",
|
"name": "nesbot/carbon",
|
||||||
@@ -3568,16 +3568,16 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "phpoption/phpoption",
|
"name": "phpoption/phpoption",
|
||||||
"version": "1.6.0",
|
"version": "1.6.1",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/schmittjoh/php-option.git",
|
"url": "https://github.com/schmittjoh/php-option.git",
|
||||||
"reference": "f4e7a6a1382183412246f0d361078c29fb85089e"
|
"reference": "a8593bf5176bf3d3f2966942c530be19b44ec87c"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/schmittjoh/php-option/zipball/f4e7a6a1382183412246f0d361078c29fb85089e",
|
"url": "https://api.github.com/repos/schmittjoh/php-option/zipball/a8593bf5176bf3d3f2966942c530be19b44ec87c",
|
||||||
"reference": "f4e7a6a1382183412246f0d361078c29fb85089e",
|
"reference": "a8593bf5176bf3d3f2966942c530be19b44ec87c",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
@@ -3618,7 +3618,7 @@
|
|||||||
"php",
|
"php",
|
||||||
"type"
|
"type"
|
||||||
],
|
],
|
||||||
"time": "2019-11-30T20:20:49+00:00"
|
"time": "2019-12-11T13:45:14+00:00"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "pragmarx/version",
|
"name": "pragmarx/version",
|
||||||
@@ -3743,16 +3743,16 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "prettus/l5-repository",
|
"name": "prettus/l5-repository",
|
||||||
"version": "2.6.36",
|
"version": "2.6.37",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/andersao/l5-repository.git",
|
"url": "https://github.com/andersao/l5-repository.git",
|
||||||
"reference": "c4f56cffbd23d61e16d2a8a9df0c651037313b54"
|
"reference": "3442bb47354ff5b4aaeb36b79c37a5b6cc91fc82"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/andersao/l5-repository/zipball/c4f56cffbd23d61e16d2a8a9df0c651037313b54",
|
"url": "https://api.github.com/repos/andersao/l5-repository/zipball/3442bb47354ff5b4aaeb36b79c37a5b6cc91fc82",
|
||||||
"reference": "c4f56cffbd23d61e16d2a8a9df0c651037313b54",
|
"reference": "3442bb47354ff5b4aaeb36b79c37a5b6cc91fc82",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
@@ -3804,7 +3804,7 @@
|
|||||||
"model",
|
"model",
|
||||||
"repository"
|
"repository"
|
||||||
],
|
],
|
||||||
"time": "2019-09-11T14:09:40+00:00"
|
"time": "2019-12-09T14:10:15+00:00"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "prettus/laravel-validation",
|
"name": "prettus/laravel-validation",
|
||||||
@@ -4696,16 +4696,16 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "spatie/laravel-backup",
|
"name": "spatie/laravel-backup",
|
||||||
"version": "6.7.4",
|
"version": "6.7.5",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/spatie/laravel-backup.git",
|
"url": "https://github.com/spatie/laravel-backup.git",
|
||||||
"reference": "e3ea9bc9994be5cf8d9e10b202ed838380e0b4e4"
|
"reference": "81e10ccb9f22307fb0ed548f895264ba5dcfff82"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/spatie/laravel-backup/zipball/e3ea9bc9994be5cf8d9e10b202ed838380e0b4e4",
|
"url": "https://api.github.com/repos/spatie/laravel-backup/zipball/81e10ccb9f22307fb0ed548f895264ba5dcfff82",
|
||||||
"reference": "e3ea9bc9994be5cf8d9e10b202ed838380e0b4e4",
|
"reference": "81e10ccb9f22307fb0ed548f895264ba5dcfff82",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
@@ -4767,7 +4767,7 @@
|
|||||||
"laravel-backup",
|
"laravel-backup",
|
||||||
"spatie"
|
"spatie"
|
||||||
],
|
],
|
||||||
"time": "2019-11-07T22:11:24+00:00"
|
"time": "2019-12-02T21:58:43+00:00"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "spatie/temporary-directory",
|
"name": "spatie/temporary-directory",
|
||||||
@@ -7472,16 +7472,16 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "fzaninotto/faker",
|
"name": "fzaninotto/faker",
|
||||||
"version": "v1.8.0",
|
"version": "v1.9.0",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/fzaninotto/Faker.git",
|
"url": "https://github.com/fzaninotto/Faker.git",
|
||||||
"reference": "f72816b43e74063c8b10357394b6bba8cb1c10de"
|
"reference": "27a216cbe72327b2d6369fab721a5843be71e57d"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/fzaninotto/Faker/zipball/f72816b43e74063c8b10357394b6bba8cb1c10de",
|
"url": "https://api.github.com/repos/fzaninotto/Faker/zipball/27a216cbe72327b2d6369fab721a5843be71e57d",
|
||||||
"reference": "f72816b43e74063c8b10357394b6bba8cb1c10de",
|
"reference": "27a216cbe72327b2d6369fab721a5843be71e57d",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
@@ -7490,13 +7490,11 @@
|
|||||||
"require-dev": {
|
"require-dev": {
|
||||||
"ext-intl": "*",
|
"ext-intl": "*",
|
||||||
"phpunit/phpunit": "^4.8.35 || ^5.7",
|
"phpunit/phpunit": "^4.8.35 || ^5.7",
|
||||||
"squizlabs/php_codesniffer": "^1.5"
|
"squizlabs/php_codesniffer": "^2.9.2"
|
||||||
},
|
},
|
||||||
"type": "library",
|
"type": "library",
|
||||||
"extra": {
|
"extra": {
|
||||||
"branch-alias": {
|
"branch-alias": []
|
||||||
"dev-master": "1.8-dev"
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"autoload": {
|
"autoload": {
|
||||||
"psr-4": {
|
"psr-4": {
|
||||||
@@ -7518,7 +7516,7 @@
|
|||||||
"faker",
|
"faker",
|
||||||
"fixtures"
|
"fixtures"
|
||||||
],
|
],
|
||||||
"time": "2018-07-12T10:23:15+00:00"
|
"time": "2019-11-14T13:13:06+00:00"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "hamcrest/hamcrest-php",
|
"name": "hamcrest/hamcrest-php",
|
||||||
@@ -8520,16 +8518,16 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "phpunit/phpunit",
|
"name": "phpunit/phpunit",
|
||||||
"version": "8.4.3",
|
"version": "8.5.0",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/sebastianbergmann/phpunit.git",
|
"url": "https://github.com/sebastianbergmann/phpunit.git",
|
||||||
"reference": "67f9e35bffc0dd52d55d565ddbe4230454fd6a4e"
|
"reference": "3ee1c1fd6fc264480c25b6fb8285edefe1702dab"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/67f9e35bffc0dd52d55d565ddbe4230454fd6a4e",
|
"url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/3ee1c1fd6fc264480c25b6fb8285edefe1702dab",
|
||||||
"reference": "67f9e35bffc0dd52d55d565ddbe4230454fd6a4e",
|
"reference": "3ee1c1fd6fc264480c25b6fb8285edefe1702dab",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
@@ -8573,7 +8571,7 @@
|
|||||||
"type": "library",
|
"type": "library",
|
||||||
"extra": {
|
"extra": {
|
||||||
"branch-alias": {
|
"branch-alias": {
|
||||||
"dev-master": "8.4-dev"
|
"dev-master": "8.5-dev"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"autoload": {
|
"autoload": {
|
||||||
@@ -8599,7 +8597,7 @@
|
|||||||
"testing",
|
"testing",
|
||||||
"xunit"
|
"xunit"
|
||||||
],
|
],
|
||||||
"time": "2019-11-06T09:42:23+00:00"
|
"time": "2019-12-06T05:41:38+00:00"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "sebastian/code-unit-reverse-lookup",
|
"name": "sebastian/code-unit-reverse-lookup",
|
||||||
@@ -9218,16 +9216,16 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "squizlabs/php_codesniffer",
|
"name": "squizlabs/php_codesniffer",
|
||||||
"version": "3.5.2",
|
"version": "3.5.3",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/squizlabs/PHP_CodeSniffer.git",
|
"url": "https://github.com/squizlabs/PHP_CodeSniffer.git",
|
||||||
"reference": "65b12cdeaaa6cd276d4c3033a95b9b88b12701e7"
|
"reference": "557a1fc7ac702c66b0bbfe16ab3d55839ef724cb"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/squizlabs/PHP_CodeSniffer/zipball/65b12cdeaaa6cd276d4c3033a95b9b88b12701e7",
|
"url": "https://api.github.com/repos/squizlabs/PHP_CodeSniffer/zipball/557a1fc7ac702c66b0bbfe16ab3d55839ef724cb",
|
||||||
"reference": "65b12cdeaaa6cd276d4c3033a95b9b88b12701e7",
|
"reference": "557a1fc7ac702c66b0bbfe16ab3d55839ef724cb",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
@@ -9265,7 +9263,7 @@
|
|||||||
"phpcs",
|
"phpcs",
|
||||||
"standards"
|
"standards"
|
||||||
],
|
],
|
||||||
"time": "2019-10-28T04:36:32+00:00"
|
"time": "2019-12-04T04:46:47+00:00"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "symfony/options-resolver",
|
"name": "symfony/options-resolver",
|
||||||
|
|||||||
@@ -3,13 +3,15 @@ current:
|
|||||||
major: 7
|
major: 7
|
||||||
minor: 0
|
minor: 0
|
||||||
patch: 0
|
patch: 0
|
||||||
|
prerelease: 'dev'
|
||||||
|
buildmetadata: ''
|
||||||
|
commit: ''
|
||||||
git_absorb: git-local
|
git_absorb: git-local
|
||||||
format: '{$major}.{$minor}.{$patch}'
|
format: '{$major}.{$minor}.{$patch}'
|
||||||
build:
|
build:
|
||||||
mode: number
|
mode: number
|
||||||
length: 6
|
length: 6
|
||||||
increment_by: 1
|
number:
|
||||||
number: 180212-2f8a69
|
|
||||||
git_absorb: git-local
|
git_absorb: git-local
|
||||||
git:
|
git:
|
||||||
git-local: 'git rev-parse --verify HEAD'
|
git-local: 'git rev-parse --verify HEAD'
|
||||||
|
|||||||
@@ -14,6 +14,8 @@ class ImporterController extends Controller
|
|||||||
public function __construct(ImporterService $importerSvc)
|
public function __construct(ImporterService $importerSvc)
|
||||||
{
|
{
|
||||||
$this->importerSvc = $importerSvc;
|
$this->importerSvc = $importerSvc;
|
||||||
|
|
||||||
|
app('debugbar')->disable();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -62,6 +62,8 @@ class InstallerController extends Controller
|
|||||||
$this->reqSvc = $reqSvc;
|
$this->reqSvc = $reqSvc;
|
||||||
$this->seederSvc = $seederSvc;
|
$this->seederSvc = $seederSvc;
|
||||||
$this->userService = $userService;
|
$this->userService = $userService;
|
||||||
|
|
||||||
|
app('debugbar')->disable();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -17,7 +17,8 @@ return [
|
|||||||
|
|
||||||
// debug as true shows the Laravel debug bar, which is helpful for
|
// debug as true shows the Laravel debug bar, which is helpful for
|
||||||
// debugging templates and other internals
|
// debugging templates and other internals
|
||||||
'debug' => true,
|
'debug' => true,
|
||||||
|
'debug_toolbar' => false,
|
||||||
],
|
],
|
||||||
|
|
||||||
// Overrides config/phpvms.php
|
// Overrides config/phpvms.php
|
||||||
|
|||||||
@@ -112,7 +112,7 @@ class MetarTest extends TestCase
|
|||||||
$this->assertEquals(1000, $parsed['clouds'][0]['height']['ft']);
|
$this->assertEquals(1000, $parsed['clouds'][0]['height']['ft']);
|
||||||
$this->assertEquals(1600, $parsed['clouds'][1]['height']['ft']);
|
$this->assertEquals(1600, $parsed['clouds'][1]['height']['ft']);
|
||||||
$this->assertEquals(4000, $parsed['clouds'][2]['height']['ft']);
|
$this->assertEquals(4000, $parsed['clouds'][2]['height']['ft']);
|
||||||
$this->assertNull($parsed['clouds'][3]['height']['ft']);
|
$this->assertNull($parsed['clouds'][3]['height']);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testMetar3()
|
public function testMetar3()
|
||||||
|
|||||||
@@ -20,10 +20,12 @@ class VersionTest extends TestCase
|
|||||||
public function testGreaterThanVersionStrings(): void
|
public function testGreaterThanVersionStrings(): void
|
||||||
{
|
{
|
||||||
$test = [
|
$test = [
|
||||||
'7.0.0' => '6.0.0',
|
'7.0.0' => '6.0.0',
|
||||||
'7.0.0-beta' => '7.0.0-alpha',
|
'7.0.0+1231s' => '6.0.0',
|
||||||
'7.0.0-beta.1' => '7.0.0-beta',
|
'7.0.0-beta' => '7.0.0-alpha',
|
||||||
'7.0.0-beta.2' => '7.0.0-beta.1',
|
'7.0.0-beta.1' => '7.0.0-beta',
|
||||||
|
'7.0.0-beta.2' => '7.0.0-beta.1',
|
||||||
|
'7.0.0-beta.2+a34sdf' => '7.0.0-beta.1',
|
||||||
];
|
];
|
||||||
|
|
||||||
$versionSvc = app(VersionService::class);
|
$versionSvc = app(VersionService::class);
|
||||||
|
|||||||
Reference in New Issue
Block a user