diff --git a/.travis.yml b/.travis.yml index dca6c6424412..fe657da61065 100644 --- a/.travis.yml +++ b/.travis.yml @@ -16,7 +16,7 @@ jobs: - php: 7.3 dist: bionic env: SKIP_UNIT_CHECK=1 - - php: 7.2 + - php: 7.3 dist: bionic env: SKIP_STYLE_CHECK=1 SKIP_WEB_CHECK=1 EXECUTE_BUILD_DOCS=true diff --git a/app/Checks.php b/app/Checks.php index 00fc5536f7bb..16589c89efa8 100644 --- a/app/Checks.php +++ b/app/Checks.php @@ -37,9 +37,9 @@ class Checks public static function preAutoload() { // Check PHP version otherwise it will just say server error - if (version_compare('7.2.5', PHP_VERSION, '>=')) { + if (version_compare(PHP_VERSION, '7.3', '<')) { self::printMessage( - 'PHP version 7.2.5 or newer is required to run LibreNMS', + 'PHP version 7.3 or newer is required to run LibreNMS', null, true ); diff --git a/app/Http/Kernel.php b/app/Http/Kernel.php index 2355ef42aa66..14c79cd56347 100644 --- a/app/Http/Kernel.php +++ b/app/Http/Kernel.php @@ -18,7 +18,7 @@ class Kernel extends HttpKernel // \App\Http\Middleware\TrustHosts::class, \App\Http\Middleware\TrustProxies::class, \App\Http\Middleware\HandleCors::class, - \App\Http\Middleware\CheckForMaintenanceMode::class, + \App\Http\Middleware\PreventRequestsDuringMaintenance::class, \Illuminate\Foundation\Http\Middleware\ValidatePostSize::class, \App\Http\Middleware\TrimStrings::class, \Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull::class, @@ -69,7 +69,6 @@ class Kernel extends HttpKernel protected $routeMiddleware = [ 'authenticate' => \App\Http\Middleware\Authenticate::class, 'auth.basic' => \Illuminate\Auth\Middleware\AuthenticateWithBasicAuth::class, - 'bindings' => \Illuminate\Routing\Middleware\SubstituteBindings::class, 'cache.headers' => \Illuminate\Http\Middleware\SetCacheHeaders::class, 'can' => \Illuminate\Auth\Middleware\Authorize::class, 'deny-demo' => \App\Http\Middleware\DenyDemoUser::class, diff --git a/app/Http/Middleware/CheckForMaintenanceMode.php b/app/Http/Middleware/PreventRequestsDuringMaintenance.php similarity index 58% rename from app/Http/Middleware/CheckForMaintenanceMode.php rename to app/Http/Middleware/PreventRequestsDuringMaintenance.php index 35b9824baefb..e4956d0bb96b 100644 --- a/app/Http/Middleware/CheckForMaintenanceMode.php +++ b/app/Http/Middleware/PreventRequestsDuringMaintenance.php @@ -2,9 +2,9 @@ namespace App\Http\Middleware; -use Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode as Middleware; +use Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance as Middleware; -class CheckForMaintenanceMode extends Middleware +class PreventRequestsDuringMaintenance extends Middleware { /** * The URIs that should be reachable while maintenance mode is enabled. diff --git a/app/Http/Middleware/RedirectIfAuthenticated.php b/app/Http/Middleware/RedirectIfAuthenticated.php index 2395ddccf9e2..362b48b0dc3f 100644 --- a/app/Http/Middleware/RedirectIfAuthenticated.php +++ b/app/Http/Middleware/RedirectIfAuthenticated.php @@ -4,6 +4,7 @@ use App\Providers\RouteServiceProvider; use Closure; +use Illuminate\Http\Request; use Illuminate\Support\Facades\Auth; class RedirectIfAuthenticated @@ -13,13 +14,17 @@ class RedirectIfAuthenticated * * @param \Illuminate\Http\Request $request * @param \Closure $next - * @param string|null $guard + * @param string|null ...$guards * @return mixed */ - public function handle($request, Closure $next, $guard = null) + public function handle(Request $request, Closure $next, ...$guards) { - if (Auth::guard($guard)->check()) { - return redirect(RouteServiceProvider::HOME); + $guards = empty($guards) ? [null] : $guards; + + foreach ($guards as $guard) { + if (Auth::guard($guard)->check()) { + return redirect(RouteServiceProvider::HOME); + } } return $next($request); diff --git a/app/Models/AlertSchedule.php b/app/Models/AlertSchedule.php index fbcb9722b4a7..35bfcaf910cc 100644 --- a/app/Models/AlertSchedule.php +++ b/app/Models/AlertSchedule.php @@ -28,12 +28,15 @@ use Carbon\CarbonImmutable; use Date; use DB; +use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; use Illuminate\Support\Str; use LibreNMS\Enum\AlertScheduleStatus; class AlertSchedule extends Model { + use HasFactory; + public $timestamps = false; protected $table = 'alert_schedule'; protected $primaryKey = 'schedule_id'; diff --git a/app/Models/BgpPeer.php b/app/Models/BgpPeer.php index c4e6c405ea4e..a0ce8e9b40d3 100644 --- a/app/Models/BgpPeer.php +++ b/app/Models/BgpPeer.php @@ -25,9 +25,12 @@ namespace App\Models; use Illuminate\Database\Eloquent\Builder; +use Illuminate\Database\Eloquent\Factories\HasFactory; class BgpPeer extends DeviceRelatedModel { + use HasFactory; + public $timestamps = false; protected $table = 'bgpPeers'; protected $primaryKey = 'bgpPeer_id'; diff --git a/app/Models/Bill.php b/app/Models/Bill.php index 317e34c1cdc7..cae7835533d7 100644 --- a/app/Models/Bill.php +++ b/app/Models/Bill.php @@ -24,10 +24,13 @@ namespace App\Models; +use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; class Bill extends Model { + use HasFactory; + public $timestamps = false; protected $primaryKey = 'bill_id'; diff --git a/app/Models/Component.php b/app/Models/Component.php index 7feb5e4f9023..6563486f09e3 100644 --- a/app/Models/Component.php +++ b/app/Models/Component.php @@ -24,8 +24,12 @@ namespace App\Models; +use Illuminate\Database\Eloquent\Factories\HasFactory; + class Component extends DeviceRelatedModel { + use HasFactory; + public $timestamps = false; protected $table = 'component'; protected $fillable = ['device_id', 'type', 'label', 'status', 'disabled', 'ignore', 'error']; diff --git a/app/Models/Device.php b/app/Models/Device.php index fc0101dff1b7..41715eb56a47 100644 --- a/app/Models/Device.php +++ b/app/Models/Device.php @@ -4,6 +4,7 @@ use Fico7489\Laravel\Pivot\Traits\PivotEventTrait; use Illuminate\Database\Eloquent\Builder; +use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\ModelNotFoundException; use Illuminate\Database\Query\JoinClause; use Illuminate\Support\Str; @@ -18,7 +19,7 @@ class Device extends BaseModel { - use PivotEventTrait; + use PivotEventTrait, HasFactory; public $timestamps = false; protected $primaryKey = 'device_id'; diff --git a/app/Models/Ipv4Address.php b/app/Models/Ipv4Address.php index 7ce28708c18e..86d069a4755b 100644 --- a/app/Models/Ipv4Address.php +++ b/app/Models/Ipv4Address.php @@ -24,8 +24,12 @@ namespace App\Models; +use Illuminate\Database\Eloquent\Factories\HasFactory; + class Ipv4Address extends PortRelatedModel { + use HasFactory; + public $timestamps = false; protected $primaryKey = 'ipv4_address_id'; } diff --git a/app/Models/Ipv4Network.php b/app/Models/Ipv4Network.php index 69454142b02e..5e413a18ab3b 100644 --- a/app/Models/Ipv4Network.php +++ b/app/Models/Ipv4Network.php @@ -24,10 +24,13 @@ namespace App\Models; +use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; class Ipv4Network extends Model { + use HasFactory; + public $timestamps = false; protected $primaryKey = 'ipv4_network_id'; diff --git a/app/Models/OspfNbr.php b/app/Models/OspfNbr.php index 7f52d387071f..f050658919e4 100644 --- a/app/Models/OspfNbr.php +++ b/app/Models/OspfNbr.php @@ -24,8 +24,12 @@ namespace App\Models; +use Illuminate\Database\Eloquent\Factories\HasFactory; + class OspfNbr extends DeviceRelatedModel { + use HasFactory; + public $timestamps = false; protected $fillable = [ 'device_id', diff --git a/app/Models/OspfPort.php b/app/Models/OspfPort.php index ffdfa1b92843..502d2bd69169 100644 --- a/app/Models/OspfPort.php +++ b/app/Models/OspfPort.php @@ -24,8 +24,12 @@ namespace App\Models; +use Illuminate\Database\Eloquent\Factories\HasFactory; + class OspfPort extends PortRelatedModel { + use HasFactory; + public $timestamps = false; protected $fillable = [ 'device_id', diff --git a/app/Models/Port.php b/app/Models/Port.php index 52f5c26b4494..f662429a6d9e 100644 --- a/app/Models/Port.php +++ b/app/Models/Port.php @@ -4,12 +4,15 @@ use DB; use Illuminate\Database\Eloquent\Builder; +use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Support\Str; use LibreNMS\Util\Rewrite; use Permissions; class Port extends DeviceRelatedModel { + use HasFactory; + public $timestamps = false; protected $primaryKey = 'port_id'; diff --git a/app/Models/Sensor.php b/app/Models/Sensor.php index 9a4558e3775b..a4bef09a463d 100644 --- a/app/Models/Sensor.php +++ b/app/Models/Sensor.php @@ -2,8 +2,12 @@ namespace App\Models; +use Illuminate\Database\Eloquent\Factories\HasFactory; + class Sensor extends DeviceRelatedModel { + use HasFactory; + public $timestamps = false; protected $primaryKey = 'sensor_id'; protected static $icons = [ diff --git a/app/Models/Syslog.php b/app/Models/Syslog.php index 139bd8c58819..312da3a4ac2b 100644 --- a/app/Models/Syslog.php +++ b/app/Models/Syslog.php @@ -24,8 +24,12 @@ namespace App\Models; +use Illuminate\Database\Eloquent\Factories\HasFactory; + class Syslog extends DeviceRelatedModel { + use HasFactory; + protected $table = 'syslog'; protected $primaryKey = 'seq'; public $timestamps = false; diff --git a/app/Models/User.php b/app/Models/User.php index cb5cb3b2988c..88077a3ca5e1 100644 --- a/app/Models/User.php +++ b/app/Models/User.php @@ -4,6 +4,7 @@ use App\Events\UserCreated; use Illuminate\Database\Eloquent\Builder; +use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Foundation\Auth\User as Authenticatable; use Illuminate\Notifications\Notifiable; use Illuminate\Support\Facades\Hash; @@ -12,7 +13,7 @@ class User extends Authenticatable { - use Notifiable; + use Notifiable, HasFactory; protected $primaryKey = 'user_id'; protected $fillable = ['realname', 'username', 'email', 'level', 'descr', 'can_modify_passwd', 'auth_type', 'auth_id', 'enabled']; diff --git a/app/Models/UserPref.php b/app/Models/UserPref.php index 32fc6c152861..87b1d3eed308 100644 --- a/app/Models/UserPref.php +++ b/app/Models/UserPref.php @@ -24,8 +24,6 @@ namespace App\Models; -use Illuminate\Database\Eloquent\Builder; - class UserPref extends BaseModel { public $timestamps = false; @@ -91,7 +89,7 @@ public function user() * @param \Illuminate\Database\Eloquent\Builder $query * @return \Illuminate\Database\Eloquent\Builder */ - protected function setKeysForSaveQuery(Builder $query) + protected function setKeysForSaveQuery($query) { $keys = $this->getKeyName(); if (! is_array($keys)) { diff --git a/app/Models/Vminfo.php b/app/Models/Vminfo.php index f480c2297af6..367467ba1b78 100644 --- a/app/Models/Vminfo.php +++ b/app/Models/Vminfo.php @@ -2,8 +2,12 @@ namespace App\Models; +use Illuminate\Database\Eloquent\Factories\HasFactory; + class Vminfo extends DeviceRelatedModel { + use HasFactory; + protected $table = 'vminfo'; public $timestamps = false; } diff --git a/app/Providers/AppServiceProvider.php b/app/Providers/AppServiceProvider.php index c4a611553524..73313760c1c3 100644 --- a/app/Providers/AppServiceProvider.php +++ b/app/Providers/AppServiceProvider.php @@ -40,6 +40,8 @@ public function register() */ public function boot() { + \Illuminate\Pagination\Paginator::useBootstrap(); + $this->app->booted('\LibreNMS\DB\Eloquent::initLegacyListeners'); $this->app->booted('\LibreNMS\Config::load'); diff --git a/app/Providers/EventServiceProvider.php b/app/Providers/EventServiceProvider.php index a389b5a14b14..a59c528c036e 100644 --- a/app/Providers/EventServiceProvider.php +++ b/app/Providers/EventServiceProvider.php @@ -25,7 +25,6 @@ class EventServiceProvider extends ServiceProvider */ public function boot() { - parent::boot(); // } diff --git a/app/Providers/RouteServiceProvider.php b/app/Providers/RouteServiceProvider.php index 269fabb03e9a..666e343d0f6e 100644 --- a/app/Providers/RouteServiceProvider.php +++ b/app/Providers/RouteServiceProvider.php @@ -2,26 +2,31 @@ namespace App\Providers; +use Illuminate\Cache\RateLimiting\Limit; use Illuminate\Foundation\Support\Providers\RouteServiceProvider as ServiceProvider; +use Illuminate\Http\Request; +use Illuminate\Support\Facades\RateLimiter; use Illuminate\Support\Facades\Route; class RouteServiceProvider extends ServiceProvider { /** - * This namespace is applied to your controller routes. + * The path to the "home" route for your application. * - * In addition, it is set as the URL generator's root namespace. + * This is used by Laravel authentication to redirect users after login. * * @var string */ - protected $namespace = 'App\Http\Controllers'; + public const HOME = '/'; /** - * The path to the "home" route for your application. + * The controller namespace for the application. * - * @var string + * When present, controller route declarations will automatically be prefixed with this namespace. + * + * @var string|null */ - public const HOME = '/'; + protected $namespace = 'App\\Http\\Controllers'; /** * Define your route model bindings, pattern filters, etc. @@ -30,51 +35,40 @@ class RouteServiceProvider extends ServiceProvider */ public function boot() { - // - - parent::boot(); - } - - /** - * Define the routes for the application. - * - * @return void - */ - public function map() - { - $this->mapApiRoutes(); + //$this->configureRateLimiting(); - $this->mapWebRoutes(); + $this->routes(function () { - // - } + /** + * Define the "api" routes for the application. + * + * These routes are typically stateless. + */ + Route::prefix('api') + ->middleware('api') + ->namespace($this->namespace) + ->group(base_path('routes/api.php')); - /** - * Define the "web" routes for the application. - * - * These routes all receive session state, CSRF protection, etc. - * - * @return void - */ - protected function mapWebRoutes() - { - Route::middleware('web') - ->namespace($this->namespace) - ->group(base_path('routes/web.php')); + /** + * Define the "web" routes for the application. + * + * These routes all receive session state, CSRF protection, etc. + */ + Route::middleware('web') + ->namespace($this->namespace) + ->group(base_path('routes/web.php')); + }); } /** - * Define the "api" routes for the application. - * - * These routes are typically stateless. + * Configure the rate limiters for the application. * * @return void */ - protected function mapApiRoutes() + protected function configureRateLimiting() { - Route::prefix('api') - ->middleware('api') - ->namespace($this->namespace) - ->group(base_path('routes/api.php')); + RateLimiter::for('api', function (Request $request) { + return Limit::perMinute(60); + }); } } diff --git a/composer.json b/composer.json index 80fddd9e8b42..b87ede508ce9 100644 --- a/composer.json +++ b/composer.json @@ -20,14 +20,8 @@ "issues": "https://github.com/librenms/librenms/issues/", "irc": "irc://irc.freenode.org/#librenms" }, - "repositories": [ - { - "type": "vcs", - "url": "git@github.com:librenms/StringBladeCompiler.git" - } - ], "require": { - "php": "^7.2.5", + "php": "^7.3", "ext-curl": "*", "ext-gd": "*", "ext-json": "*", @@ -39,18 +33,18 @@ "amenadiel/jpgraph": "^3.6", "clue/socket-raw": "^1.4", "dapphp/radius": "^2.0", - "darkghosthunter/larapoke": "^4.1", - "doctrine/dbal": "^2.9", + "darkghosthunter/larapoke": "dev-master", + "doctrine/dbal": "^2.11", "easybook/geshi": "^1.0.8", "ezyang/htmlpurifier": "^4.8", "fico7489/laravel-pivot": "^3.0", "fideloper/proxy": "^4.2", "fruitcake/laravel-cors": "^2.0", - "guzzlehttp/guzzle": "^6.3", + "guzzlehttp/guzzle": "^7.0.1", "influxdb/influxdb-php": "^1.14", - "laravel/framework": "^7.11", + "laravel/framework": "^8.10", "laravel/tinker": "^2.0", - "laravel/ui": "^2.0", + "laravel/ui": "^3.0", "librenms/laravel-vue-i18n-generator": "^0.1.46", "oriceon/toastr-5-laravel": "dev-master", "pear/console_color2": "^0.1", @@ -61,21 +55,21 @@ "rmccue/requests": "^1.7", "symfony/yaml": "^4.0", "tecnickcom/tcpdf": "~6.2.0", - "tightenco/ziggy": "^0.8.0", - "wpb/string-blade-compiler": "dev-laravel-7-and-autoload-blade-custom-directives" + "tightenco/ziggy": "^0.9", + "wpb/string-blade-compiler": "^6.0" }, "require-dev": { - "barryvdh/laravel-debugbar": "^3.2", - "barryvdh/laravel-ide-helper": "^2.6.7", - "facade/ignition": "^2.0", + "barryvdh/laravel-debugbar": "^3.5", + "barryvdh/laravel-ide-helper": "^2.8", + "facade/ignition": "^2.3.6", "friendsofphp/php-cs-fixer": "^2.16", "fzaninotto/faker": "^1.9.1", "justinrainbow/json-schema": "^5.2", - "laravel/dusk": "^5.9", + "laravel/dusk": "^6.7", "mockery/mockery": "^1.3.1", - "nunomaduro/collision": "^4.1", + "nunomaduro/collision": "^5.0", "php-parallel-lint/php-parallel-lint": "^1.1", - "phpunit/phpunit": "^8.5", + "phpunit/phpunit": "^9.3", "staudenmeir/dusk-updater": "^1.1" }, "suggest": { @@ -90,15 +84,13 @@ "/vendor/laravel/laravel/app/", "/html/plugins" ], - "classmap": [ - "database/seeds", - "database/factories" - ], "psr-4": { "App\\": "app", "LibreNMS\\": "LibreNMS", "LibreNMS\\Plugins\\": "html/plugins", - "LibreNMS\\Tests\\": "tests" + "LibreNMS\\Tests\\": "tests", + "Database\\Factories\\": "database/factories/", + "Database\\Seeders\\": "database/seeders/" }, "files": [ "includes/helpers.php" diff --git a/composer.lock b/composer.lock index 541725d29cc0..de7b6aa6859e 100644 --- a/composer.lock +++ b/composer.lock @@ -4,35 +4,25 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "da041241928d2324788ffb2accf1a739", + "content-hash": "05264c05dd948950fbe0657997dc873e", "packages": [ { "name": "amenadiel/jpgraph", - "version": "3.6.21", + "version": "3.6.14", "source": { "type": "git", "url": "https://github.com/HuasoFoundries/jpgraph.git", - "reference": "10aa8d7addfb1337c5f18c7e71faa6d7a9aa63aa" + "reference": "5a9e0297d26c2c698ac8f4d0367119276f2de9f7" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/HuasoFoundries/jpgraph/zipball/10aa8d7addfb1337c5f18c7e71faa6d7a9aa63aa", - "reference": "10aa8d7addfb1337c5f18c7e71faa6d7a9aa63aa", + "url": "https://api.github.com/repos/HuasoFoundries/jpgraph/zipball/5a9e0297d26c2c698ac8f4d0367119276f2de9f7", + "reference": "5a9e0297d26c2c698ac8f4d0367119276f2de9f7", "shasum": "" }, "require": { "ext-gd": "*", - "php": ">=5.6.0", - "symfony/dotenv": "~3.4" - }, - "require-dev": { - "codeception/codeception": "~2.4.1", - "ext-xdebug": "*", - "friendsofphp/php-cs-fixer": "^2.4", - "kint-php/kint": "^2.2", - "monolog/monolog": "^1.23", - "php-console/php-console": "^3.1", - "phpunit/phpunit": "^6" + "php": ">=5.4.0" }, "type": "library", "autoload": { @@ -59,7 +49,7 @@ "jpgraph", "pie" ], - "time": "2018-10-14T21:43:30+00:00" + "time": "2018-02-13T19:34:27+00:00" }, { "name": "asm89/stack-cors", @@ -287,28 +277,28 @@ }, { "name": "darkghosthunter/larapoke", - "version": "v4.1.1", + "version": "dev-master", "source": { "type": "git", "url": "https://github.com/DarkGhostHunter/Larapoke.git", - "reference": "06dd5588d670aa3af618c652b9e97bcc84fe47e6" + "reference": "2a58fc8a0705c9695489623fd8f5814c45b7ad4f" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/DarkGhostHunter/Larapoke/zipball/06dd5588d670aa3af618c652b9e97bcc84fe47e6", - "reference": "06dd5588d670aa3af618c652b9e97bcc84fe47e6", + "url": "https://api.github.com/repos/DarkGhostHunter/Larapoke/zipball/2a58fc8a0705c9695489623fd8f5814c45b7ad4f", + "reference": "2a58fc8a0705c9695489623fd8f5814c45b7ad4f", "shasum": "" }, "require": { - "illuminate/http": "^6.0||^7.0", - "illuminate/routing": "^6.0||^7.0", - "illuminate/support": "^6.0||^7.0", - "illuminate/view": "^6.0||^7.0", + "illuminate/http": "^6.0||^7.0||^8.0", + "illuminate/routing": "^6.0||^7.0||^8.0", + "illuminate/support": "^6.0||^7.0||^8.0", + "illuminate/view": "^6.0||^7.0||^8.0", "php": "^7.2" }, "require-dev": { - "laravel/ui": "^1.0||^2.0", - "orchestra/testbench": "^4.1||^5.0" + "laravel/ui": "^1.0||^2.0||^3.0", + "orchestra/testbench": "^4.1||^5.0||^6.0" }, "type": "library", "extra": { @@ -344,7 +334,7 @@ "type": "ko_fi" } ], - "time": "2020-06-10T21:57:08+00:00" + "time": "2020-10-20T00:47:24+00:00" }, { "name": "dnoegel/php-xdg-base-dir", @@ -477,33 +467,32 @@ }, { "name": "doctrine/dbal", - "version": "2.10.4", + "version": "2.12.0", "source": { "type": "git", "url": "https://github.com/doctrine/dbal.git", - "reference": "47433196b6390d14409a33885ee42b6208160643" + "reference": "c6d37b4c42aaa3c3ee175f05eca68056f4185646" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/doctrine/dbal/zipball/47433196b6390d14409a33885ee42b6208160643", - "reference": "47433196b6390d14409a33885ee42b6208160643", + "url": "https://api.github.com/repos/doctrine/dbal/zipball/c6d37b4c42aaa3c3ee175f05eca68056f4185646", + "reference": "c6d37b4c42aaa3c3ee175f05eca68056f4185646", "shasum": "" }, "require": { "doctrine/cache": "^1.0", "doctrine/event-manager": "^1.0", "ext-pdo": "*", - "php": "^7.2" + "php": "^7.3 || ^8" }, "require-dev": { "doctrine/coding-standard": "^8.1", "jetbrains/phpstorm-stubs": "^2019.1", - "nikic/php-parser": "^4.4", "phpstan/phpstan": "^0.12.40", - "phpunit/phpunit": "^8.5.5", + "phpunit/phpunit": "^9.4", "psalm/plugin-phpunit": "^0.10.0", "symfony/console": "^2.0.5|^3.0|^4.0|^5.0", - "vimeo/psalm": "^3.14.2" + "vimeo/psalm": "^3.17.2" }, "suggest": { "symfony/console": "For helpful console commands such as SQL execution and import of files." @@ -514,8 +503,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "2.10.x-dev", - "dev-develop": "3.0.x-dev" + "dev-master": "4.0.x-dev" } }, "autoload": { @@ -582,7 +570,7 @@ "type": "tidelift" } ], - "time": "2020-09-12T21:20:41+00:00" + "time": "2020-10-22T17:26:24+00:00" }, { "name": "doctrine/event-manager", @@ -843,30 +831,29 @@ }, { "name": "dragonmantank/cron-expression", - "version": "v2.3.0", + "version": "v3.0.2", "source": { "type": "git", "url": "https://github.com/dragonmantank/cron-expression.git", - "reference": "72b6fbf76adb3cf5bc0db68559b33d41219aba27" + "reference": "48212cdc0a79051d50d7fc2f0645c5a321caf926" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/dragonmantank/cron-expression/zipball/72b6fbf76adb3cf5bc0db68559b33d41219aba27", - "reference": "72b6fbf76adb3cf5bc0db68559b33d41219aba27", + "url": "https://api.github.com/repos/dragonmantank/cron-expression/zipball/48212cdc0a79051d50d7fc2f0645c5a321caf926", + "reference": "48212cdc0a79051d50d7fc2f0645c5a321caf926", "shasum": "" }, "require": { - "php": "^7.0" + "php": "^7.1|^8.0" + }, + "replace": { + "mtdowling/cron-expression": "^1.0" }, "require-dev": { - "phpunit/phpunit": "^6.4|^7.0" + "phpstan/phpstan": "^0.11|^0.12", + "phpunit/phpunit": "^7.0|^8.0|^9.0" }, "type": "library", - "extra": { - "branch-alias": { - "dev-master": "2.3-dev" - } - }, "autoload": { "psr-4": { "Cron\\": "src/Cron/" @@ -877,11 +864,6 @@ "MIT" ], "authors": [ - { - "name": "Michael Dowling", - "email": "mtdowling@gmail.com", - "homepage": "https://github.com/mtdowling" - }, { "name": "Chris Tankersley", "email": "chris@ctankersley.com", @@ -893,7 +875,13 @@ "cron", "schedule" ], - "time": "2019-03-31T00:38:28+00:00" + "funding": [ + { + "url": "https://github.com/dragonmantank", + "type": "github" + } + ], + "time": "2020-10-13T01:26:01+00:00" }, { "name": "easybook/geshi", @@ -1051,24 +1039,24 @@ }, { "name": "fico7489/laravel-pivot", - "version": "3.0.6", + "version": "3.0.3", "source": { "type": "git", "url": "https://github.com/fico7489/laravel-pivot.git", - "reference": "6f70f67c7ad343fdeb02823909d74f675e7cfe4b" + "reference": "8c4aeef7ce5b0cd52b6f32b6c6f78da9d0c78ca4" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/fico7489/laravel-pivot/zipball/6f70f67c7ad343fdeb02823909d74f675e7cfe4b", - "reference": "6f70f67c7ad343fdeb02823909d74f675e7cfe4b", + "url": "https://api.github.com/repos/fico7489/laravel-pivot/zipball/8c4aeef7ce5b0cd52b6f32b6c6f78da9d0c78ca4", + "reference": "8c4aeef7ce5b0cd52b6f32b6c6f78da9d0c78ca4", "shasum": "" }, "require": { - "illuminate/database": "^5.5|^6.0|^7.0" + "illuminate/database": ">5.5.0 || 6.*" }, "require-dev": { - "friendsofphp/php-cs-fixer": "*", - "orchestra/testbench": "*" + "friendsofphp/php-cs-fixer": ">2.0", + "orchestra/testbench": ">3.0" }, "type": "library", "autoload": { @@ -1097,28 +1085,28 @@ "laravel pivot events", "laravel sync events" ], - "time": "2020-09-06T12:35:29+00:00" + "time": "2019-09-28T08:00:50+00:00" }, { "name": "fideloper/proxy", - "version": "4.4.0", + "version": "4.4.1", "source": { "type": "git", "url": "https://github.com/fideloper/TrustedProxy.git", - "reference": "9beebf48a1c344ed67c1d36bb1b8709db7c3c1a8" + "reference": "c073b2bd04d1c90e04dc1b787662b558dd65ade0" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/fideloper/TrustedProxy/zipball/9beebf48a1c344ed67c1d36bb1b8709db7c3c1a8", - "reference": "9beebf48a1c344ed67c1d36bb1b8709db7c3c1a8", + "url": "https://api.github.com/repos/fideloper/TrustedProxy/zipball/c073b2bd04d1c90e04dc1b787662b558dd65ade0", + "reference": "c073b2bd04d1c90e04dc1b787662b558dd65ade0", "shasum": "" }, "require": { - "illuminate/contracts": "^5.0|^6.0|^7.0|^8.0", + "illuminate/contracts": "^5.0|^6.0|^7.0|^8.0|^9.0", "php": ">=5.4.0" }, "require-dev": { - "illuminate/http": "^5.0|^6.0|^7.0|^8.0", + "illuminate/http": "^5.0|^6.0|^7.0|^8.0|^9.0", "mockery/mockery": "^1.0", "phpunit/phpunit": "^6.0" }, @@ -1151,26 +1139,26 @@ "proxy", "trusted proxy" ], - "time": "2020-06-23T01:36:47+00:00" + "time": "2020-10-22T13:48:01+00:00" }, { "name": "fruitcake/laravel-cors", - "version": "v2.0.2", + "version": "v2.0.3", "source": { "type": "git", "url": "https://github.com/fruitcake/laravel-cors.git", - "reference": "4b19bfc3bd422948af37a42a62fad7f49025894a" + "reference": "01de0fe5f71c70d1930ee9a80385f9cc28e0f63a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/fruitcake/laravel-cors/zipball/4b19bfc3bd422948af37a42a62fad7f49025894a", - "reference": "4b19bfc3bd422948af37a42a62fad7f49025894a", + "url": "https://api.github.com/repos/fruitcake/laravel-cors/zipball/01de0fe5f71c70d1930ee9a80385f9cc28e0f63a", + "reference": "01de0fe5f71c70d1930ee9a80385f9cc28e0f63a", "shasum": "" }, "require": { "asm89/stack-cors": "^2.0.1", - "illuminate/contracts": "^6|^7|^8", - "illuminate/support": "^6|^7|^8", + "illuminate/contracts": "^6|^7|^8|^9", + "illuminate/support": "^6|^7|^8|^9", "php": ">=7.2", "symfony/http-foundation": "^4|^5", "symfony/http-kernel": "^4.3.4|^5" @@ -1224,41 +1212,109 @@ "type": "github" } ], - "time": "2020-09-07T11:48:52+00:00" + "time": "2020-10-22T13:57:20+00:00" + }, + { + "name": "graham-campbell/result-type", + "version": "v1.0.1", + "source": { + "type": "git", + "url": "https://github.com/GrahamCampbell/Result-Type.git", + "reference": "7e279d2cd5d7fbb156ce46daada972355cea27bb" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/GrahamCampbell/Result-Type/zipball/7e279d2cd5d7fbb156ce46daada972355cea27bb", + "reference": "7e279d2cd5d7fbb156ce46daada972355cea27bb", + "shasum": "" + }, + "require": { + "php": "^7.0|^8.0", + "phpoption/phpoption": "^1.7.3" + }, + "require-dev": { + "phpunit/phpunit": "^6.5|^7.5|^8.5|^9.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0-dev" + } + }, + "autoload": { + "psr-4": { + "GrahamCampbell\\ResultType\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Graham Campbell", + "email": "graham@alt-three.com" + } + ], + "description": "An Implementation Of The Result Type", + "keywords": [ + "Graham Campbell", + "GrahamCampbell", + "Result Type", + "Result-Type", + "result" + ], + "funding": [ + { + "url": "https://github.com/GrahamCampbell", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/graham-campbell/result-type", + "type": "tidelift" + } + ], + "time": "2020-04-13T13:17:36+00:00" }, { "name": "guzzlehttp/guzzle", - "version": "6.5.5", + "version": "7.2.0", "source": { "type": "git", "url": "https://github.com/guzzle/guzzle.git", - "reference": "9d4290de1cfd701f38099ef7e183b64b4b7b0c5e" + "reference": "0aa74dfb41ae110835923ef10a9d803a22d50e79" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/guzzle/guzzle/zipball/9d4290de1cfd701f38099ef7e183b64b4b7b0c5e", - "reference": "9d4290de1cfd701f38099ef7e183b64b4b7b0c5e", + "url": "https://api.github.com/repos/guzzle/guzzle/zipball/0aa74dfb41ae110835923ef10a9d803a22d50e79", + "reference": "0aa74dfb41ae110835923ef10a9d803a22d50e79", "shasum": "" }, "require": { "ext-json": "*", - "guzzlehttp/promises": "^1.0", - "guzzlehttp/psr7": "^1.6.1", - "php": ">=5.5", - "symfony/polyfill-intl-idn": "^1.17.0" + "guzzlehttp/promises": "^1.4", + "guzzlehttp/psr7": "^1.7", + "php": "^7.2.5 || ^8.0", + "psr/http-client": "^1.0" + }, + "provide": { + "psr/http-client-implementation": "1.0" }, "require-dev": { "ext-curl": "*", - "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.4 || ^7.0", + "php-http/client-integration-tests": "^3.0", + "phpunit/phpunit": "^8.5.5 || ^9.3.5", "psr/log": "^1.1" }, "suggest": { + "ext-curl": "Required for CURL handler support", + "ext-intl": "Required for Internationalized Domain Name (IDN) support", "psr/log": "Required for using the Log middleware" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "6.5-dev" + "dev-master": "7.1-dev" } }, "autoload": { @@ -1278,6 +1334,11 @@ "name": "Michael Dowling", "email": "mtdowling@gmail.com", "homepage": "https://github.com/mtdowling" + }, + { + "name": "Márk Sági-Kazár", + "email": "mark.sagikazar@gmail.com", + "homepage": "https://sagikazarmark.hu" } ], "description": "Guzzle is a PHP HTTP client library", @@ -1288,30 +1349,50 @@ "framework", "http", "http client", + "psr-18", + "psr-7", "rest", "web service" ], - "time": "2020-06-16T21:01:06+00:00" + "funding": [ + { + "url": "https://github.com/GrahamCampbell", + "type": "github" + }, + { + "url": "https://github.com/Nyholm", + "type": "github" + }, + { + "url": "https://github.com/alexeyshockov", + "type": "github" + }, + { + "url": "https://github.com/gmponos", + "type": "github" + } + ], + "time": "2020-10-10T11:47:56+00:00" }, { "name": "guzzlehttp/promises", - "version": "v1.3.1", + "version": "1.4.0", "source": { "type": "git", "url": "https://github.com/guzzle/promises.git", - "reference": "a59da6cf61d80060647ff4d3eb2c03a2bc694646" + "reference": "60d379c243457e073cff02bc323a2a86cb355631" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/guzzle/promises/zipball/a59da6cf61d80060647ff4d3eb2c03a2bc694646", - "reference": "a59da6cf61d80060647ff4d3eb2c03a2bc694646", + "url": "https://api.github.com/repos/guzzle/promises/zipball/60d379c243457e073cff02bc323a2a86cb355631", + "reference": "60d379c243457e073cff02bc323a2a86cb355631", "shasum": "" }, "require": { - "php": ">=5.5.0" + "php": ">=5.5" }, "require-dev": { - "phpunit/phpunit": "^4.0" + "symfony/phpunit-bridge": "^4.4 || ^5.1" }, "type": "library", "extra": { @@ -1342,20 +1423,20 @@ "keywords": [ "promise" ], - "time": "2016-12-20T10:07:11+00:00" + "time": "2020-09-30T07:37:28+00:00" }, { "name": "guzzlehttp/psr7", - "version": "1.6.1", + "version": "1.7.0", "source": { "type": "git", "url": "https://github.com/guzzle/psr7.git", - "reference": "239400de7a173fe9901b9ac7c06497751f00727a" + "reference": "53330f47520498c0ae1f61f7e2c90f55690c06a3" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/guzzle/psr7/zipball/239400de7a173fe9901b9ac7c06497751f00727a", - "reference": "239400de7a173fe9901b9ac7c06497751f00727a", + "url": "https://api.github.com/repos/guzzle/psr7/zipball/53330f47520498c0ae1f61f7e2c90f55690c06a3", + "reference": "53330f47520498c0ae1f61f7e2c90f55690c06a3", "shasum": "" }, "require": { @@ -1368,15 +1449,15 @@ }, "require-dev": { "ext-zlib": "*", - "phpunit/phpunit": "~4.8.36 || ^5.7.27 || ^6.5.8" + "phpunit/phpunit": "~4.8.36 || ^5.7.27 || ^6.5.14 || ^7.5.20 || ^8.5.8 || ^9.3.10" }, "suggest": { - "zendframework/zend-httphandlerrunner": "Emit PSR-7 responses" + "laminas/laminas-httphandlerrunner": "Emit PSR-7 responses" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.6-dev" + "dev-master": "1.7-dev" } }, "autoload": { @@ -1413,7 +1494,7 @@ "uri", "url" ], - "time": "2019-07-01T23:21:34+00:00" + "time": "2020-09-30T07:37:11+00:00" }, { "name": "influxdb/influxdb-php", @@ -1478,47 +1559,46 @@ }, { "name": "laravel/framework", - "version": "v7.28.3", + "version": "v8.11.2", "source": { "type": "git", "url": "https://github.com/laravel/framework.git", - "reference": "b0942c391975972b1a54b2dc983e33a239f169a9" + "reference": "8d1f25fb8d124d5a24df9714ed8d481c43f9efe6" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/laravel/framework/zipball/b0942c391975972b1a54b2dc983e33a239f169a9", - "reference": "b0942c391975972b1a54b2dc983e33a239f169a9", + "url": "https://api.github.com/repos/laravel/framework/zipball/8d1f25fb8d124d5a24df9714ed8d481c43f9efe6", + "reference": "8d1f25fb8d124d5a24df9714ed8d481c43f9efe6", "shasum": "" }, "require": { "doctrine/inflector": "^1.4|^2.0", - "dragonmantank/cron-expression": "^2.0", + "dragonmantank/cron-expression": "^3.0.2", "egulias/email-validator": "^2.1.10", "ext-json": "*", "ext-mbstring": "*", "ext-openssl": "*", "league/commonmark": "^1.3", - "league/flysystem": "^1.0.34", + "league/flysystem": "^1.1", "monolog/monolog": "^2.0", - "nesbot/carbon": "^2.17", - "opis/closure": "^3.1", - "php": "^7.2.5", + "nesbot/carbon": "^2.31", + "opis/closure": "^3.6", + "php": "^7.3", "psr/container": "^1.0", "psr/simple-cache": "^1.0", - "ramsey/uuid": "^3.7|^4.0", + "ramsey/uuid": "^4.0", "swiftmailer/swiftmailer": "^6.0", - "symfony/console": "^5.0", - "symfony/error-handler": "^5.0", - "symfony/finder": "^5.0", - "symfony/http-foundation": "^5.0", - "symfony/http-kernel": "^5.0", - "symfony/mime": "^5.0", - "symfony/polyfill-php73": "^1.17", - "symfony/process": "^5.0", - "symfony/routing": "^5.0", - "symfony/var-dumper": "^5.0", + "symfony/console": "^5.1", + "symfony/error-handler": "^5.1", + "symfony/finder": "^5.1", + "symfony/http-foundation": "^5.1", + "symfony/http-kernel": "^5.1", + "symfony/mime": "^5.1", + "symfony/process": "^5.1", + "symfony/routing": "^5.1", + "symfony/var-dumper": "^5.1", "tijsverkoyen/css-to-inline-styles": "^2.2.2", - "vlucas/phpdotenv": "^4.0", + "vlucas/phpdotenv": "^5.2", "voku/portable-ascii": "^1.4.8" }, "conflict": { @@ -1532,6 +1612,7 @@ "illuminate/broadcasting": "self.version", "illuminate/bus": "self.version", "illuminate/cache": "self.version", + "illuminate/collections": "self.version", "illuminate/config": "self.version", "illuminate/console": "self.version", "illuminate/container": "self.version", @@ -1544,6 +1625,7 @@ "illuminate/hashing": "self.version", "illuminate/http": "self.version", "illuminate/log": "self.version", + "illuminate/macroable": "self.version", "illuminate/mail": "self.version", "illuminate/notifications": "self.version", "illuminate/pagination": "self.version", @@ -1561,16 +1643,15 @@ "require-dev": { "aws/aws-sdk-php": "^3.0", "doctrine/dbal": "^2.6", - "filp/whoops": "^2.4", - "guzzlehttp/guzzle": "^6.3.1|^7.0", + "filp/whoops": "^2.8", + "guzzlehttp/guzzle": "^6.5.5|^7.0.1", "league/flysystem-cached-adapter": "^1.0", - "mockery/mockery": "^1.3.1", - "moontoast/math": "^1.1", - "orchestra/testbench-core": "^5.0", + "mockery/mockery": "^1.4.2", + "orchestra/testbench-core": "^6.0", "pda/pheanstalk": "^4.0", - "phpunit/phpunit": "^8.4|^9.0", + "phpunit/phpunit": "^8.5.8|^9.3.3", "predis/predis": "^1.1.1", - "symfony/cache": "^5.0" + "symfony/cache": "^5.1" }, "suggest": { "aws/aws-sdk-php": "Required to use the SQS queue driver, DynamoDb failed job storage and SES mail driver (^3.0).", @@ -1581,39 +1662,44 @@ "ext-pcntl": "Required to use all features of the queue worker.", "ext-posix": "Required to use all features of the queue worker.", "ext-redis": "Required to use the Redis cache and queue drivers (^4.0|^5.0).", - "filp/whoops": "Required for friendly error pages in development (^2.4).", + "filp/whoops": "Required for friendly error pages in development (^2.8).", "fzaninotto/faker": "Required to use the eloquent factory builder (^1.9.1).", - "guzzlehttp/guzzle": "Required to use the HTTP Client, Mailgun mail driver and the ping methods on schedules (^6.3.1|^7.0).", + "guzzlehttp/guzzle": "Required to use the HTTP Client, Mailgun mail driver and the ping methods on schedules (^6.5.5|^7.0.1).", "laravel/tinker": "Required to use the tinker console command (^2.0).", "league/flysystem-aws-s3-v3": "Required to use the Flysystem S3 driver (^1.0).", "league/flysystem-cached-adapter": "Required to use the Flysystem cache (^1.0).", "league/flysystem-sftp": "Required to use the Flysystem SFTP driver (^1.0).", - "mockery/mockery": "Required to use mocking (^1.3.1).", - "moontoast/math": "Required to use ordered UUIDs (^1.1).", + "mockery/mockery": "Required to use mocking (^1.4.2).", "nyholm/psr7": "Required to use PSR-7 bridging features (^1.2).", "pda/pheanstalk": "Required to use the beanstalk queue driver (^4.0).", - "phpunit/phpunit": "Required to use assertions and run tests (^8.4|^9.0).", + "phpunit/phpunit": "Required to use assertions and run tests (^8.5.8|^9.3.3).", "predis/predis": "Required to use the predis connector (^1.1.2).", "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).", - "symfony/cache": "Required to PSR-6 cache bridge (^5.0).", - "symfony/filesystem": "Required to create relative storage directory symbolic links (^5.0).", + "symfony/cache": "Required to PSR-6 cache bridge (^5.1).", + "symfony/filesystem": "Required to enable support for relative symbolic links (^5.1).", "symfony/psr-http-message-bridge": "Required to use PSR-7 bridging features (^2.0).", "wildbit/swiftmailer-postmark": "Required to use Postmark mail driver (^3.0)." }, "type": "library", "extra": { "branch-alias": { - "dev-master": "7.x-dev" + "dev-master": "8.x-dev" } }, "autoload": { "files": [ + "src/Illuminate/Collections/helpers.php", + "src/Illuminate/Events/functions.php", "src/Illuminate/Foundation/helpers.php", "src/Illuminate/Support/helpers.php" ], "psr-4": { - "Illuminate\\": "src/Illuminate/" + "Illuminate\\": "src/Illuminate/", + "Illuminate\\Support\\": [ + "src/Illuminate/Macroable/", + "src/Illuminate/Collections/" + ] } }, "notification-url": "https://packagist.org/downloads/", @@ -1632,7 +1718,7 @@ "framework", "laravel" ], - "time": "2020-09-17T14:23:26+00:00" + "time": "2020-10-20T20:12:53+00:00" }, { "name": "laravel/tinker", @@ -1700,30 +1786,29 @@ }, { "name": "laravel/ui", - "version": "v2.4.1", + "version": "v3.0.0", "source": { "type": "git", "url": "https://github.com/laravel/ui.git", - "reference": "1c69ae3e8b52fe6c9eaf83b43c6dd8ef5c3f9e2c" + "reference": "ff6af4f0bc5a5bfe73352cdc03dbfffc4ace92d8" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/laravel/ui/zipball/1c69ae3e8b52fe6c9eaf83b43c6dd8ef5c3f9e2c", - "reference": "1c69ae3e8b52fe6c9eaf83b43c6dd8ef5c3f9e2c", + "url": "https://api.github.com/repos/laravel/ui/zipball/ff6af4f0bc5a5bfe73352cdc03dbfffc4ace92d8", + "reference": "ff6af4f0bc5a5bfe73352cdc03dbfffc4ace92d8", "shasum": "" }, "require": { - "illuminate/console": "^7.0", - "illuminate/filesystem": "^7.0", - "illuminate/support": "^7.0", - "php": "^7.2.5" - }, - "require-dev": { - "mockery/mockery": "^1.0", - "phpunit/phpunit": "^8.0" + "illuminate/console": "^8.0", + "illuminate/filesystem": "^8.0", + "illuminate/support": "^8.0", + "php": "^7.3" }, "type": "library", "extra": { + "branch-alias": { + "dev-master": "3.x-dev" + }, "laravel": { "providers": [ "Laravel\\Ui\\UiServiceProvider" @@ -1751,20 +1836,20 @@ "laravel", "ui" ], - "time": "2020-09-22T16:51:51+00:00" + "time": "2020-09-11T15:34:08+00:00" }, { "name": "league/commonmark", - "version": "1.5.5", + "version": "1.5.6", "source": { "type": "git", "url": "https://github.com/thephpleague/commonmark.git", - "reference": "45832dfed6007b984c0d40addfac48d403dc6432" + "reference": "a56e91e0fa1f6d0049153a9c34f63488f6b7ce61" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/thephpleague/commonmark/zipball/45832dfed6007b984c0d40addfac48d403dc6432", - "reference": "45832dfed6007b984c0d40addfac48d403dc6432", + "url": "https://api.github.com/repos/thephpleague/commonmark/zipball/a56e91e0fa1f6d0049153a9c34f63488f6b7ce61", + "reference": "a56e91e0fa1f6d0049153a9c34f63488f6b7ce61", "shasum": "" }, "require": { @@ -1846,7 +1931,7 @@ "type": "tidelift" } ], - "time": "2020-09-13T14:44:46+00:00" + "time": "2020-10-17T21:33:03+00:00" }, { "name": "league/flysystem", @@ -1941,16 +2026,16 @@ }, { "name": "league/mime-type-detection", - "version": "1.5.0", + "version": "1.5.1", "source": { "type": "git", "url": "https://github.com/thephpleague/mime-type-detection.git", - "reference": "ea2fbfc988bade315acd5967e6d02274086d0f28" + "reference": "353f66d7555d8a90781f6f5e7091932f9a4250aa" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/thephpleague/mime-type-detection/zipball/ea2fbfc988bade315acd5967e6d02274086d0f28", - "reference": "ea2fbfc988bade315acd5967e6d02274086d0f28", + "url": "https://api.github.com/repos/thephpleague/mime-type-detection/zipball/353f66d7555d8a90781f6f5e7091932f9a4250aa", + "reference": "353f66d7555d8a90781f6f5e7091932f9a4250aa", "shasum": "" }, "require": { @@ -1988,7 +2073,7 @@ "type": "tidelift" } ], - "time": "2020-09-21T18:10:53+00:00" + "time": "2020-10-18T11:50:25+00:00" }, { "name": "librenms/laravel-vue-i18n-generator", @@ -2143,16 +2228,16 @@ }, { "name": "nesbot/carbon", - "version": "2.40.1", + "version": "2.41.5", "source": { "type": "git", "url": "https://github.com/briannesbitt/Carbon.git", - "reference": "d9a76d8b7eb0f97cf3a82529393245212f40ba3b" + "reference": "c4a9caf97cfc53adfc219043bcecf42bc663acee" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/briannesbitt/Carbon/zipball/d9a76d8b7eb0f97cf3a82529393245212f40ba3b", - "reference": "d9a76d8b7eb0f97cf3a82529393245212f40ba3b", + "url": "https://api.github.com/repos/briannesbitt/Carbon/zipball/c4a9caf97cfc53adfc219043bcecf42bc663acee", + "reference": "c4a9caf97cfc53adfc219043bcecf42bc663acee", "shasum": "" }, "require": { @@ -2228,7 +2313,7 @@ "type": "tidelift" } ], - "time": "2020-09-23T08:17:37+00:00" + "time": "2020-10-23T06:02:30+00:00" }, { "name": "nikic/php-parser", @@ -2284,29 +2369,29 @@ }, { "name": "opis/closure", - "version": "3.5.7", + "version": "3.6.0", "source": { "type": "git", "url": "https://github.com/opis/closure.git", - "reference": "4531e53afe2fc660403e76fb7644e95998bff7bf" + "reference": "c547f8262a5fa9ff507bd06cc394067b83a75085" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/opis/closure/zipball/4531e53afe2fc660403e76fb7644e95998bff7bf", - "reference": "4531e53afe2fc660403e76fb7644e95998bff7bf", + "url": "https://api.github.com/repos/opis/closure/zipball/c547f8262a5fa9ff507bd06cc394067b83a75085", + "reference": "c547f8262a5fa9ff507bd06cc394067b83a75085", "shasum": "" }, "require": { - "php": "^5.4 || ^7.0" + "php": "^5.4 || ^7.0 || ^8.0" }, "require-dev": { "jeremeamia/superclosure": "^2.0", - "phpunit/phpunit": "^4.0 || ^5.0 || ^6.0 || ^7.0" + "phpunit/phpunit": "^4.0 || ^5.0 || ^6.0 || ^7.0 || ^8.0 || ^9.0" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "3.5.x-dev" + "dev-master": "3.6.x-dev" } }, "autoload": { @@ -2341,7 +2426,7 @@ "serialization", "serialize" ], - "time": "2020-09-06T17:02:15+00:00" + "time": "2020-10-11T21:42:15+00:00" }, { "name": "oriceon/toastr-5-laravel", @@ -2402,51 +2487,6 @@ ], "time": "2018-04-30T05:58:02+00:00" }, - { - "name": "paragonie/random_compat", - "version": "v9.99.99", - "source": { - "type": "git", - "url": "https://github.com/paragonie/random_compat.git", - "reference": "84b4dfb120c6f9b4ff7b3685f9b8f1aa365a0c95" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/paragonie/random_compat/zipball/84b4dfb120c6f9b4ff7b3685f9b8f1aa365a0c95", - "reference": "84b4dfb120c6f9b4ff7b3685f9b8f1aa365a0c95", - "shasum": "" - }, - "require": { - "php": "^7" - }, - "require-dev": { - "phpunit/phpunit": "4.*|5.*", - "vimeo/psalm": "^1" - }, - "suggest": { - "ext-libsodium": "Provides a modern crypto API that can be used to generate random bytes." - }, - "type": "library", - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Paragon Initiative Enterprises", - "email": "security@paragonie.com", - "homepage": "https://paragonie.com" - } - ], - "description": "PHP 5.x polyfill for random_bytes() and random_int() from PHP 7", - "keywords": [ - "csprng", - "polyfill", - "pseudorandom", - "random" - ], - "time": "2018-07-02T15:55:56+00:00" - }, { "name": "pear/console_color2", "version": "0.1.2", @@ -2630,21 +2670,22 @@ }, { "name": "phpmailer/phpmailer", - "version": "v6.1.7", + "version": "v6.1.8", "source": { "type": "git", "url": "https://github.com/PHPMailer/PHPMailer.git", - "reference": "2c2370ba3df7034f9eb7b8f387c97b52b2ba5ad0" + "reference": "917ab212fa00dc6eacbb26e8bc387ebe40993bc1" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/PHPMailer/PHPMailer/zipball/2c2370ba3df7034f9eb7b8f387c97b52b2ba5ad0", - "reference": "2c2370ba3df7034f9eb7b8f387c97b52b2ba5ad0", + "url": "https://api.github.com/repos/PHPMailer/PHPMailer/zipball/917ab212fa00dc6eacbb26e8bc387ebe40993bc1", + "reference": "917ab212fa00dc6eacbb26e8bc387ebe40993bc1", "shasum": "" }, "require": { "ext-ctype": "*", "ext-filter": "*", + "ext-hash": "*", "php": ">=5.5.0" }, "require-dev": { @@ -2694,7 +2735,7 @@ "type": "github" } ], - "time": "2020-07-14T18:50:27+00:00" + "time": "2020-10-09T14:55:58+00:00" }, { "name": "phpoption/phpoption", @@ -3036,6 +3077,55 @@ ], "time": "2019-01-08T18:20:26+00:00" }, + { + "name": "psr/http-client", + "version": "1.0.1", + "source": { + "type": "git", + "url": "https://github.com/php-fig/http-client.git", + "reference": "2dfb5f6c5eff0e91e20e913f8c5452ed95b86621" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/http-client/zipball/2dfb5f6c5eff0e91e20e913f8c5452ed95b86621", + "reference": "2dfb5f6c5eff0e91e20e913f8c5452ed95b86621", + "shasum": "" + }, + "require": { + "php": "^7.0 || ^8.0", + "psr/http-message": "^1.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "Psr\\Http\\Client\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "http://www.php-fig.org/" + } + ], + "description": "Common interface for HTTP clients", + "homepage": "https://github.com/php-fig/http-client", + "keywords": [ + "http", + "http-client", + "psr", + "psr-18" + ], + "time": "2020-06-29T06:28:15+00:00" + }, { "name": "psr/http-message", "version": "1.0.1", @@ -3562,16 +3652,16 @@ }, { "name": "symfony/console", - "version": "v5.0.11", + "version": "v5.1.7", "source": { "type": "git", "url": "https://github.com/symfony/console.git", - "reference": "95794074741645473221fb126d5cb4057ad25bf1" + "reference": "ae789a8a2ad189ce7e8216942cdb9b77319f5eb8" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/console/zipball/95794074741645473221fb126d5cb4057ad25bf1", - "reference": "95794074741645473221fb126d5cb4057ad25bf1", + "url": "https://api.github.com/repos/symfony/console/zipball/ae789a8a2ad189ce7e8216942cdb9b77319f5eb8", + "reference": "ae789a8a2ad189ce7e8216942cdb9b77319f5eb8", "shasum": "" }, "require": { @@ -3579,10 +3669,12 @@ "symfony/polyfill-mbstring": "~1.0", "symfony/polyfill-php73": "^1.8", "symfony/polyfill-php80": "^1.15", - "symfony/service-contracts": "^1.1|^2" + "symfony/service-contracts": "^1.1|^2", + "symfony/string": "^5.1" }, "conflict": { "symfony/dependency-injection": "<4.4", + "symfony/dotenv": "<5.1", "symfony/event-dispatcher": "<4.4", "symfony/lock": "<4.4", "symfony/process": "<4.4" @@ -3608,7 +3700,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "5.0-dev" + "dev-master": "5.1-dev" } }, "autoload": { @@ -3649,11 +3741,11 @@ "type": "tidelift" } ], - "time": "2020-07-06T13:22:03+00:00" + "time": "2020-10-07T15:23:00+00:00" }, { "name": "symfony/css-selector", - "version": "v5.1.6", + "version": "v5.1.7", "source": { "type": "git", "url": "https://github.com/symfony/css-selector.git", @@ -3782,89 +3874,18 @@ ], "time": "2020-09-07T11:33:47+00:00" }, - { - "name": "symfony/dotenv", - "version": "v3.4.45", - "source": { - "type": "git", - "url": "https://github.com/symfony/dotenv.git", - "reference": "22577db70b4fbd2e93d6b331ce2ae5f3d49f20e6" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/symfony/dotenv/zipball/22577db70b4fbd2e93d6b331ce2ae5f3d49f20e6", - "reference": "22577db70b4fbd2e93d6b331ce2ae5f3d49f20e6", - "shasum": "" - }, - "require": { - "php": "^5.5.9|>=7.0.8" - }, - "require-dev": { - "symfony/process": "^3.4.2|^4.0" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "3.4-dev" - } - }, - "autoload": { - "psr-4": { - "Symfony\\Component\\Dotenv\\": "" - }, - "exclude-from-classmap": [ - "/Tests/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Fabien Potencier", - "email": "fabien@symfony.com" - }, - { - "name": "Symfony Community", - "homepage": "https://symfony.com/contributors" - } - ], - "description": "Registers environment variables from a .env file", - "homepage": "https://symfony.com", - "keywords": [ - "dotenv", - "env", - "environment" - ], - "funding": [ - { - "url": "https://symfony.com/sponsor", - "type": "custom" - }, - { - "url": "https://github.com/fabpot", - "type": "github" - }, - { - "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", - "type": "tidelift" - } - ], - "time": "2020-01-07T20:29:45+00:00" - }, { "name": "symfony/error-handler", - "version": "v5.1.6", + "version": "v5.1.7", "source": { "type": "git", "url": "https://github.com/symfony/error-handler.git", - "reference": "d2f1d4996d5499f1261164d10080e4120001f041" + "reference": "5e4d8ef8d71822922d1eebd130219ae3491a5ca9" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/error-handler/zipball/d2f1d4996d5499f1261164d10080e4120001f041", - "reference": "d2f1d4996d5499f1261164d10080e4120001f041", + "url": "https://api.github.com/repos/symfony/error-handler/zipball/5e4d8ef8d71822922d1eebd130219ae3491a5ca9", + "reference": "5e4d8ef8d71822922d1eebd130219ae3491a5ca9", "shasum": "" }, "require": { @@ -3922,11 +3943,11 @@ "type": "tidelift" } ], - "time": "2020-09-27T03:44:28+00:00" + "time": "2020-10-02T08:49:02+00:00" }, { "name": "symfony/event-dispatcher", - "version": "v5.1.6", + "version": "v5.1.7", "source": { "type": "git", "url": "https://github.com/symfony/event-dispatcher.git", @@ -4089,7 +4110,7 @@ }, { "name": "symfony/finder", - "version": "v5.1.6", + "version": "v5.1.7", "source": { "type": "git", "url": "https://github.com/symfony/finder.git", @@ -4152,16 +4173,16 @@ }, { "name": "symfony/http-client-contracts", - "version": "v2.2.0", + "version": "v2.3.1", "source": { "type": "git", "url": "https://github.com/symfony/http-client-contracts.git", - "reference": "3a5d0fe7908daaa23e3dbf4cee3ba4bfbb19fdd3" + "reference": "41db680a15018f9c1d4b23516059633ce280ca33" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/http-client-contracts/zipball/3a5d0fe7908daaa23e3dbf4cee3ba4bfbb19fdd3", - "reference": "3a5d0fe7908daaa23e3dbf4cee3ba4bfbb19fdd3", + "url": "https://api.github.com/repos/symfony/http-client-contracts/zipball/41db680a15018f9c1d4b23516059633ce280ca33", + "reference": "41db680a15018f9c1d4b23516059633ce280ca33", "shasum": "" }, "require": { @@ -4172,8 +4193,9 @@ }, "type": "library", "extra": { + "branch-version": "2.3", "branch-alias": { - "dev-master": "2.2-dev" + "dev-main": "2.3-dev" }, "thanks": { "name": "symfony/contracts", @@ -4223,20 +4245,20 @@ "type": "tidelift" } ], - "time": "2020-09-07T11:33:47+00:00" + "time": "2020-10-14T17:08:19+00:00" }, { "name": "symfony/http-foundation", - "version": "v5.1.6", + "version": "v5.1.7", "source": { "type": "git", "url": "https://github.com/symfony/http-foundation.git", - "reference": "6cca6b2e4b69fc5bace160d14cf1ee5f71483db4" + "reference": "353b42e7b4fd1c898aab09a059466c9cea74039b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/http-foundation/zipball/6cca6b2e4b69fc5bace160d14cf1ee5f71483db4", - "reference": "6cca6b2e4b69fc5bace160d14cf1ee5f71483db4", + "url": "https://api.github.com/repos/symfony/http-foundation/zipball/353b42e7b4fd1c898aab09a059466c9cea74039b", + "reference": "353b42e7b4fd1c898aab09a059466c9cea74039b", "shasum": "" }, "require": { @@ -4298,20 +4320,20 @@ "type": "tidelift" } ], - "time": "2020-09-13T05:01:27+00:00" + "time": "2020-09-27T14:14:57+00:00" }, { "name": "symfony/http-kernel", - "version": "v5.1.6", + "version": "v5.1.7", "source": { "type": "git", "url": "https://github.com/symfony/http-kernel.git", - "reference": "17227644c3c66dcf32bdfeceff4364d090cd6756" + "reference": "1764b87d2f10d5c9ce6e4850fe27934116d89708" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/http-kernel/zipball/17227644c3c66dcf32bdfeceff4364d090cd6756", - "reference": "17227644c3c66dcf32bdfeceff4364d090cd6756", + "url": "https://api.github.com/repos/symfony/http-kernel/zipball/1764b87d2f10d5c9ce6e4850fe27934116d89708", + "reference": "1764b87d2f10d5c9ce6e4850fe27934116d89708", "shasum": "" }, "require": { @@ -4412,11 +4434,11 @@ "type": "tidelift" } ], - "time": "2020-09-27T04:33:19+00:00" + "time": "2020-10-04T07:57:28+00:00" }, { "name": "symfony/mime", - "version": "v5.1.6", + "version": "v5.1.7", "source": { "type": "git", "url": "https://github.com/symfony/mime.git", @@ -4493,20 +4515,20 @@ }, { "name": "symfony/polyfill-ctype", - "version": "v1.18.1", + "version": "v1.20.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-ctype.git", - "reference": "1c302646f6efc070cd46856e600e5e0684d6b454" + "reference": "f4ba089a5b6366e453971d3aad5fe8e897b37f41" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/1c302646f6efc070cd46856e600e5e0684d6b454", - "reference": "1c302646f6efc070cd46856e600e5e0684d6b454", + "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/f4ba089a5b6366e453971d3aad5fe8e897b37f41", + "reference": "f4ba089a5b6366e453971d3aad5fe8e897b37f41", "shasum": "" }, "require": { - "php": ">=5.3.3" + "php": ">=7.1" }, "suggest": { "ext-ctype": "For best performance" @@ -4514,7 +4536,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "1.18-dev" + "dev-main": "1.20-dev" }, "thanks": { "name": "symfony/polyfill", @@ -4565,24 +4587,24 @@ "type": "tidelift" } ], - "time": "2020-07-14T12:35:20+00:00" + "time": "2020-10-23T14:02:19+00:00" }, { "name": "symfony/polyfill-iconv", - "version": "v1.18.1", + "version": "v1.20.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-iconv.git", - "reference": "6c2f78eb8f5ab8eaea98f6d414a5915f2e0fce36" + "reference": "c536646fdb4f29104dd26effc2fdcb9a5b085024" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-iconv/zipball/6c2f78eb8f5ab8eaea98f6d414a5915f2e0fce36", - "reference": "6c2f78eb8f5ab8eaea98f6d414a5915f2e0fce36", + "url": "https://api.github.com/repos/symfony/polyfill-iconv/zipball/c536646fdb4f29104dd26effc2fdcb9a5b085024", + "reference": "c536646fdb4f29104dd26effc2fdcb9a5b085024", "shasum": "" }, "require": { - "php": ">=5.3.3" + "php": ">=7.1" }, "suggest": { "ext-iconv": "For best performance" @@ -4590,7 +4612,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "1.18-dev" + "dev-main": "1.20-dev" }, "thanks": { "name": "symfony/polyfill", @@ -4642,27 +4664,24 @@ "type": "tidelift" } ], - "time": "2020-07-14T12:35:20+00:00" + "time": "2020-10-23T14:02:19+00:00" }, { - "name": "symfony/polyfill-intl-idn", - "version": "v1.18.1", + "name": "symfony/polyfill-intl-grapheme", + "version": "v1.20.0", "source": { "type": "git", - "url": "https://github.com/symfony/polyfill-intl-idn.git", - "reference": "5dcab1bc7146cf8c1beaa4502a3d9be344334251" + "url": "https://github.com/symfony/polyfill-intl-grapheme.git", + "reference": "c7cf3f858ec7d70b89559d6e6eb1f7c2517d479c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-intl-idn/zipball/5dcab1bc7146cf8c1beaa4502a3d9be344334251", - "reference": "5dcab1bc7146cf8c1beaa4502a3d9be344334251", + "url": "https://api.github.com/repos/symfony/polyfill-intl-grapheme/zipball/c7cf3f858ec7d70b89559d6e6eb1f7c2517d479c", + "reference": "c7cf3f858ec7d70b89559d6e6eb1f7c2517d479c", "shasum": "" }, "require": { - "php": ">=5.3.3", - "symfony/polyfill-intl-normalizer": "^1.10", - "symfony/polyfill-php70": "^1.10", - "symfony/polyfill-php72": "^1.10" + "php": ">=7.1" }, "suggest": { "ext-intl": "For best performance" @@ -4670,7 +4689,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "1.18-dev" + "dev-main": "1.20-dev" }, "thanks": { "name": "symfony/polyfill", @@ -4679,7 +4698,7 @@ }, "autoload": { "psr-4": { - "Symfony\\Polyfill\\Intl\\Idn\\": "" + "Symfony\\Polyfill\\Intl\\Grapheme\\": "" }, "files": [ "bootstrap.php" @@ -4691,23 +4710,19 @@ ], "authors": [ { - "name": "Laurent Bassin", - "email": "laurent@bassin.info" - }, - { - "name": "Trevor Rowbotham", - "email": "trevor.rowbotham@pm.me" + "name": "Nicolas Grekas", + "email": "p@tchwork.com" }, { "name": "Symfony Community", "homepage": "https://symfony.com/contributors" } ], - "description": "Symfony polyfill for intl's idn_to_ascii and idn_to_utf8 functions", + "description": "Symfony polyfill for intl's grapheme_* functions", "homepage": "https://symfony.com", "keywords": [ "compatibility", - "idn", + "grapheme", "intl", "polyfill", "portable", @@ -4727,24 +4742,26 @@ "type": "tidelift" } ], - "time": "2020-08-04T06:02:08+00:00" + "time": "2020-10-23T14:02:19+00:00" }, { - "name": "symfony/polyfill-intl-normalizer", - "version": "v1.18.1", + "name": "symfony/polyfill-intl-idn", + "version": "v1.20.0", "source": { "type": "git", - "url": "https://github.com/symfony/polyfill-intl-normalizer.git", - "reference": "37078a8dd4a2a1e9ab0231af7c6cb671b2ed5a7e" + "url": "https://github.com/symfony/polyfill-intl-idn.git", + "reference": "3b75acd829741c768bc8b1f84eb33265e7cc5117" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-intl-normalizer/zipball/37078a8dd4a2a1e9ab0231af7c6cb671b2ed5a7e", - "reference": "37078a8dd4a2a1e9ab0231af7c6cb671b2ed5a7e", + "url": "https://api.github.com/repos/symfony/polyfill-intl-idn/zipball/3b75acd829741c768bc8b1f84eb33265e7cc5117", + "reference": "3b75acd829741c768bc8b1f84eb33265e7cc5117", "shasum": "" }, "require": { - "php": ">=5.3.3" + "php": ">=7.1", + "symfony/polyfill-intl-normalizer": "^1.10", + "symfony/polyfill-php72": "^1.10" }, "suggest": { "ext-intl": "For best performance" @@ -4752,7 +4769,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "1.18-dev" + "dev-main": "1.20-dev" }, "thanks": { "name": "symfony/polyfill", @@ -4761,13 +4778,10 @@ }, "autoload": { "psr-4": { - "Symfony\\Polyfill\\Intl\\Normalizer\\": "" + "Symfony\\Polyfill\\Intl\\Idn\\": "" }, "files": [ "bootstrap.php" - ], - "classmap": [ - "Resources/stubs" ] }, "notification-url": "https://packagist.org/downloads/", @@ -4776,20 +4790,24 @@ ], "authors": [ { - "name": "Nicolas Grekas", - "email": "p@tchwork.com" + "name": "Laurent Bassin", + "email": "laurent@bassin.info" + }, + { + "name": "Trevor Rowbotham", + "email": "trevor.rowbotham@pm.me" }, { "name": "Symfony Community", "homepage": "https://symfony.com/contributors" } ], - "description": "Symfony polyfill for intl's Normalizer class and related functions", + "description": "Symfony polyfill for intl's idn_to_ascii and idn_to_utf8 functions", "homepage": "https://symfony.com", "keywords": [ "compatibility", + "idn", "intl", - "normalizer", "polyfill", "portable", "shim" @@ -4808,32 +4826,32 @@ "type": "tidelift" } ], - "time": "2020-07-14T12:35:20+00:00" + "time": "2020-10-23T14:02:19+00:00" }, { - "name": "symfony/polyfill-mbstring", - "version": "v1.18.1", + "name": "symfony/polyfill-intl-normalizer", + "version": "v1.20.0", "source": { "type": "git", - "url": "https://github.com/symfony/polyfill-mbstring.git", - "reference": "a6977d63bf9a0ad4c65cd352709e230876f9904a" + "url": "https://github.com/symfony/polyfill-intl-normalizer.git", + "reference": "727d1096295d807c309fb01a851577302394c897" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/a6977d63bf9a0ad4c65cd352709e230876f9904a", - "reference": "a6977d63bf9a0ad4c65cd352709e230876f9904a", + "url": "https://api.github.com/repos/symfony/polyfill-intl-normalizer/zipball/727d1096295d807c309fb01a851577302394c897", + "reference": "727d1096295d807c309fb01a851577302394c897", "shasum": "" }, "require": { - "php": ">=5.3.3" + "php": ">=7.1" }, "suggest": { - "ext-mbstring": "For best performance" + "ext-intl": "For best performance" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.18-dev" + "dev-main": "1.20-dev" }, "thanks": { "name": "symfony/polyfill", @@ -4842,10 +4860,13 @@ }, "autoload": { "psr-4": { - "Symfony\\Polyfill\\Mbstring\\": "" + "Symfony\\Polyfill\\Intl\\Normalizer\\": "" }, "files": [ "bootstrap.php" + ], + "classmap": [ + "Resources/stubs" ] }, "notification-url": "https://packagist.org/downloads/", @@ -4862,11 +4883,12 @@ "homepage": "https://symfony.com/contributors" } ], - "description": "Symfony polyfill for the Mbstring extension", + "description": "Symfony polyfill for intl's Normalizer class and related functions", "homepage": "https://symfony.com", "keywords": [ "compatibility", - "mbstring", + "intl", + "normalizer", "polyfill", "portable", "shim" @@ -4885,30 +4907,32 @@ "type": "tidelift" } ], - "time": "2020-07-14T12:35:20+00:00" + "time": "2020-10-23T14:02:19+00:00" }, { - "name": "symfony/polyfill-php70", - "version": "v1.18.1", + "name": "symfony/polyfill-mbstring", + "version": "v1.20.0", "source": { "type": "git", - "url": "https://github.com/symfony/polyfill-php70.git", - "reference": "0dd93f2c578bdc9c72697eaa5f1dd25644e618d3" + "url": "https://github.com/symfony/polyfill-mbstring.git", + "reference": "39d483bdf39be819deabf04ec872eb0b2410b531" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-php70/zipball/0dd93f2c578bdc9c72697eaa5f1dd25644e618d3", - "reference": "0dd93f2c578bdc9c72697eaa5f1dd25644e618d3", + "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/39d483bdf39be819deabf04ec872eb0b2410b531", + "reference": "39d483bdf39be819deabf04ec872eb0b2410b531", "shasum": "" }, "require": { - "paragonie/random_compat": "~1.0|~2.0|~9.99", - "php": ">=5.3.3" + "php": ">=7.1" + }, + "suggest": { + "ext-mbstring": "For best performance" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.18-dev" + "dev-main": "1.20-dev" }, "thanks": { "name": "symfony/polyfill", @@ -4917,13 +4941,10 @@ }, "autoload": { "psr-4": { - "Symfony\\Polyfill\\Php70\\": "" + "Symfony\\Polyfill\\Mbstring\\": "" }, "files": [ "bootstrap.php" - ], - "classmap": [ - "Resources/stubs" ] }, "notification-url": "https://packagist.org/downloads/", @@ -4940,10 +4961,11 @@ "homepage": "https://symfony.com/contributors" } ], - "description": "Symfony polyfill backporting some PHP 7.0+ features to lower PHP versions", + "description": "Symfony polyfill for the Mbstring extension", "homepage": "https://symfony.com", "keywords": [ "compatibility", + "mbstring", "polyfill", "portable", "shim" @@ -4962,29 +4984,29 @@ "type": "tidelift" } ], - "time": "2020-07-14T12:35:20+00:00" + "time": "2020-10-23T14:02:19+00:00" }, { "name": "symfony/polyfill-php72", - "version": "v1.18.1", + "version": "v1.20.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-php72.git", - "reference": "639447d008615574653fb3bc60d1986d7172eaae" + "reference": "cede45fcdfabdd6043b3592e83678e42ec69e930" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-php72/zipball/639447d008615574653fb3bc60d1986d7172eaae", - "reference": "639447d008615574653fb3bc60d1986d7172eaae", + "url": "https://api.github.com/repos/symfony/polyfill-php72/zipball/cede45fcdfabdd6043b3592e83678e42ec69e930", + "reference": "cede45fcdfabdd6043b3592e83678e42ec69e930", "shasum": "" }, "require": { - "php": ">=5.3.3" + "php": ">=7.1" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.18-dev" + "dev-main": "1.20-dev" }, "thanks": { "name": "symfony/polyfill", @@ -5035,29 +5057,29 @@ "type": "tidelift" } ], - "time": "2020-07-14T12:35:20+00:00" + "time": "2020-10-23T14:02:19+00:00" }, { "name": "symfony/polyfill-php73", - "version": "v1.18.1", + "version": "v1.20.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-php73.git", - "reference": "fffa1a52a023e782cdcc221d781fe1ec8f87fcca" + "reference": "8ff431c517be11c78c48a39a66d37431e26a6bed" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-php73/zipball/fffa1a52a023e782cdcc221d781fe1ec8f87fcca", - "reference": "fffa1a52a023e782cdcc221d781fe1ec8f87fcca", + "url": "https://api.github.com/repos/symfony/polyfill-php73/zipball/8ff431c517be11c78c48a39a66d37431e26a6bed", + "reference": "8ff431c517be11c78c48a39a66d37431e26a6bed", "shasum": "" }, "require": { - "php": ">=5.3.3" + "php": ">=7.1" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.18-dev" + "dev-main": "1.20-dev" }, "thanks": { "name": "symfony/polyfill", @@ -5111,29 +5133,29 @@ "type": "tidelift" } ], - "time": "2020-07-14T12:35:20+00:00" + "time": "2020-10-23T14:02:19+00:00" }, { "name": "symfony/polyfill-php80", - "version": "v1.18.1", + "version": "v1.20.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-php80.git", - "reference": "d87d5766cbf48d72388a9f6b85f280c8ad51f981" + "reference": "e70aa8b064c5b72d3df2abd5ab1e90464ad009de" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/d87d5766cbf48d72388a9f6b85f280c8ad51f981", - "reference": "d87d5766cbf48d72388a9f6b85f280c8ad51f981", + "url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/e70aa8b064c5b72d3df2abd5ab1e90464ad009de", + "reference": "e70aa8b064c5b72d3df2abd5ab1e90464ad009de", "shasum": "" }, "require": { - "php": ">=7.0.8" + "php": ">=7.1" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.18-dev" + "dev-main": "1.20-dev" }, "thanks": { "name": "symfony/polyfill", @@ -5191,11 +5213,11 @@ "type": "tidelift" } ], - "time": "2020-07-14T12:35:20+00:00" + "time": "2020-10-23T14:02:19+00:00" }, { "name": "symfony/process", - "version": "v5.1.6", + "version": "v5.1.7", "source": { "type": "git", "url": "https://github.com/symfony/process.git", @@ -5259,16 +5281,16 @@ }, { "name": "symfony/routing", - "version": "v5.1.6", + "version": "v5.1.7", "source": { "type": "git", "url": "https://github.com/symfony/routing.git", - "reference": "d36e06eb02a55522a8eed070c1cbc3dc3c389876" + "reference": "720348c2ae011f8c56964c0fc3e992840cb60ccf" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/routing/zipball/d36e06eb02a55522a8eed070c1cbc3dc3c389876", - "reference": "d36e06eb02a55522a8eed070c1cbc3dc3c389876", + "url": "https://api.github.com/repos/symfony/routing/zipball/720348c2ae011f8c56964c0fc3e992840cb60ccf", + "reference": "720348c2ae011f8c56964c0fc3e992840cb60ccf", "shasum": "" }, "require": { @@ -5347,7 +5369,7 @@ "type": "tidelift" } ], - "time": "2020-09-02T16:23:27+00:00" + "time": "2020-10-02T13:05:43+00:00" }, { "name": "symfony/service-contracts", @@ -5425,9 +5447,94 @@ ], "time": "2020-09-07T11:33:47+00:00" }, + { + "name": "symfony/string", + "version": "v5.1.7", + "source": { + "type": "git", + "url": "https://github.com/symfony/string.git", + "reference": "4a9afe9d07bac506f75bcee8ed3ce76da5a9343e" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/string/zipball/4a9afe9d07bac506f75bcee8ed3ce76da5a9343e", + "reference": "4a9afe9d07bac506f75bcee8ed3ce76da5a9343e", + "shasum": "" + }, + "require": { + "php": ">=7.2.5", + "symfony/polyfill-ctype": "~1.8", + "symfony/polyfill-intl-grapheme": "~1.0", + "symfony/polyfill-intl-normalizer": "~1.0", + "symfony/polyfill-mbstring": "~1.0", + "symfony/polyfill-php80": "~1.15" + }, + "require-dev": { + "symfony/error-handler": "^4.4|^5.0", + "symfony/http-client": "^4.4|^5.0", + "symfony/translation-contracts": "^1.1|^2", + "symfony/var-exporter": "^4.4|^5.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "5.1-dev" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Component\\String\\": "" + }, + "files": [ + "Resources/functions.php" + ], + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony String component", + "homepage": "https://symfony.com", + "keywords": [ + "grapheme", + "i18n", + "string", + "unicode", + "utf-8", + "utf8" + ], + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2020-09-15T12:23:47+00:00" + }, { "name": "symfony/translation", - "version": "v5.1.6", + "version": "v5.1.7", "source": { "type": "git", "url": "https://github.com/symfony/translation.git", @@ -5519,16 +5626,16 @@ }, { "name": "symfony/translation-contracts", - "version": "v2.2.0", + "version": "v2.3.0", "source": { "type": "git", "url": "https://github.com/symfony/translation-contracts.git", - "reference": "77ce1c3627c9f39643acd9af086631f842c50c4d" + "reference": "e2eaa60b558f26a4b0354e1bbb25636efaaad105" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/translation-contracts/zipball/77ce1c3627c9f39643acd9af086631f842c50c4d", - "reference": "77ce1c3627c9f39643acd9af086631f842c50c4d", + "url": "https://api.github.com/repos/symfony/translation-contracts/zipball/e2eaa60b558f26a4b0354e1bbb25636efaaad105", + "reference": "e2eaa60b558f26a4b0354e1bbb25636efaaad105", "shasum": "" }, "require": { @@ -5540,7 +5647,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "2.2-dev" + "dev-master": "2.3-dev" }, "thanks": { "name": "symfony/contracts", @@ -5590,11 +5697,11 @@ "type": "tidelift" } ], - "time": "2020-09-07T11:33:47+00:00" + "time": "2020-09-28T13:05:58+00:00" }, { "name": "symfony/var-dumper", - "version": "v5.1.6", + "version": "v5.1.7", "source": { "type": "git", "url": "https://github.com/symfony/var-dumper.git", @@ -5684,7 +5791,7 @@ }, { "name": "symfony/yaml", - "version": "v4.4.14", + "version": "v4.4.15", "source": { "type": "git", "url": "https://github.com/symfony/yaml.git", @@ -5819,24 +5926,23 @@ }, { "name": "tightenco/ziggy", - "version": "v0.8.1", + "version": "0.9.4", "source": { "type": "git", "url": "https://github.com/tighten/ziggy.git", - "reference": "4c4b29bc658153f0771b0a145173ce83a7b6b885" + "reference": "82ea6ec6cb6ab3545b0245310b2a424316fe48d8" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/tighten/ziggy/zipball/4c4b29bc658153f0771b0a145173ce83a7b6b885", - "reference": "4c4b29bc658153f0771b0a145173ce83a7b6b885", + "url": "https://api.github.com/repos/tighten/ziggy/zipball/82ea6ec6cb6ab3545b0245310b2a424316fe48d8", + "reference": "82ea6ec6cb6ab3545b0245310b2a424316fe48d8", "shasum": "" }, "require": { "laravel/framework": ">=5.4@dev" }, "require-dev": { - "mikey179/vfsstream": "^1.6", - "orchestra/testbench": "~3.6" + "orchestra/testbench": "^5.0" }, "type": "library", "extra": { @@ -5861,12 +5967,19 @@ "email": "daniel@tighten.co" }, { - "name": "Matt Stauffer", - "email": "matt@tighten.co" + "name": "Jake Bathman", + "email": "jake@tighten.co" } ], "description": "Generates a Blade directive exporting all of your named Laravel routes. Also provides a nice route() helper function in JavaScript.", - "time": "2019-10-18T22:42:36+00:00" + "homepage": "https://github.com/tightenco/ziggy", + "keywords": [ + "Ziggy", + "javascript", + "laravel", + "routes" + ], + "time": "2020-06-05T14:42:41+00:00" }, { "name": "tijsverkoyen/css-to-inline-styles", @@ -5919,37 +6032,39 @@ }, { "name": "vlucas/phpdotenv", - "version": "v4.1.8", + "version": "v5.2.0", "source": { "type": "git", "url": "https://github.com/vlucas/phpdotenv.git", - "reference": "572af79d913627a9d70374d27a6f5d689a35de32" + "reference": "fba64139db67123c7a57072e5f8d3db10d160b66" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/vlucas/phpdotenv/zipball/572af79d913627a9d70374d27a6f5d689a35de32", - "reference": "572af79d913627a9d70374d27a6f5d689a35de32", + "url": "https://api.github.com/repos/vlucas/phpdotenv/zipball/fba64139db67123c7a57072e5f8d3db10d160b66", + "reference": "fba64139db67123c7a57072e5f8d3db10d160b66", "shasum": "" }, "require": { - "php": "^5.5.9 || ^7.0 || ^8.0", - "phpoption/phpoption": "^1.7.3", - "symfony/polyfill-ctype": "^1.17" + "ext-pcre": "*", + "graham-campbell/result-type": "^1.0.1", + "php": "^7.1.3 || ^8.0", + "phpoption/phpoption": "^1.7.4", + "symfony/polyfill-ctype": "^1.17", + "symfony/polyfill-mbstring": "^1.17", + "symfony/polyfill-php80": "^1.17" }, "require-dev": { "bamarni/composer-bin-plugin": "^1.4.1", "ext-filter": "*", - "ext-pcre": "*", - "phpunit/phpunit": "^4.8.35 || ^5.7.27 || ^6.5.6 || ^7.0" + "phpunit/phpunit": "^7.5.20 || ^8.5.2 || ^9.0" }, "suggest": { - "ext-filter": "Required to use the boolean validator.", - "ext-pcre": "Required to use most of the library." + "ext-filter": "Required to use the boolean validator." }, "type": "library", "extra": { "branch-alias": { - "dev-master": "4.1-dev" + "dev-master": "5.2-dev" } }, "autoload": { @@ -5989,7 +6104,7 @@ "type": "tidelift" } ], - "time": "2020-07-14T19:22:52+00:00" + "time": "2020-09-14T15:57:31+00:00" }, { "name": "voku/portable-ascii", @@ -6063,20 +6178,20 @@ }, { "name": "wpb/string-blade-compiler", - "version": "dev-laravel-7-and-autoload-blade-custom-directives", + "version": "6.0.2", "source": { "type": "git", - "url": "https://github.com/librenms/StringBladeCompiler.git", - "reference": "f4666b72ce4a48093cc6cf1c989b6359b3c4e464" + "url": "https://github.com/TerrePorter/StringBladeCompiler.git", + "reference": "743707837189ccfe06d5269c7009af0260a5070e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/librenms/StringBladeCompiler/zipball/f4666b72ce4a48093cc6cf1c989b6359b3c4e464", - "reference": "f4666b72ce4a48093cc6cf1c989b6359b3c4e464", + "url": "https://api.github.com/repos/TerrePorter/StringBladeCompiler/zipball/743707837189ccfe06d5269c7009af0260a5070e", + "reference": "743707837189ccfe06d5269c7009af0260a5070e", "shasum": "" }, "require": { - "laravel/framework": "^6.0|^7.0", + "laravel/framework": "^6.0|^7.0|^8.0", "php": "^7.2" }, "type": "library", @@ -6095,6 +6210,7 @@ "Wpb\\String_Blade_Compiler\\": "src/" } }, + "notification-url": "https://packagist.org/downloads/", "license": [ "MIT" ], @@ -6110,10 +6226,7 @@ "compiler", "laravel" ], - "support": { - "source": "https://github.com/librenms/StringBladeCompiler/tree/laravel-7-and-autoload-blade-custom-directives" - }, - "time": "2020-07-10T19:15:25+00:00" + "time": "2020-09-16T16:14:42+00:00" } ], "packages-dev": [ @@ -6395,16 +6508,16 @@ }, { "name": "composer/composer", - "version": "1.10.13", + "version": "1.10.16", "source": { "type": "git", "url": "https://github.com/composer/composer.git", - "reference": "47c841ba3b2d3fc0b4b13282cf029ea18b66d78b" + "reference": "217f0272673c72087862c40cf91ac07eb438d778" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/composer/composer/zipball/47c841ba3b2d3fc0b4b13282cf029ea18b66d78b", - "reference": "47c841ba3b2d3fc0b4b13282cf029ea18b66d78b", + "url": "https://api.github.com/repos/composer/composer/zipball/217f0272673c72087862c40cf91ac07eb438d778", + "reference": "217f0272673c72087862c40cf91ac07eb438d778", "shasum": "" }, "require": { @@ -6485,7 +6598,7 @@ "type": "tidelift" } ], - "time": "2020-09-09T09:46:34+00:00" + "time": "2020-10-24T07:55:59+00:00" }, { "name": "composer/semver", @@ -6638,16 +6751,16 @@ }, { "name": "composer/xdebug-handler", - "version": "1.4.3", + "version": "1.4.4", "source": { "type": "git", "url": "https://github.com/composer/xdebug-handler.git", - "reference": "ebd27a9866ae8254e873866f795491f02418c5a5" + "reference": "6e076a124f7ee146f2487554a94b6a19a74887ba" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/composer/xdebug-handler/zipball/ebd27a9866ae8254e873866f795491f02418c5a5", - "reference": "ebd27a9866ae8254e873866f795491f02418c5a5", + "url": "https://api.github.com/repos/composer/xdebug-handler/zipball/6e076a124f7ee146f2487554a94b6a19a74887ba", + "reference": "6e076a124f7ee146f2487554a94b6a19a74887ba", "shasum": "" }, "require": { @@ -6692,20 +6805,20 @@ "type": "tidelift" } ], - "time": "2020-08-19T10:27:58+00:00" + "time": "2020-10-24T12:39:10+00:00" }, { "name": "doctrine/annotations", - "version": "1.10.4", + "version": "1.11.0", "source": { "type": "git", "url": "https://github.com/doctrine/annotations.git", - "reference": "bfe91e31984e2ba76df1c1339681770401ec262f" + "reference": "88fb6fb1dae011de24dd6b632811c1ff5c2928f5" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/doctrine/annotations/zipball/bfe91e31984e2ba76df1c1339681770401ec262f", - "reference": "bfe91e31984e2ba76df1c1339681770401ec262f", + "url": "https://api.github.com/repos/doctrine/annotations/zipball/88fb6fb1dae011de24dd6b632811c1ff5c2928f5", + "reference": "88fb6fb1dae011de24dd6b632811c1ff5c2928f5", "shasum": "" }, "require": { @@ -6715,13 +6828,14 @@ }, "require-dev": { "doctrine/cache": "1.*", + "doctrine/coding-standard": "^6.0 || ^8.1", "phpstan/phpstan": "^0.12.20", "phpunit/phpunit": "^7.5 || ^9.1.5" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.9.x-dev" + "dev-master": "1.11.x-dev" } }, "autoload": { @@ -6756,13 +6870,13 @@ } ], "description": "Docblock Annotations Parser", - "homepage": "http://www.doctrine-project.org", + "homepage": "https://www.doctrine-project.org/projects/annotations.html", "keywords": [ "annotations", "docblock", "parser" ], - "time": "2020-08-10T19:35:50+00:00" + "time": "2020-10-17T22:05:33+00:00" }, { "name": "doctrine/instantiator", @@ -6836,22 +6950,22 @@ }, { "name": "facade/flare-client-php", - "version": "1.3.6", + "version": "1.3.7", "source": { "type": "git", "url": "https://github.com/facade/flare-client-php.git", - "reference": "451fadf38e9f635e7f8e1f5b3cf5c9eb82f11799" + "reference": "fd688d3c06658f2b3b5f7bb19f051ee4ddf02492" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/facade/flare-client-php/zipball/451fadf38e9f635e7f8e1f5b3cf5c9eb82f11799", - "reference": "451fadf38e9f635e7f8e1f5b3cf5c9eb82f11799", + "url": "https://api.github.com/repos/facade/flare-client-php/zipball/fd688d3c06658f2b3b5f7bb19f051ee4ddf02492", + "reference": "fd688d3c06658f2b3b5f7bb19f051ee4ddf02492", "shasum": "" }, "require": { "facade/ignition-contracts": "~1.0", "illuminate/pipeline": "^5.5|^6.0|^7.0|^8.0", - "php": "^7.1", + "php": "^7.1|^8.0", "symfony/http-foundation": "^3.3|^4.1|^5.0", "symfony/mime": "^3.4|^4.0|^5.1", "symfony/var-dumper": "^3.4|^4.0|^5.0" @@ -6893,20 +7007,20 @@ "type": "github" } ], - "time": "2020-09-18T06:35:11+00:00" + "time": "2020-10-21T16:02:39+00:00" }, { "name": "facade/ignition", - "version": "2.3.7", + "version": "2.4.1", "source": { "type": "git", "url": "https://github.com/facade/ignition.git", - "reference": "b364db8860a63c1fb58b72b9718863c21df08762" + "reference": "9fc6c3d3de5271a1b94cff19dce2c9295abf0ffa" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/facade/ignition/zipball/b364db8860a63c1fb58b72b9718863c21df08762", - "reference": "b364db8860a63c1fb58b72b9718863c21df08762", + "url": "https://api.github.com/repos/facade/ignition/zipball/9fc6c3d3de5271a1b94cff19dce2c9295abf0ffa", + "reference": "9fc6c3d3de5271a1b94cff19dce2c9295abf0ffa", "shasum": "" }, "require": { @@ -6965,29 +7079,29 @@ "laravel", "page" ], - "time": "2020-09-06T19:26:27+00:00" + "time": "2020-10-14T08:59:59+00:00" }, { "name": "facade/ignition-contracts", - "version": "1.0.1", + "version": "1.0.2", "source": { "type": "git", "url": "https://github.com/facade/ignition-contracts.git", - "reference": "aeab1ce8b68b188a43e81758e750151ad7da796b" + "reference": "3c921a1cdba35b68a7f0ccffc6dffc1995b18267" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/facade/ignition-contracts/zipball/aeab1ce8b68b188a43e81758e750151ad7da796b", - "reference": "aeab1ce8b68b188a43e81758e750151ad7da796b", + "url": "https://api.github.com/repos/facade/ignition-contracts/zipball/3c921a1cdba35b68a7f0ccffc6dffc1995b18267", + "reference": "3c921a1cdba35b68a7f0ccffc6dffc1995b18267", "shasum": "" }, "require": { - "php": "^7.1" + "php": "^7.3|^8.0" }, "require-dev": { - "friendsofphp/php-cs-fixer": "^2.14", - "phpunit/phpunit": "^7.5|^8.0", - "vimeo/psalm": "^3.12" + "friendsofphp/php-cs-fixer": "^v2.15.8", + "phpunit/phpunit": "^9.3.11", + "vimeo/psalm": "^3.17.1" }, "type": "library", "autoload": { @@ -7014,29 +7128,29 @@ "flare", "ignition" ], - "time": "2020-07-14T10:10:28+00:00" + "time": "2020-10-16T08:27:54+00:00" }, { "name": "filp/whoops", - "version": "2.7.3", + "version": "2.9.0", "source": { "type": "git", "url": "https://github.com/filp/whoops.git", - "reference": "5d5fe9bb3d656b514d455645b3addc5f7ba7714d" + "reference": "2ec31f3adc54c71a59c5e3c2143d7a0e2f8899f8" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/filp/whoops/zipball/5d5fe9bb3d656b514d455645b3addc5f7ba7714d", - "reference": "5d5fe9bb3d656b514d455645b3addc5f7ba7714d", + "url": "https://api.github.com/repos/filp/whoops/zipball/2ec31f3adc54c71a59c5e3c2143d7a0e2f8899f8", + "reference": "2ec31f3adc54c71a59c5e3c2143d7a0e2f8899f8", "shasum": "" }, "require": { - "php": "^5.5.9 || ^7.0", + "php": "^5.5.9 || ^7.0 || ^8.0", "psr/log": "^1.0.1" }, "require-dev": { "mockery/mockery": "^0.9 || ^1.0", - "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.0", + "phpunit/phpunit": "^4.8.36 || ^5.7.27 || ^6.5.14 || ^7.5.20 || ^8.5.8 || ^9.3.3", "symfony/var-dumper": "^2.6 || ^3.0 || ^4.0 || ^5.0" }, "suggest": { @@ -7046,7 +7160,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "2.6-dev" + "dev-master": "2.7-dev" } }, "autoload": { @@ -7075,7 +7189,7 @@ "throwable", "whoops" ], - "time": "2020-06-14T09:00:00+00:00" + "time": "2020-10-20T12:00:00+00:00" }, { "name": "friendsofphp/php-cs-fixer", @@ -7339,34 +7453,34 @@ }, { "name": "laravel/dusk", - "version": "v5.11.0", + "version": "v6.8.0", "source": { "type": "git", "url": "https://github.com/laravel/dusk.git", - "reference": "e07cc46a1e39767739e8197189780b4c2639806d" + "reference": "3dd0f1fc383a7fb93e4e0f02d83f9507d9a80a15" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/laravel/dusk/zipball/e07cc46a1e39767739e8197189780b4c2639806d", - "reference": "e07cc46a1e39767739e8197189780b4c2639806d", + "url": "https://api.github.com/repos/laravel/dusk/zipball/3dd0f1fc383a7fb93e4e0f02d83f9507d9a80a15", + "reference": "3dd0f1fc383a7fb93e4e0f02d83f9507d9a80a15", "shasum": "" }, "require": { "ext-json": "*", "ext-zip": "*", - "illuminate/console": "~5.7.0|~5.8.0|^6.0|^7.0", - "illuminate/support": "~5.7.0|~5.8.0|^6.0|^7.0", - "nesbot/carbon": "^1.20|^2.0", - "php": ">=7.1.0", + "illuminate/console": "^6.0|^7.0|^8.0", + "illuminate/support": "^6.0|^7.0|^8.0", + "nesbot/carbon": "^2.0", + "php": "^7.2", "php-webdriver/webdriver": "^1.8.1", - "symfony/console": "^4.0|^5.0", - "symfony/finder": "^4.0|^5.0", - "symfony/process": "^4.0|^5.0", - "vlucas/phpdotenv": "^2.2|^3.0|^4.0" + "symfony/console": "^4.3|^5.0", + "symfony/finder": "^4.3|^5.0", + "symfony/process": "^4.3|^5.0", + "vlucas/phpdotenv": "^3.0|^4.0|^5.0" }, "require-dev": { "mockery/mockery": "^1.0", - "phpunit/phpunit": "^7.5|^8.0" + "phpunit/phpunit": "^7.5.15|^8.4|^9.0" }, "suggest": { "ext-pcntl": "Used to gracefully terminate Dusk when tests are running." @@ -7374,7 +7488,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "5.0-dev" + "dev-master": "6.x-dev" }, "laravel": { "providers": [ @@ -7403,7 +7517,7 @@ "testing", "webdriver" ], - "time": "2020-03-24T16:21:49+00:00" + "time": "2020-10-06T15:32:20+00:00" }, { "name": "maximebf/debugbar", @@ -7468,30 +7582,33 @@ }, { "name": "mockery/mockery", - "version": "1.3.3", + "version": "1.4.2", "source": { "type": "git", "url": "https://github.com/mockery/mockery.git", - "reference": "60fa2f67f6e4d3634bb4a45ff3171fa52215800d" + "reference": "20cab678faed06fac225193be281ea0fddb43b93" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/mockery/mockery/zipball/60fa2f67f6e4d3634bb4a45ff3171fa52215800d", - "reference": "60fa2f67f6e4d3634bb4a45ff3171fa52215800d", + "url": "https://api.github.com/repos/mockery/mockery/zipball/20cab678faed06fac225193be281ea0fddb43b93", + "reference": "20cab678faed06fac225193be281ea0fddb43b93", "shasum": "" }, "require": { "hamcrest/hamcrest-php": "^2.0.1", "lib-pcre": ">=7.0", - "php": ">=5.6.0" + "php": "^7.3 || ^8.0" + }, + "conflict": { + "phpunit/phpunit": "<8.0" }, "require-dev": { - "phpunit/phpunit": "^5.7.10|^6.5|^7.5|^8.5|^9.3" + "phpunit/phpunit": "^8.5 || ^9.3" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.3.x-dev" + "dev-master": "1.4.x-dev" } }, "autoload": { @@ -7529,7 +7646,7 @@ "test double", "testing" ], - "time": "2020-08-11T18:10:21+00:00" + "time": "2020-08-11T18:10:13+00:00" }, { "name": "myclabs/deep-copy", @@ -7587,35 +7704,35 @@ }, { "name": "nunomaduro/collision", - "version": "v4.2.0", + "version": "v5.0.2", "source": { "type": "git", "url": "https://github.com/nunomaduro/collision.git", - "reference": "d50490417eded97be300a92cd7df7badc37a9018" + "reference": "4a343299054e9368d0db4a982a780cc4ffa12707" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/nunomaduro/collision/zipball/d50490417eded97be300a92cd7df7badc37a9018", - "reference": "d50490417eded97be300a92cd7df7badc37a9018", + "url": "https://api.github.com/repos/nunomaduro/collision/zipball/4a343299054e9368d0db4a982a780cc4ffa12707", + "reference": "4a343299054e9368d0db4a982a780cc4ffa12707", "shasum": "" }, "require": { "facade/ignition-contracts": "^1.0", - "filp/whoops": "^2.4", - "php": "^7.2.5", + "filp/whoops": "^2.7.2", + "php": "^7.3", "symfony/console": "^5.0" }, "require-dev": { - "facade/ignition": "^2.0", - "fideloper/proxy": "^4.2", - "friendsofphp/php-cs-fixer": "^2.16", - "fruitcake/laravel-cors": "^1.0", - "laravel/framework": "^7.0", - "laravel/tinker": "^2.0", - "nunomaduro/larastan": "^0.5", - "orchestra/testbench": "^5.0", - "phpstan/phpstan": "^0.12.3", - "phpunit/phpunit": "^8.5.1 || ^9.0" + "fideloper/proxy": "^4.4.0", + "friendsofphp/php-cs-fixer": "^2.16.4", + "fruitcake/laravel-cors": "^2.0.1", + "laravel/framework": "^8.0", + "laravel/tinker": "^2.4.1", + "nunomaduro/larastan": "^0.6.2", + "nunomaduro/mock-final-classes": "^1.0", + "orchestra/testbench": "^6.0", + "phpstan/phpstan": "^0.12.36", + "phpunit/phpunit": "^9.3.3" }, "type": "library", "extra": { @@ -7667,32 +7784,33 @@ "type": "patreon" } ], - "time": "2020-04-04T19:56:08+00:00" + "time": "2020-08-27T18:58:22+00:00" }, { "name": "phar-io/manifest", - "version": "1.0.3", + "version": "2.0.1", "source": { "type": "git", "url": "https://github.com/phar-io/manifest.git", - "reference": "7761fcacf03b4d4f16e7ccb606d4879ca431fcf4" + "reference": "85265efd3af7ba3ca4b2a2c34dbfc5788dd29133" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phar-io/manifest/zipball/7761fcacf03b4d4f16e7ccb606d4879ca431fcf4", - "reference": "7761fcacf03b4d4f16e7ccb606d4879ca431fcf4", + "url": "https://api.github.com/repos/phar-io/manifest/zipball/85265efd3af7ba3ca4b2a2c34dbfc5788dd29133", + "reference": "85265efd3af7ba3ca4b2a2c34dbfc5788dd29133", "shasum": "" }, "require": { "ext-dom": "*", "ext-phar": "*", - "phar-io/version": "^2.0", - "php": "^5.6 || ^7.0" + "ext-xmlwriter": "*", + "phar-io/version": "^3.0.1", + "php": "^7.2 || ^8.0" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.0.x-dev" + "dev-master": "2.0.x-dev" } }, "autoload": { @@ -7722,24 +7840,24 @@ } ], "description": "Component for reading phar.io manifest information from a PHP Archive (PHAR)", - "time": "2018-07-08T19:23:20+00:00" + "time": "2020-06-27T14:33:11+00:00" }, { "name": "phar-io/version", - "version": "2.0.1", + "version": "3.0.2", "source": { "type": "git", "url": "https://github.com/phar-io/version.git", - "reference": "45a2ec53a73c70ce41d55cedef9063630abaf1b6" + "reference": "c6bb6825def89e0a32220f88337f8ceaf1975fa0" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phar-io/version/zipball/45a2ec53a73c70ce41d55cedef9063630abaf1b6", - "reference": "45a2ec53a73c70ce41d55cedef9063630abaf1b6", + "url": "https://api.github.com/repos/phar-io/version/zipball/c6bb6825def89e0a32220f88337f8ceaf1975fa0", + "reference": "c6bb6825def89e0a32220f88337f8ceaf1975fa0", "shasum": "" }, "require": { - "php": "^5.6 || ^7.0" + "php": "^7.2 || ^8.0" }, "type": "library", "autoload": { @@ -7769,27 +7887,27 @@ } ], "description": "Library for handling version information and constraints", - "time": "2018-07-08T19:19:57+00:00" + "time": "2020-06-27T14:39:04+00:00" }, { "name": "php-cs-fixer/diff", - "version": "v1.3.0", + "version": "v1.3.1", "source": { "type": "git", "url": "https://github.com/PHP-CS-Fixer/diff.git", - "reference": "78bb099e9c16361126c86ce82ec4405ebab8e756" + "reference": "dbd31aeb251639ac0b9e7e29405c1441907f5759" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/PHP-CS-Fixer/diff/zipball/78bb099e9c16361126c86ce82ec4405ebab8e756", - "reference": "78bb099e9c16361126c86ce82ec4405ebab8e756", + "url": "https://api.github.com/repos/PHP-CS-Fixer/diff/zipball/dbd31aeb251639ac0b9e7e29405c1441907f5759", + "reference": "dbd31aeb251639ac0b9e7e29405c1441907f5759", "shasum": "" }, "require": { - "php": "^5.6 || ^7.0" + "php": "^5.6 || ^7.0 || ^8.0" }, "require-dev": { - "phpunit/phpunit": "^5.7.23 || ^6.4.3", + "phpunit/phpunit": "^5.7.23 || ^6.4.3 || ^7.0", "symfony/process": "^3.3" }, "type": "library", @@ -7803,14 +7921,14 @@ "BSD-3-Clause" ], "authors": [ - { - "name": "Kore Nordmann", - "email": "mail@kore-nordmann.de" - }, { "name": "Sebastian Bergmann", "email": "sebastian@phpunit.de" }, + { + "name": "Kore Nordmann", + "email": "mail@kore-nordmann.de" + }, { "name": "SpacePossum" } @@ -7820,7 +7938,7 @@ "keywords": [ "diff" ], - "time": "2018-02-15T16:58:55+00:00" + "time": "2020-10-14T08:39:05+00:00" }, { "name": "php-parallel-lint/php-parallel-lint", @@ -7877,16 +7995,16 @@ }, { "name": "php-webdriver/webdriver", - "version": "1.8.2", + "version": "1.8.3", "source": { "type": "git", "url": "https://github.com/php-webdriver/php-webdriver.git", - "reference": "3308a70be084d6d7fd1ee5787b4c2e6eb4b70aab" + "reference": "fb0fc4cb01c70a7790a5fcc91d461b88c83174a2" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/php-webdriver/php-webdriver/zipball/3308a70be084d6d7fd1ee5787b4c2e6eb4b70aab", - "reference": "3308a70be084d6d7fd1ee5787b4c2e6eb4b70aab", + "url": "https://api.github.com/repos/php-webdriver/php-webdriver/zipball/fb0fc4cb01c70a7790a5fcc91d461b88c83174a2", + "reference": "fb0fc4cb01c70a7790a5fcc91d461b88c83174a2", "shasum": "" }, "require": { @@ -7897,11 +8015,15 @@ "symfony/polyfill-mbstring": "^1.12", "symfony/process": "^2.8 || ^3.1 || ^4.0 || ^5.0" }, + "replace": { + "facebook/webdriver": "*" + }, "require-dev": { "friendsofphp/php-cs-fixer": "^2.0", - "jakub-onderka/php-parallel-lint": "^1.0", + "ondram/ci-detector": "^2.1 || ^3.5", "php-coveralls/php-coveralls": "^2.0", "php-mock/php-mock-phpunit": "^1.1", + "php-parallel-lint/php-parallel-lint": "^1.2", "phpunit/phpunit": "^5.7", "sebastian/environment": "^1.3.4 || ^2.0 || ^3.0", "sminnee/phpunit-mock-objects": "^3.4", @@ -7914,7 +8036,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "1.8.x-dev" + "dev-main": "1.8.x-dev" } }, "autoload": { @@ -7938,7 +8060,7 @@ "selenium", "webdriver" ], - "time": "2020-03-04T14:40:12+00:00" + "time": "2020-10-06T19:10:04+00:00" }, { "name": "phpdocumentor/reflection-common", @@ -8151,40 +8273,44 @@ }, { "name": "phpunit/php-code-coverage", - "version": "7.0.10", + "version": "9.2.1", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/php-code-coverage.git", - "reference": "f1884187926fbb755a9aaf0b3836ad3165b478bf" + "reference": "ed363c3ce393560a1c300dce0298bbf0f0528b13" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/f1884187926fbb755a9aaf0b3836ad3165b478bf", - "reference": "f1884187926fbb755a9aaf0b3836ad3165b478bf", + "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/ed363c3ce393560a1c300dce0298bbf0f0528b13", + "reference": "ed363c3ce393560a1c300dce0298bbf0f0528b13", "shasum": "" }, "require": { "ext-dom": "*", + "ext-libxml": "*", "ext-xmlwriter": "*", - "php": "^7.2", - "phpunit/php-file-iterator": "^2.0.2", - "phpunit/php-text-template": "^1.2.1", - "phpunit/php-token-stream": "^3.1.1", - "sebastian/code-unit-reverse-lookup": "^1.0.1", - "sebastian/environment": "^4.2.2", - "sebastian/version": "^2.0.1", - "theseer/tokenizer": "^1.1.3" + "nikic/php-parser": "^4.8", + "php": ">=7.3", + "phpunit/php-file-iterator": "^3.0.3", + "phpunit/php-text-template": "^2.0.2", + "sebastian/code-unit-reverse-lookup": "^2.0.2", + "sebastian/complexity": "^2.0", + "sebastian/environment": "^5.1.2", + "sebastian/lines-of-code": "^1.0", + "sebastian/version": "^3.0.1", + "theseer/tokenizer": "^1.2.0" }, "require-dev": { - "phpunit/phpunit": "^8.2.2" + "phpunit/phpunit": "^9.3" }, "suggest": { - "ext-xdebug": "^2.7.2" + "ext-pcov": "*", + "ext-xdebug": "*" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "7.0-dev" + "dev-master": "9.2-dev" } }, "autoload": { @@ -8210,32 +8336,38 @@ "testing", "xunit" ], - "time": "2019-11-20T13:55:58+00:00" + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2020-10-26T15:46:21+00:00" }, { "name": "phpunit/php-file-iterator", - "version": "2.0.2", + "version": "3.0.5", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/php-file-iterator.git", - "reference": "050bedf145a257b1ff02746c31894800e5122946" + "reference": "aa4be8575f26070b100fccb67faabb28f21f66f8" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/050bedf145a257b1ff02746c31894800e5122946", - "reference": "050bedf145a257b1ff02746c31894800e5122946", + "url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/aa4be8575f26070b100fccb67faabb28f21f66f8", + "reference": "aa4be8575f26070b100fccb67faabb28f21f66f8", "shasum": "" }, "require": { - "php": "^7.1" + "php": ">=7.3" }, "require-dev": { - "phpunit/phpunit": "^7.1" + "phpunit/phpunit": "^9.3" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "2.0.x-dev" + "dev-master": "3.0-dev" } }, "autoload": { @@ -8260,26 +8392,44 @@ "filesystem", "iterator" ], - "time": "2018-09-13T20:33:42+00:00" + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2020-09-28T05:57:25+00:00" }, { - "name": "phpunit/php-text-template", - "version": "1.2.1", + "name": "phpunit/php-invoker", + "version": "3.1.1", "source": { "type": "git", - "url": "https://github.com/sebastianbergmann/php-text-template.git", - "reference": "31f8b717e51d9a2afca6c9f046f5d69fc27c8686" + "url": "https://github.com/sebastianbergmann/php-invoker.git", + "reference": "5a10147d0aaf65b58940a0b72f71c9ac0423cc67" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-text-template/zipball/31f8b717e51d9a2afca6c9f046f5d69fc27c8686", - "reference": "31f8b717e51d9a2afca6c9f046f5d69fc27c8686", + "url": "https://api.github.com/repos/sebastianbergmann/php-invoker/zipball/5a10147d0aaf65b58940a0b72f71c9ac0423cc67", + "reference": "5a10147d0aaf65b58940a0b72f71c9ac0423cc67", "shasum": "" }, "require": { - "php": ">=5.3.3" + "php": ">=7.3" + }, + "require-dev": { + "ext-pcntl": "*", + "phpunit/phpunit": "^9.3" + }, + "suggest": { + "ext-pcntl": "*" }, "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.1-dev" + } + }, "autoload": { "classmap": [ "src/" @@ -8296,37 +8446,43 @@ "role": "lead" } ], - "description": "Simple template engine.", - "homepage": "https://github.com/sebastianbergmann/php-text-template/", + "description": "Invoke callables with a timeout", + "homepage": "https://github.com/sebastianbergmann/php-invoker/", "keywords": [ - "template" + "process" + ], + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } ], - "time": "2015-06-21T13:50:34+00:00" + "time": "2020-09-28T05:58:55+00:00" }, { - "name": "phpunit/php-timer", - "version": "2.1.2", + "name": "phpunit/php-text-template", + "version": "2.0.4", "source": { "type": "git", - "url": "https://github.com/sebastianbergmann/php-timer.git", - "reference": "1038454804406b0b5f5f520358e78c1c2f71501e" + "url": "https://github.com/sebastianbergmann/php-text-template.git", + "reference": "5da5f67fc95621df9ff4c4e5a84d6a8a2acf7c28" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-timer/zipball/1038454804406b0b5f5f520358e78c1c2f71501e", - "reference": "1038454804406b0b5f5f520358e78c1c2f71501e", + "url": "https://api.github.com/repos/sebastianbergmann/php-text-template/zipball/5da5f67fc95621df9ff4c4e5a84d6a8a2acf7c28", + "reference": "5da5f67fc95621df9ff4c4e5a84d6a8a2acf7c28", "shasum": "" }, "require": { - "php": "^7.1" + "php": ">=7.3" }, "require-dev": { - "phpunit/phpunit": "^7.0" + "phpunit/phpunit": "^9.3" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "2.1-dev" + "dev-master": "2.0-dev" } }, "autoload": { @@ -8345,38 +8501,43 @@ "role": "lead" } ], - "description": "Utility class for timing", - "homepage": "https://github.com/sebastianbergmann/php-timer/", + "description": "Simple template engine.", + "homepage": "https://github.com/sebastianbergmann/php-text-template/", "keywords": [ - "timer" + "template" + ], + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } ], - "time": "2019-06-07T04:22:29+00:00" + "time": "2020-10-26T05:33:50+00:00" }, { - "name": "phpunit/php-token-stream", - "version": "3.1.1", + "name": "phpunit/php-timer", + "version": "5.0.3", "source": { "type": "git", - "url": "https://github.com/sebastianbergmann/php-token-stream.git", - "reference": "995192df77f63a59e47f025390d2d1fdf8f425ff" + "url": "https://github.com/sebastianbergmann/php-timer.git", + "reference": "5a63ce20ed1b5bf577850e2c4e87f4aa902afbd2" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-token-stream/zipball/995192df77f63a59e47f025390d2d1fdf8f425ff", - "reference": "995192df77f63a59e47f025390d2d1fdf8f425ff", + "url": "https://api.github.com/repos/sebastianbergmann/php-timer/zipball/5a63ce20ed1b5bf577850e2c4e87f4aa902afbd2", + "reference": "5a63ce20ed1b5bf577850e2c4e87f4aa902afbd2", "shasum": "" }, "require": { - "ext-tokenizer": "*", - "php": "^7.1" + "php": ">=7.3" }, "require-dev": { - "phpunit/phpunit": "^7.0" + "phpunit/phpunit": "^9.3" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "3.1-dev" + "dev-master": "5.0-dev" } }, "autoload": { @@ -8391,65 +8552,74 @@ "authors": [ { "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de" + "email": "sebastian@phpunit.de", + "role": "lead" } ], - "description": "Wrapper around PHP's tokenizer extension.", - "homepage": "https://github.com/sebastianbergmann/php-token-stream/", + "description": "Utility class for timing", + "homepage": "https://github.com/sebastianbergmann/php-timer/", "keywords": [ - "tokenizer" + "timer" + ], + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } ], - "abandoned": true, - "time": "2019-09-17T06:23:10+00:00" + "time": "2020-10-26T13:16:10+00:00" }, { "name": "phpunit/phpunit", - "version": "8.5.8", + "version": "9.4.2", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/phpunit.git", - "reference": "34c18baa6a44f1d1fbf0338907139e9dce95b997" + "reference": "3866b2eeeed21b1b099c4bc0b7a1690ac6fd5baa" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/34c18baa6a44f1d1fbf0338907139e9dce95b997", - "reference": "34c18baa6a44f1d1fbf0338907139e9dce95b997", + "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/3866b2eeeed21b1b099c4bc0b7a1690ac6fd5baa", + "reference": "3866b2eeeed21b1b099c4bc0b7a1690ac6fd5baa", "shasum": "" }, "require": { - "doctrine/instantiator": "^1.2.0", + "doctrine/instantiator": "^1.3.1", "ext-dom": "*", "ext-json": "*", "ext-libxml": "*", "ext-mbstring": "*", "ext-xml": "*", "ext-xmlwriter": "*", - "myclabs/deep-copy": "^1.9.1", - "phar-io/manifest": "^1.0.3", - "phar-io/version": "^2.0.1", - "php": "^7.2", - "phpspec/prophecy": "^1.8.1", - "phpunit/php-code-coverage": "^7.0.7", - "phpunit/php-file-iterator": "^2.0.2", - "phpunit/php-text-template": "^1.2.1", - "phpunit/php-timer": "^2.1.2", - "sebastian/comparator": "^3.0.2", - "sebastian/diff": "^3.0.2", - "sebastian/environment": "^4.2.2", - "sebastian/exporter": "^3.1.1", - "sebastian/global-state": "^3.0.0", - "sebastian/object-enumerator": "^3.0.3", - "sebastian/resource-operations": "^2.0.1", - "sebastian/type": "^1.1.3", - "sebastian/version": "^2.0.1" + "myclabs/deep-copy": "^1.10.1", + "phar-io/manifest": "^2.0.1", + "phar-io/version": "^3.0.2", + "php": ">=7.3", + "phpspec/prophecy": "^1.12.1", + "phpunit/php-code-coverage": "^9.2", + "phpunit/php-file-iterator": "^3.0.5", + "phpunit/php-invoker": "^3.1.1", + "phpunit/php-text-template": "^2.0.3", + "phpunit/php-timer": "^5.0.2", + "sebastian/cli-parser": "^1.0.1", + "sebastian/code-unit": "^1.0.6", + "sebastian/comparator": "^4.0.5", + "sebastian/diff": "^4.0.3", + "sebastian/environment": "^5.1.3", + "sebastian/exporter": "^4.0.3", + "sebastian/global-state": "^5.0.1", + "sebastian/object-enumerator": "^4.0.3", + "sebastian/resource-operations": "^3.0.3", + "sebastian/type": "^2.3", + "sebastian/version": "^3.0.2" }, "require-dev": { - "ext-pdo": "*" + "ext-pdo": "*", + "phpspec/prophecy-phpunit": "^2.0.1" }, "suggest": { "ext-soap": "*", - "ext-xdebug": "*", - "phpunit/php-invoker": "^2.0.0" + "ext-xdebug": "*" }, "bin": [ "phpunit" @@ -8457,12 +8627,15 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "8.5-dev" + "dev-master": "9.4-dev" } }, "autoload": { "classmap": [ "src/" + ], + "files": [ + "src/Framework/Assert/Functions.php" ] }, "notification-url": "https://packagist.org/downloads/", @@ -8493,20 +8666,20 @@ "type": "github" } ], - "time": "2020-06-22T07:06:58+00:00" + "time": "2020-10-19T09:23:29+00:00" }, { "name": "scrivo/highlight.php", - "version": "v9.18.1.2", + "version": "v9.18.1.3", "source": { "type": "git", "url": "https://github.com/scrivo/highlight.php.git", - "reference": "efb6e445494a9458aa59b0af5edfa4bdcc6809d9" + "reference": "6a1699707b099081f20a488ac1f92d682181018c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/scrivo/highlight.php/zipball/efb6e445494a9458aa59b0af5edfa4bdcc6809d9", - "reference": "efb6e445494a9458aa59b0af5edfa4bdcc6809d9", + "url": "https://api.github.com/repos/scrivo/highlight.php/zipball/6a1699707b099081f20a488ac1f92d682181018c", + "reference": "6a1699707b099081f20a488ac1f92d682181018c", "shasum": "" }, "require": { @@ -8568,32 +8741,136 @@ "type": "github" } ], - "time": "2020-08-27T03:24:44+00:00" + "time": "2020-10-16T07:43:22+00:00" }, { - "name": "sebastian/code-unit-reverse-lookup", + "name": "sebastian/cli-parser", "version": "1.0.1", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/cli-parser.git", + "reference": "442e7c7e687e42adc03470c7b668bc4b2402c0b2" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/cli-parser/zipball/442e7c7e687e42adc03470c7b668bc4b2402c0b2", + "reference": "442e7c7e687e42adc03470c7b668bc4b2402c0b2", + "shasum": "" + }, + "require": { + "php": ">=7.3" + }, + "require-dev": { + "phpunit/phpunit": "^9.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Library for parsing CLI options", + "homepage": "https://github.com/sebastianbergmann/cli-parser", + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2020-09-28T06:08:49+00:00" + }, + { + "name": "sebastian/code-unit", + "version": "1.0.8", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/code-unit.git", + "reference": "1fc9f64c0927627ef78ba436c9b17d967e68e120" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/code-unit/zipball/1fc9f64c0927627ef78ba436c9b17d967e68e120", + "reference": "1fc9f64c0927627ef78ba436c9b17d967e68e120", + "shasum": "" + }, + "require": { + "php": ">=7.3" + }, + "require-dev": { + "phpunit/phpunit": "^9.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Collection of value objects that represent the PHP code units", + "homepage": "https://github.com/sebastianbergmann/code-unit", + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2020-10-26T13:08:54+00:00" + }, + { + "name": "sebastian/code-unit-reverse-lookup", + "version": "2.0.3", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/code-unit-reverse-lookup.git", - "reference": "4419fcdb5eabb9caa61a27c7a1db532a6b55dd18" + "reference": "ac91f01ccec49fb77bdc6fd1e548bc70f7faa3e5" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/code-unit-reverse-lookup/zipball/4419fcdb5eabb9caa61a27c7a1db532a6b55dd18", - "reference": "4419fcdb5eabb9caa61a27c7a1db532a6b55dd18", + "url": "https://api.github.com/repos/sebastianbergmann/code-unit-reverse-lookup/zipball/ac91f01ccec49fb77bdc6fd1e548bc70f7faa3e5", + "reference": "ac91f01ccec49fb77bdc6fd1e548bc70f7faa3e5", "shasum": "" }, "require": { - "php": "^5.6 || ^7.0" + "php": ">=7.3" }, "require-dev": { - "phpunit/phpunit": "^5.7 || ^6.0" + "phpunit/phpunit": "^9.3" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.0.x-dev" + "dev-master": "2.0-dev" } }, "autoload": { @@ -8613,34 +8890,40 @@ ], "description": "Looks up which function or method a line of code belongs to", "homepage": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/", - "time": "2017-03-04T06:30:41+00:00" + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2020-09-28T05:30:19+00:00" }, { "name": "sebastian/comparator", - "version": "3.0.2", + "version": "4.0.5", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/comparator.git", - "reference": "5de4fc177adf9bce8df98d8d141a7559d7ccf6da" + "reference": "7a8ff306445707539c1a6397372a982a1ec55120" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/5de4fc177adf9bce8df98d8d141a7559d7ccf6da", - "reference": "5de4fc177adf9bce8df98d8d141a7559d7ccf6da", + "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/7a8ff306445707539c1a6397372a982a1ec55120", + "reference": "7a8ff306445707539c1a6397372a982a1ec55120", "shasum": "" }, "require": { - "php": "^7.1", - "sebastian/diff": "^3.0", - "sebastian/exporter": "^3.1" + "php": ">=7.3", + "sebastian/diff": "^4.0", + "sebastian/exporter": "^4.0" }, "require-dev": { - "phpunit/phpunit": "^7.1" + "phpunit/phpunit": "^9.3" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "3.0-dev" + "dev-master": "4.0-dev" } }, "autoload": { @@ -8653,6 +8936,10 @@ "BSD-3-Clause" ], "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + }, { "name": "Jeff Welch", "email": "whatthejeff@gmail.com" @@ -8664,10 +8951,6 @@ { "name": "Bernhard Schussek", "email": "bschussek@2bepublished.at" - }, - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de" } ], "description": "Provides the functionality to compare PHP values for equality", @@ -8677,33 +8960,92 @@ "compare", "equality" ], - "time": "2018-07-12T15:12:46+00:00" + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2020-09-30T06:47:25+00:00" + }, + { + "name": "sebastian/complexity", + "version": "2.0.1", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/complexity.git", + "reference": "ba8cc2da0c0bfbc813d03b56406734030c7f1eff" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/complexity/zipball/ba8cc2da0c0bfbc813d03b56406734030c7f1eff", + "reference": "ba8cc2da0c0bfbc813d03b56406734030c7f1eff", + "shasum": "" + }, + "require": { + "nikic/php-parser": "^4.7", + "php": ">=7.3" + }, + "require-dev": { + "phpunit/phpunit": "^9.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Library for calculating the complexity of PHP code units", + "homepage": "https://github.com/sebastianbergmann/complexity", + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2020-09-28T06:05:03+00:00" }, { "name": "sebastian/diff", - "version": "3.0.2", + "version": "4.0.4", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/diff.git", - "reference": "720fcc7e9b5cf384ea68d9d930d480907a0c1a29" + "reference": "3461e3fccc7cfdfc2720be910d3bd73c69be590d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/720fcc7e9b5cf384ea68d9d930d480907a0c1a29", - "reference": "720fcc7e9b5cf384ea68d9d930d480907a0c1a29", + "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/3461e3fccc7cfdfc2720be910d3bd73c69be590d", + "reference": "3461e3fccc7cfdfc2720be910d3bd73c69be590d", "shasum": "" }, "require": { - "php": "^7.1" + "php": ">=7.3" }, "require-dev": { - "phpunit/phpunit": "^7.5 || ^8.0", - "symfony/process": "^2 || ^3.3 || ^4" + "phpunit/phpunit": "^9.3", + "symfony/process": "^4.2 || ^5" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "3.0-dev" + "dev-master": "4.0-dev" } }, "autoload": { @@ -8716,13 +9058,13 @@ "BSD-3-Clause" ], "authors": [ - { - "name": "Kore Nordmann", - "email": "mail@kore-nordmann.de" - }, { "name": "Sebastian Bergmann", "email": "sebastian@phpunit.de" + }, + { + "name": "Kore Nordmann", + "email": "mail@kore-nordmann.de" } ], "description": "Diff implementation", @@ -8733,27 +9075,33 @@ "unidiff", "unified diff" ], - "time": "2019-02-04T06:01:07+00:00" + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2020-10-26T13:10:38+00:00" }, { "name": "sebastian/environment", - "version": "4.2.3", + "version": "5.1.3", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/environment.git", - "reference": "464c90d7bdf5ad4e8a6aea15c091fec0603d4368" + "reference": "388b6ced16caa751030f6a69e588299fa09200ac" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/464c90d7bdf5ad4e8a6aea15c091fec0603d4368", - "reference": "464c90d7bdf5ad4e8a6aea15c091fec0603d4368", + "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/388b6ced16caa751030f6a69e588299fa09200ac", + "reference": "388b6ced16caa751030f6a69e588299fa09200ac", "shasum": "" }, "require": { - "php": "^7.1" + "php": ">=7.3" }, "require-dev": { - "phpunit/phpunit": "^7.5" + "phpunit/phpunit": "^9.3" }, "suggest": { "ext-posix": "*" @@ -8761,7 +9109,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "4.2-dev" + "dev-master": "5.1-dev" } }, "autoload": { @@ -8786,34 +9134,40 @@ "environment", "hhvm" ], - "time": "2019-11-20T08:46:58+00:00" + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2020-09-28T05:52:38+00:00" }, { "name": "sebastian/exporter", - "version": "3.1.2", + "version": "4.0.3", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/exporter.git", - "reference": "68609e1261d215ea5b21b7987539cbfbe156ec3e" + "reference": "d89cc98761b8cb5a1a235a6b703ae50d34080e65" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/68609e1261d215ea5b21b7987539cbfbe156ec3e", - "reference": "68609e1261d215ea5b21b7987539cbfbe156ec3e", + "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/d89cc98761b8cb5a1a235a6b703ae50d34080e65", + "reference": "d89cc98761b8cb5a1a235a6b703ae50d34080e65", "shasum": "" }, "require": { - "php": "^7.0", - "sebastian/recursion-context": "^3.0" + "php": ">=7.3", + "sebastian/recursion-context": "^4.0" }, "require-dev": { "ext-mbstring": "*", - "phpunit/phpunit": "^6.0" + "phpunit/phpunit": "^9.3" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "3.1.x-dev" + "dev-master": "4.0-dev" } }, "autoload": { @@ -8853,30 +9207,36 @@ "export", "exporter" ], - "time": "2019-09-14T09:02:43+00:00" + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2020-09-28T05:24:23+00:00" }, { "name": "sebastian/global-state", - "version": "3.0.0", + "version": "5.0.1", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/global-state.git", - "reference": "edf8a461cf1d4005f19fb0b6b8b95a9f7fa0adc4" + "reference": "ea779cb749a478b22a2564ac41cd7bda79c78dc7" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/global-state/zipball/edf8a461cf1d4005f19fb0b6b8b95a9f7fa0adc4", - "reference": "edf8a461cf1d4005f19fb0b6b8b95a9f7fa0adc4", + "url": "https://api.github.com/repos/sebastianbergmann/global-state/zipball/ea779cb749a478b22a2564ac41cd7bda79c78dc7", + "reference": "ea779cb749a478b22a2564ac41cd7bda79c78dc7", "shasum": "" }, "require": { - "php": "^7.2", - "sebastian/object-reflector": "^1.1.1", - "sebastian/recursion-context": "^3.0" + "php": ">=7.3", + "sebastian/object-reflector": "^2.0", + "sebastian/recursion-context": "^4.0" }, "require-dev": { "ext-dom": "*", - "phpunit/phpunit": "^8.0" + "phpunit/phpunit": "^9.3" }, "suggest": { "ext-uopz": "*" @@ -8884,7 +9244,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "3.0-dev" + "dev-master": "5.0-dev" } }, "autoload": { @@ -8907,34 +9267,93 @@ "keywords": [ "global state" ], - "time": "2019-02-01T05:30:01+00:00" + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2020-09-28T05:54:06+00:00" + }, + { + "name": "sebastian/lines-of-code", + "version": "1.0.1", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/lines-of-code.git", + "reference": "6514b8f21906b8b46f520d1fbd17a4523fa59a54" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/lines-of-code/zipball/6514b8f21906b8b46f520d1fbd17a4523fa59a54", + "reference": "6514b8f21906b8b46f520d1fbd17a4523fa59a54", + "shasum": "" + }, + "require": { + "nikic/php-parser": "^4.6", + "php": ">=7.3" + }, + "require-dev": { + "phpunit/phpunit": "^9.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Library for counting the lines of code in PHP source code", + "homepage": "https://github.com/sebastianbergmann/lines-of-code", + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2020-09-28T06:07:27+00:00" }, { "name": "sebastian/object-enumerator", - "version": "3.0.3", + "version": "4.0.4", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/object-enumerator.git", - "reference": "7cfd9e65d11ffb5af41198476395774d4c8a84c5" + "reference": "5c9eeac41b290a3712d88851518825ad78f45c71" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/object-enumerator/zipball/7cfd9e65d11ffb5af41198476395774d4c8a84c5", - "reference": "7cfd9e65d11ffb5af41198476395774d4c8a84c5", + "url": "https://api.github.com/repos/sebastianbergmann/object-enumerator/zipball/5c9eeac41b290a3712d88851518825ad78f45c71", + "reference": "5c9eeac41b290a3712d88851518825ad78f45c71", "shasum": "" }, "require": { - "php": "^7.0", - "sebastian/object-reflector": "^1.1.1", - "sebastian/recursion-context": "^3.0" + "php": ">=7.3", + "sebastian/object-reflector": "^2.0", + "sebastian/recursion-context": "^4.0" }, "require-dev": { - "phpunit/phpunit": "^6.0" + "phpunit/phpunit": "^9.3" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "3.0.x-dev" + "dev-master": "4.0-dev" } }, "autoload": { @@ -8954,32 +9373,38 @@ ], "description": "Traverses array structures and object graphs to enumerate all referenced objects", "homepage": "https://github.com/sebastianbergmann/object-enumerator/", - "time": "2017-08-03T12:35:26+00:00" + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2020-10-26T13:12:34+00:00" }, { "name": "sebastian/object-reflector", - "version": "1.1.1", + "version": "2.0.4", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/object-reflector.git", - "reference": "773f97c67f28de00d397be301821b06708fca0be" + "reference": "b4f479ebdbf63ac605d183ece17d8d7fe49c15c7" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/object-reflector/zipball/773f97c67f28de00d397be301821b06708fca0be", - "reference": "773f97c67f28de00d397be301821b06708fca0be", + "url": "https://api.github.com/repos/sebastianbergmann/object-reflector/zipball/b4f479ebdbf63ac605d183ece17d8d7fe49c15c7", + "reference": "b4f479ebdbf63ac605d183ece17d8d7fe49c15c7", "shasum": "" }, "require": { - "php": "^7.0" + "php": ">=7.3" }, "require-dev": { - "phpunit/phpunit": "^6.0" + "phpunit/phpunit": "^9.3" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.1-dev" + "dev-master": "2.0-dev" } }, "autoload": { @@ -8999,32 +9424,38 @@ ], "description": "Allows reflection of object attributes, including inherited and non-public ones", "homepage": "https://github.com/sebastianbergmann/object-reflector/", - "time": "2017-03-29T09:07:27+00:00" + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2020-10-26T13:14:26+00:00" }, { "name": "sebastian/recursion-context", - "version": "3.0.0", + "version": "4.0.4", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/recursion-context.git", - "reference": "5b0cd723502bac3b006cbf3dbf7a1e3fcefe4fa8" + "reference": "cd9d8cf3c5804de4341c283ed787f099f5506172" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/5b0cd723502bac3b006cbf3dbf7a1e3fcefe4fa8", - "reference": "5b0cd723502bac3b006cbf3dbf7a1e3fcefe4fa8", + "url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/cd9d8cf3c5804de4341c283ed787f099f5506172", + "reference": "cd9d8cf3c5804de4341c283ed787f099f5506172", "shasum": "" }, "require": { - "php": "^7.0" + "php": ">=7.3" }, "require-dev": { - "phpunit/phpunit": "^6.0" + "phpunit/phpunit": "^9.3" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "3.0.x-dev" + "dev-master": "4.0-dev" } }, "autoload": { @@ -9037,14 +9468,14 @@ "BSD-3-Clause" ], "authors": [ - { - "name": "Jeff Welch", - "email": "whatthejeff@gmail.com" - }, { "name": "Sebastian Bergmann", "email": "sebastian@phpunit.de" }, + { + "name": "Jeff Welch", + "email": "whatthejeff@gmail.com" + }, { "name": "Adam Harvey", "email": "aharvey@php.net" @@ -9052,29 +9483,38 @@ ], "description": "Provides functionality to recursively process PHP variables", "homepage": "http://www.github.com/sebastianbergmann/recursion-context", - "time": "2017-03-03T06:23:57+00:00" + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2020-10-26T13:17:30+00:00" }, { "name": "sebastian/resource-operations", - "version": "2.0.1", + "version": "3.0.3", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/resource-operations.git", - "reference": "4d7a795d35b889bf80a0cc04e08d77cedfa917a9" + "reference": "0f4443cb3a1d92ce809899753bc0d5d5a8dd19a8" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/resource-operations/zipball/4d7a795d35b889bf80a0cc04e08d77cedfa917a9", - "reference": "4d7a795d35b889bf80a0cc04e08d77cedfa917a9", + "url": "https://api.github.com/repos/sebastianbergmann/resource-operations/zipball/0f4443cb3a1d92ce809899753bc0d5d5a8dd19a8", + "reference": "0f4443cb3a1d92ce809899753bc0d5d5a8dd19a8", "shasum": "" }, "require": { - "php": "^7.1" + "php": ">=7.3" + }, + "require-dev": { + "phpunit/phpunit": "^9.0" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "2.0-dev" + "dev-master": "3.0-dev" } }, "autoload": { @@ -9094,32 +9534,38 @@ ], "description": "Provides a list of PHP built-in functions that operate on resources", "homepage": "https://www.github.com/sebastianbergmann/resource-operations", - "time": "2018-10-04T04:07:39+00:00" + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2020-09-28T06:45:17+00:00" }, { "name": "sebastian/type", - "version": "1.1.3", + "version": "2.3.1", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/type.git", - "reference": "3aaaa15fa71d27650d62a948be022fe3b48541a3" + "reference": "81cd61ab7bbf2de744aba0ea61fae32f721df3d2" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/type/zipball/3aaaa15fa71d27650d62a948be022fe3b48541a3", - "reference": "3aaaa15fa71d27650d62a948be022fe3b48541a3", + "url": "https://api.github.com/repos/sebastianbergmann/type/zipball/81cd61ab7bbf2de744aba0ea61fae32f721df3d2", + "reference": "81cd61ab7bbf2de744aba0ea61fae32f721df3d2", "shasum": "" }, "require": { - "php": "^7.2" + "php": ">=7.3" }, "require-dev": { - "phpunit/phpunit": "^8.2" + "phpunit/phpunit": "^9.3" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.1-dev" + "dev-master": "2.3-dev" } }, "autoload": { @@ -9140,29 +9586,35 @@ ], "description": "Collection of value objects that represent the types of the PHP type system", "homepage": "https://github.com/sebastianbergmann/type", - "time": "2019-07-02T08:10:15+00:00" + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2020-10-26T13:18:59+00:00" }, { "name": "sebastian/version", - "version": "2.0.1", + "version": "3.0.2", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/version.git", - "reference": "99732be0ddb3361e16ad77b68ba41efc8e979019" + "reference": "c6c1022351a901512170118436c764e473f6de8c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/version/zipball/99732be0ddb3361e16ad77b68ba41efc8e979019", - "reference": "99732be0ddb3361e16ad77b68ba41efc8e979019", + "url": "https://api.github.com/repos/sebastianbergmann/version/zipball/c6c1022351a901512170118436c764e473f6de8c", + "reference": "c6c1022351a901512170118436c764e473f6de8c", "shasum": "" }, "require": { - "php": ">=5.6" + "php": ">=7.3" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "2.0.x-dev" + "dev-master": "3.0-dev" } }, "autoload": { @@ -9183,7 +9635,13 @@ ], "description": "Library that helps with managing the version number of Git-hosted PHP projects", "homepage": "https://github.com/sebastianbergmann/version", - "time": "2016-10-03T07:35:21+00:00" + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2020-09-28T06:39:44+00:00" }, { "name": "seld/jsonlint", @@ -9337,7 +9795,7 @@ }, { "name": "symfony/debug", - "version": "v4.4.14", + "version": "v4.4.15", "source": { "type": "git", "url": "https://github.com/symfony/debug.git", @@ -9408,16 +9866,16 @@ }, { "name": "symfony/filesystem", - "version": "v5.1.6", + "version": "v5.1.7", "source": { "type": "git", "url": "https://github.com/symfony/filesystem.git", - "reference": "f3194303d3077829dbbc1d18f50288b2a01146f2" + "reference": "1a8697545a8d87b9f2f6b1d32414199cc5e20aae" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/filesystem/zipball/f3194303d3077829dbbc1d18f50288b2a01146f2", - "reference": "f3194303d3077829dbbc1d18f50288b2a01146f2", + "url": "https://api.github.com/repos/symfony/filesystem/zipball/1a8697545a8d87b9f2f6b1d32414199cc5e20aae", + "reference": "1a8697545a8d87b9f2f6b1d32414199cc5e20aae", "shasum": "" }, "require": { @@ -9468,11 +9926,11 @@ "type": "tidelift" } ], - "time": "2020-09-02T16:23:27+00:00" + "time": "2020-09-27T14:02:37+00:00" }, { "name": "symfony/options-resolver", - "version": "v5.1.6", + "version": "v5.1.7", "source": { "type": "git", "url": "https://github.com/symfony/options-resolver.git", @@ -9540,9 +9998,74 @@ ], "time": "2020-09-27T03:44:28+00:00" }, + { + "name": "symfony/polyfill-php70", + "version": "v1.20.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-php70.git", + "reference": "5f03a781d984aae42cebd18e7912fa80f02ee644" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-php70/zipball/5f03a781d984aae42cebd18e7912fa80f02ee644", + "reference": "5f03a781d984aae42cebd18e7912fa80f02ee644", + "shasum": "" + }, + "require": { + "php": ">=7.1" + }, + "type": "metapackage", + "extra": { + "branch-alias": { + "dev-main": "1.20-dev" + }, + "thanks": { + "name": "symfony/polyfill", + "url": "https://github.com/symfony/polyfill" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill backporting some PHP 7.0+ features to lower PHP versions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "polyfill", + "portable", + "shim" + ], + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2020-10-23T14:02:19+00:00" + }, { "name": "symfony/stopwatch", - "version": "v5.1.6", + "version": "v5.1.7", "source": { "type": "git", "url": "https://github.com/symfony/stopwatch.git", @@ -9703,13 +10226,13 @@ "aliases": [], "minimum-stability": "stable", "stability-flags": { - "oriceon/toastr-5-laravel": 20, - "wpb/string-blade-compiler": 20 + "darkghosthunter/larapoke": 20, + "oriceon/toastr-5-laravel": 20 }, "prefer-stable": false, "prefer-lowest": false, "platform": { - "php": "^7.2.5", + "php": "^7.3", "ext-curl": "*", "ext-gd": "*", "ext-json": "*", diff --git a/config/auth.php b/config/auth.php index 8c548ae3a210..a2073c229e90 100644 --- a/config/auth.php +++ b/config/auth.php @@ -85,15 +85,15 @@ 'model' => App\Models\User::class, ], - // 'users' => [ - // 'driver' => 'database', - // 'table' => 'users', - // ], - 'legacy' => [ 'driver' => 'legacy', 'model' => App\Models\User::class, ], + + // 'users' => [ + // 'driver' => 'database', + // 'table' => 'users', + // ], ], /* diff --git a/config/logging.php b/config/logging.php index 3ffe3c63d05a..6d391592f9e1 100644 --- a/config/logging.php +++ b/config/logging.php @@ -58,13 +58,13 @@ 'single' => [ 'driver' => 'single', 'path' => env('APP_LOG', \LibreNMS\Config::get('log_file', base_path('logs/librenms.log'))), - 'level' => 'error', + 'level' => env('LOG_LEVEL', 'error'), ], 'daily' => [ 'driver' => 'daily', 'path' => env('APP_LOG', \LibreNMS\Config::get('log_file', base_path('logs/librenms.log'))), - 'level' => 'error', + 'level' => env('LOG_LEVEL', 'error'), 'days' => 14, ], @@ -73,12 +73,12 @@ 'url' => env('LOG_SLACK_WEBHOOK_URL'), 'username' => 'Laravel Log', 'emoji' => ':boom:', - 'level' => 'critical', + 'level' => env('LOG_LEVEL', 'critical'), ], 'papertrail' => [ 'driver' => 'monolog', - 'level' => 'debug', + 'level' => env('LOG_LEVEL', 'debug'), 'handler' => SyslogUdpHandler::class, 'handler_with' => [ 'host' => env('PAPERTRAIL_URL'), @@ -98,12 +98,12 @@ 'syslog' => [ 'driver' => 'syslog', - 'level' => 'debug', + 'level' => env('LOG_LEVEL', 'debug'), ], 'errorlog' => [ 'driver' => 'errorlog', - 'level' => 'debug', + 'level' => env('LOG_LEVEL', 'debug'), ], 'null' => [ diff --git a/config/queue.php b/config/queue.php index 1a50fab99ab5..53c96967224f 100644 --- a/config/queue.php +++ b/config/queue.php @@ -1,6 +1,6 @@ [ - 'driver' => env('QUEUE_FAILED_DRIVER', 'database'), + 'driver' => env('QUEUE_FAILED_DRIVER', 'database-uuids'), 'database' => env('DB_CONNECTION', 'mysql'), 'table' => 'failed_jobs', ], diff --git a/database/factories/AlertScheduleFactory.php b/database/factories/AlertScheduleFactory.php new file mode 100644 index 000000000000..dccb9a50a723 --- /dev/null +++ b/database/factories/AlertScheduleFactory.php @@ -0,0 +1,39 @@ + $this->faker->name, + 'notes' => $this->faker->text, + 'recurring' => 0, + ]; + } + + public function recurring() + { + return $this->state(function () { + return [ + 'recurring' => 1, + ]; + }); + } +} diff --git a/database/factories/BgpPeerFactory.php b/database/factories/BgpPeerFactory.php new file mode 100644 index 000000000000..e1aeff98449e --- /dev/null +++ b/database/factories/BgpPeerFactory.php @@ -0,0 +1,40 @@ + $this->faker->ipv4, + 'bgpLocalAddr' => $this->faker->ipv4, + 'bgpPeerRemoteAddr' => $this->faker->ipv4, + 'bgpPeerRemoteAs' => $this->faker->numberBetween(1, 65535), + 'bgpPeerState' => $this->faker->randomElement(['established', 'idle']), + 'astext' => $this->faker->sentence(), + 'bgpPeerAdminStatus' => $this->faker->randomElement(['start', 'stop']), + 'bgpPeerInUpdates' => $this->faker->randomDigit, + 'bgpPeerOutUpdates' => $this->faker->randomDigit, + 'bgpPeerInTotalMessages' => $this->faker->randomDigit, + 'bgpPeerOutTotalMessages' => $this->faker->randomDigit, + 'bgpPeerFsmEstablishedTime' => $this->faker->unixTime, + 'bgpPeerInUpdateElapsedTime' => $this->faker->unixTime, + ]; + } +} diff --git a/database/factories/BillFactory.php b/database/factories/BillFactory.php new file mode 100644 index 000000000000..d7b348ec9957 --- /dev/null +++ b/database/factories/BillFactory.php @@ -0,0 +1,28 @@ + $this->faker->text, + ]; + } +} diff --git a/database/factories/ComponentFactory.php b/database/factories/ComponentFactory.php new file mode 100644 index 000000000000..cb6448aee324 --- /dev/null +++ b/database/factories/ComponentFactory.php @@ -0,0 +1,29 @@ + $this->faker->randomDigit, + 'type' => $this->faker->regexify('[A-Za-z0-9]{4,20}'), + ]; + } +} diff --git a/database/factories/DeviceFactory.php b/database/factories/DeviceFactory.php new file mode 100644 index 000000000000..5207b2c8c4d5 --- /dev/null +++ b/database/factories/DeviceFactory.php @@ -0,0 +1,51 @@ + $this->faker->domainWord . '-' . $this->faker->domainWord . '-' . $this->faker->domainWord . '.' . $this->faker->domainName, + 'ip' => $this->faker->randomElement([$this->faker->ipv4, $this->faker->ipv6]), + 'type' => $this->faker->randomElement([ + 'appliance', + 'camera', + 'collaboration', + 'encoder', + 'environment', + 'firewall', + 'loadbalancer', + 'management', + 'network', + 'power', + 'printer', + 'proxy', + 'sensor', + 'server', + 'storage', + 'timing', + 'wireless', + 'workstation', + ]), + 'status' => $status = random_int(0, 1), + 'status_reason' => $status == 0 ? $this->faker->randomElement(['snmp', 'icmp']) : '', // allow invalid states? + ]; + } +} diff --git a/database/factories/DeviceGroupFactory.php b/database/factories/DeviceGroupFactory.php new file mode 100644 index 000000000000..e9802b71ae98 --- /dev/null +++ b/database/factories/DeviceGroupFactory.php @@ -0,0 +1,30 @@ + $this->faker->domainWord, + 'desc' => $this->faker->text(255), + 'type' =>'static', + ]; + } +} diff --git a/database/factories/Ipv4AddressFactory.php b/database/factories/Ipv4AddressFactory.php new file mode 100644 index 000000000000..c698efb2348a --- /dev/null +++ b/database/factories/Ipv4AddressFactory.php @@ -0,0 +1,39 @@ +faker->numberBetween(0, 32); + $ip = new IPv4($this->faker->ipv4 . '/' . $prefix); + + return [ + 'ipv4_address' => $ip->uncompressed(), + 'ipv4_prefixlen' => $prefix, + 'port_id' => function () { + return \App\Models\Port::factory()->create()->port_id; + }, + 'ipv4_network_id' => function () use ($ip) { + return \App\Models\Ipv4Network::factory()->create(['ipv4_network' => $ip->getNetworkAddress() . '/' . $ip->cidr])->ipv4_network_id; + }, + ]; + } +} diff --git a/database/factories/Ipv4NetworkFactory.php b/database/factories/Ipv4NetworkFactory.php new file mode 100644 index 000000000000..25c4fc1279c3 --- /dev/null +++ b/database/factories/Ipv4NetworkFactory.php @@ -0,0 +1,28 @@ + $this->faker->ipv4 . '/' . $this->faker->numberBetween(0, 32), + ]; + } +} diff --git a/database/factories/ModelFactory.php b/database/factories/ModelFactory.php deleted file mode 100644 index fc447a5a098e..000000000000 --- a/database/factories/ModelFactory.php +++ /dev/null @@ -1,218 +0,0 @@ -define(App\Models\User::class, function (Faker\Generator $faker) { - static $password; - - return [ - 'auth_type' => 'mysql', - 'username' => $faker->unique()->userName, - 'realname' => $faker->name, - 'email' => $faker->safeEmail, - 'password' => $password ?: $password = bcrypt('secret'), - 'level' => 1, - ]; -}); - -$factory->state(App\Models\User::class, 'admin', function ($faker) { - return [ - 'level' => '10', - ]; -}); - -$factory->state(App\Models\User::class, 'read', function ($faker) { - return [ - 'level' => '5', - ]; -}); - -$factory->define(\App\Models\Bill::class, function (Faker\Generator $faker) { - return [ - 'bill_name' => $faker->text, - ]; -}); - -$factory->define(\App\Models\Device::class, function (Faker\Generator $faker) { - return [ - 'hostname' => $faker->domainWord . '-' . $faker->domainWord . '-' . $faker->domainWord . '.' . $faker->domainName, - 'ip' => $faker->randomElement([$faker->ipv4, $faker->ipv6]), - 'type' => $faker->randomElement([ - 'appliance', - 'camera', - 'collaboration', - 'encoder', - 'environment', - 'firewall', - 'loadbalancer', - 'management', - 'network', - 'power', - 'printer', - 'proxy', - 'sensor', - 'server', - 'storage', - 'timing', - 'wireless', - 'workstation', - ]), - 'status' => $status = random_int(0, 1), - 'status_reason' => $status == 0 ? $faker->randomElement(['snmp', 'icmp']) : '', // allow invalid states? - ]; -}); - -$factory->define(\App\Models\DeviceGroup::class, function (Faker\Generator $faker) { - return [ - 'name' => $faker->domainWord, - 'desc' => $faker->text(255), - 'type' =>'static', - ]; -}); - -$factory->define(\App\Models\Port::class, function (Faker\Generator $faker) { - return [ - 'ifIndex' => $faker->unique()->numberBetween(), - 'ifName' => $faker->text(20), - 'ifDescr' => $faker->text(255), - 'ifLastChange' => $faker->unixTime(), - ]; -}); - -$factory->define(\App\Models\BgpPeer::class, function (Faker\Generator $faker) { - return [ - 'bgpPeerIdentifier' => $faker->ipv4, - 'bgpLocalAddr' => $faker->ipv4, - 'bgpPeerRemoteAddr' => $faker->ipv4, - 'bgpPeerRemoteAs' => $faker->numberBetween(1, 65535), - 'bgpPeerState' => $faker->randomElement(['established', 'idle']), - 'astext' => $faker->sentence(), - 'bgpPeerAdminStatus' => $faker->randomElement(['start', 'stop']), - 'bgpPeerInUpdates' => $faker->randomDigit, - 'bgpPeerOutUpdates' => $faker->randomDigit, - 'bgpPeerInTotalMessages' => $faker->randomDigit, - 'bgpPeerOutTotalMessages' => $faker->randomDigit, - 'bgpPeerFsmEstablishedTime' => $faker->unixTime, - 'bgpPeerInUpdateElapsedTime' => $faker->unixTime, - ]; -}); - -$factory->define(\App\Models\Ipv4Address::class, function (Faker\Generator $faker) { - $prefix = $faker->numberBetween(0, 32); - $ip = new IPv4($faker->ipv4 . '/' . $prefix); - - return [ - 'ipv4_address' => $ip->uncompressed(), - 'ipv4_prefixlen' => $prefix, - 'port_id' => function () { - return factory(\App\Models\Port::class)->create()->port_id; - }, - 'ipv4_network_id' => function () use ($ip) { - return factory(\App\Models\Ipv4Network::class)->create(['ipv4_network' => $ip->getNetworkAddress() . '/' . $ip->cidr])->ipv4_network_id; - }, - ]; -}); - -$factory->define(\App\Models\Ipv4Network::class, function (Faker\Generator $faker) { - return [ - 'ipv4_network' => $faker->ipv4 . '/' . $faker->numberBetween(0, 32), - ]; -}); - -$factory->define(\App\Models\Syslog::class, function (Faker\Generator $faker) { - $facilities = ['kern', 'user', 'mail', 'daemon', 'auth', 'syslog', 'lpr', 'news', 'uucp', 'cron', 'authpriv', 'ftp', 'ntp', 'security', 'console', 'solaris-cron', 'local0', 'local1', 'local2', 'local3', 'local4', 'local5', 'local6', 'local7']; - $levels = ['emerg', 'alert', 'crit', 'err', 'warning', 'notice', 'info', 'debug']; - - return [ - 'facility' => $faker->randomElement($facilities), - 'priority' => $faker->randomElement($levels), - 'level' => $faker->randomElement($levels), - 'tag' => $faker->asciify(str_repeat('*', $faker->numberBetween(0, 10))), - 'timestamp' => Carbon::now(), - 'program' => $faker->asciify(str_repeat('*', $faker->numberBetween(0, 32))), - 'msg' => $faker->text(), - ]; -}); - -$factory->define(\App\Models\Vminfo::class, function (Faker\Generator $faker) { - return [ - 'vm_type' => $faker->text(16), - 'vmwVmVMID' => $faker->randomDigit, - 'vmwVmDisplayName' => $faker->domainWord . '.' . $faker->domainName, - 'vmwVmGuestOS' => $faker->text(128), - 'vmwVmMemSize' => $faker->randomDigit, - 'vmwVmCpus' => $faker->randomDigit, - 'vmwVmState' => $faker->randomElement(['powered on', 'powered off', 'suspended']), - ]; -}); - -$factory->define(\App\Models\OspfNbr::class, function (Faker\Generator $faker) { - return [ - 'id' => $faker->randomDigit, - 'ospfNbrIpAddr' => $faker->ipv4, - 'ospfNbrAddressLessIndex' => $faker->randomDigit, - 'ospfNbrRtrId' => $faker->ipv4, - 'ospfNbrOptions' => 0, - 'ospfNbrPriority' => 1, - 'ospfNbrEvents' => $faker->randomDigit, - 'ospfNbrLsRetransQLen' => 0, - 'ospfNbmaNbrStatus' => 'active', - 'ospfNbmaNbrPermanence' => 'dynamic', - 'ospfNbrHelloSuppressed' => 'false', - ]; -}); - -$factory->define(\App\Models\OspfPort::class, function (Faker\Generator $faker) { - return [ - 'id' => $faker->randomDigit, - 'ospf_port_id' => $faker->randomDigit, - 'ospfIfIpAddress' => $faker->ipv4, - 'ospfAddressLessIf' => $faker->randomDigit, - 'ospfIfAreaId' => '0.0.0.0', - ]; -}); - -$factory->define(\App\Models\Component::class, function (Faker\Generator $faker) { - return [ - 'device_id' => $faker->randomDigit, - 'type' => $faker->regexify('[A-Za-z0-9]{4,20}'), - ]; -}); -$factory->define(\App\Models\Sensor::class, function (Faker\Generator $faker) { - $sensor_class = ['airflow', 'ber', 'charge', 'chromatic_dispersion', 'cooling', 'count', 'current', 'dbm', 'delay', 'eer', 'fanspeed', 'frequency', 'humidity', 'load', 'loss', 'power', 'power_consumed', 'power_factor', 'pressure', 'quality_factor', 'runtime', 'signal', 'snr', 'state', 'temperature', 'voltage', 'waterflow']; - $sensor_oid = '.1.3.6.1.4.1.4115.1.4.3.3.' . $faker->numberBetween(0, 10) . '.' . $faker->numberBetween(0, 10) . '.' . $faker->numberBetween(0, 10); - - return [ - 'sensor_index' => $faker->randomDigit, - 'sensor_class' => $faker->randomElement($sensor_class), - 'sensor_current' => $faker->randomDigit, - 'sensor_oid' => $sensor_oid, - ]; -}); - -$factory->define(\App\Models\AlertSchedule::class, function (Faker\Generator $faker) { - return [ - 'title' => $faker->name, - 'notes' => $faker->text, - 'recurring' => 0, - ]; -}); -$factory->state(\App\Models\AlertSchedule::class, 'recurring', function ($faker) { - return [ - 'recurring' => 1, - ]; -}); diff --git a/database/factories/OspfNbrFactory.php b/database/factories/OspfNbrFactory.php new file mode 100644 index 000000000000..1a0f54859ecb --- /dev/null +++ b/database/factories/OspfNbrFactory.php @@ -0,0 +1,38 @@ + $this->faker->randomDigit, + 'ospfNbrIpAddr' => $this->faker->ipv4, + 'ospfNbrAddressLessIndex' => $this->faker->randomDigit, + 'ospfNbrRtrId' => $this->faker->ipv4, + 'ospfNbrOptions' => 0, + 'ospfNbrPriority' => 1, + 'ospfNbrEvents' => $this->faker->randomDigit, + 'ospfNbrLsRetransQLen' => 0, + 'ospfNbmaNbrStatus' => 'active', + 'ospfNbmaNbrPermanence' => 'dynamic', + 'ospfNbrHelloSuppressed' => 'false', + ]; + } +} diff --git a/database/factories/OspfPortFactory.php b/database/factories/OspfPortFactory.php new file mode 100644 index 000000000000..294d200ce619 --- /dev/null +++ b/database/factories/OspfPortFactory.php @@ -0,0 +1,32 @@ + $this->faker->randomDigit, + 'ospf_port_id' => $this->faker->randomDigit, + 'ospfIfIpAddress' => $this->faker->ipv4, + 'ospfAddressLessIf' => $this->faker->randomDigit, + 'ospfIfAreaId' => '0.0.0.0', + ]; + } +} diff --git a/database/factories/PortFactory.php b/database/factories/PortFactory.php new file mode 100644 index 000000000000..333f6b0f6a6e --- /dev/null +++ b/database/factories/PortFactory.php @@ -0,0 +1,31 @@ + $this->faker->unique()->numberBetween(), + 'ifName' => $this->faker->text(20), + 'ifDescr' => $this->faker->text(255), + 'ifLastChange' => $this->faker->unixTime(), + ]; + } +} diff --git a/database/factories/SensorFactory.php b/database/factories/SensorFactory.php new file mode 100644 index 000000000000..4629380d24b7 --- /dev/null +++ b/database/factories/SensorFactory.php @@ -0,0 +1,34 @@ +faker->numberBetween(0, 10) . '.' . $this->faker->numberBetween(0, 10) . '.' . $this->faker->numberBetween(0, 10); + + return [ + 'sensor_index' => $this->faker->randomDigit, + 'sensor_class' => $this->faker->randomElement($sensor_class), + 'sensor_current' => $this->faker->randomDigit, + 'sensor_oid' => $sensor_oid, + ]; + } +} diff --git a/database/factories/SyslogFactory.php b/database/factories/SyslogFactory.php new file mode 100644 index 000000000000..0de526349bf3 --- /dev/null +++ b/database/factories/SyslogFactory.php @@ -0,0 +1,38 @@ + $this->faker->randomElement($facilities), + 'priority' => $this->faker->randomElement($levels), + 'level' => $this->faker->randomElement($levels), + 'tag' => $this->faker->asciify(str_repeat('*', $this->faker->numberBetween(0, 10))), + 'timestamp' => Carbon::now(), + 'program' => $this->faker->asciify(str_repeat('*', $this->faker->numberBetween(0, 32))), + 'msg' => $this->faker->text(), + ]; + } +} diff --git a/database/factories/UserFactory.php b/database/factories/UserFactory.php new file mode 100644 index 000000000000..37a7df724245 --- /dev/null +++ b/database/factories/UserFactory.php @@ -0,0 +1,53 @@ + 'mysql', + 'username' => $this->faker->unique()->userName, + 'realname' => $this->faker->name, + 'email' => $this->faker->safeEmail, + 'password' => $password ?: $password = bcrypt('secret'), + 'level' => 1, + ]; + } + + public function admin() + { + return $this->state(function () { + return [ + 'level' => '10', + ]; + }); + } + + public function read() + { + return $this->state(function () { + return [ + 'level' => '5', + ]; + }); + } +} diff --git a/database/factories/VminfoFactory.php b/database/factories/VminfoFactory.php new file mode 100644 index 000000000000..d7fd19ad5c2e --- /dev/null +++ b/database/factories/VminfoFactory.php @@ -0,0 +1,34 @@ + $this->faker->text(16), + 'vmwVmVMID' => $this->faker->randomDigit, + 'vmwVmDisplayName' => $this->faker->domainWord . '.' . $this->faker->domainName, + 'vmwVmGuestOS' => $this->faker->text(128), + 'vmwVmMemSize' => $this->faker->randomDigit, + 'vmwVmCpus' => $this->faker->randomDigit, + 'vmwVmState' => $this->faker->randomElement(['powered on', 'powered off', 'suspended']), + ]; + } +} diff --git a/database/seeds/DatabaseSeeder.php b/database/seeders/DatabaseSeeder.php similarity index 92% rename from database/seeds/DatabaseSeeder.php rename to database/seeders/DatabaseSeeder.php index cd5b32a85187..3c69cd6799f6 100644 --- a/database/seeds/DatabaseSeeder.php +++ b/database/seeders/DatabaseSeeder.php @@ -1,5 +1,7 @@ pluck('name'); - \DB::table('alert_templates')->insert(array_filter($templates, function ($entry) use ($existing) { + DB::table('alert_templates')->insert(array_filter($templates, function ($entry) use ($existing) { return ! $existing->contains($entry['name']); })); } diff --git a/database/seeds/DefaultLegacySchemaSeeder.php b/database/seeders/DefaultLegacySchemaSeeder.php similarity index 87% rename from database/seeds/DefaultLegacySchemaSeeder.php rename to database/seeders/DefaultLegacySchemaSeeder.php index a4d7c7b62fbf..92e967c97637 100644 --- a/database/seeds/DefaultLegacySchemaSeeder.php +++ b/database/seeders/DefaultLegacySchemaSeeder.php @@ -22,7 +22,10 @@ * @author Tony Murray */ +namespace Database\Seeders; + use Illuminate\Database\Seeder; +use Illuminate\Support\Facades\DB; class DefaultLegacySchemaSeeder extends Seeder { @@ -35,8 +38,8 @@ public function run() { // insert version 1000 to prevent legacy schema code from running. // additionally prevents seeder from being run again by build-base.php / includes/sql-schema/update.php. - if (! \DB::table('dbSchema')->exists()) { - \DB::table('dbSchema')->insert(['version' => 1000]); + if (! DB::table('dbSchema')->exists()) { + DB::table('dbSchema')->insert(['version' => 1000]); } } } diff --git a/database/seeds/DefaultWidgetSeeder.php b/database/seeders/DefaultWidgetSeeder.php similarity index 95% rename from database/seeds/DefaultWidgetSeeder.php rename to database/seeders/DefaultWidgetSeeder.php index 6b9e727961a5..c2e0aaa7c2d7 100644 --- a/database/seeds/DefaultWidgetSeeder.php +++ b/database/seeders/DefaultWidgetSeeder.php @@ -1,6 +1,9 @@ pluck('widget'); - \DB::table('widgets')->insert(array_filter($widgets, function ($entry) use ($existing) { + DB::table('widgets')->insert(array_filter($widgets, function ($entry) use ($existing) { return ! $existing->contains($entry['widget']); })); } diff --git a/html/index.php b/html/index.php index 68ee02ba83cc..0fbc0c43be39 100644 --- a/html/index.php +++ b/html/index.php @@ -1,57 +1,55 @@ - */ +use Illuminate\Contracts\Http\Kernel; +use Illuminate\Http\Request; + +define('LARAVEL_START', microtime(true)); /* |-------------------------------------------------------------------------- -| Register The Auto Loader +| Check If Application Is Under Maintenance |-------------------------------------------------------------------------- | -| Composer provides a convenient, automatically generated class loader for -| our application. We just need to utilize it! We'll simply require it -| into the script here so that we don't have to worry about manual -| loading any of our classes later on. It feels great to relax. +| If the application is maintenance / demo mode via the "down" command we +| will require this file so that any prerendered template can be shown +| instead of starting the framework, which could cause an exception. | */ -require __DIR__ . '/../bootstrap/autoload.php'; +if (file_exists(__DIR__ . '/../storage/framework/maintenance.php')) { + require __DIR__ . '/../storage/framework/maintenance.php'; +} /* |-------------------------------------------------------------------------- -| Turn On The Lights +| Register The Auto Loader |-------------------------------------------------------------------------- | -| We need to illuminate PHP development, so let us turn on the lights. -| This bootstraps the framework and gets it ready for use, then it -| will load up this application so that we can run it and send -| the responses back to the browser and delight our users. +| Composer provides a convenient, automatically generated class loader for +| this application. We just need to utilize it! We'll simply require it +| into the script here so we don't need to manually load our classes. | */ -$app = require_once __DIR__ . '/../bootstrap/app.php'; +require __DIR__ . '/../vendor/autoload.php'; /* |-------------------------------------------------------------------------- | Run The Application |-------------------------------------------------------------------------- | -| Once we have the application, we can handle the incoming request -| through the kernel, and send the associated response back to -| the client's browser allowing them to enjoy the creative -| and wonderful application we have prepared for them. +| Once we have the application, we can handle the incoming request using +| the application's HTTP kernel. Then, we will send the response back +| to this client's browser, allowing them to enjoy our application. | */ -$kernel = $app->make(Illuminate\Contracts\Http\Kernel::class); +$app = require_once __DIR__ . '/../bootstrap/app.php'; -$response = $kernel->handle( - $request = Illuminate\Http\Request::capture() -); +$kernel = $app->make(Kernel::class); -$response->send(); +$response = tap($kernel->handle( + $request = Request::capture() +))->send(); $kernel->terminate($request, $response); diff --git a/phpunit.xml b/phpunit.xml index da083fc3ecd5..4ebf0dd7e74e 100644 --- a/phpunit.xml +++ b/phpunit.xml @@ -1,5 +1,7 @@ - - - - tests/ - - - - ./tests/Feature - - - - ./tests/Unit - - - - - browser - mibs - - - - - ./app - - - - - - - - - - - + + + ./app + + + + + tests/ + + + ./tests/Feature + + + ./tests/Unit + + + + + browser + mibs + + + + + + + + + + + diff --git a/routes/console.php b/routes/console.php index e030018abe24..4ad9e6329d89 100644 --- a/routes/console.php +++ b/routes/console.php @@ -25,7 +25,7 @@ $this->argument('old hostname'), $this->argument('new hostname'), ]))->setTty(true)->run(); -})->describe(__('Rename a device, this can be used to change the hostname or IP of a device')); +})->purpose(__('Rename a device, this can be used to change the hostname or IP of a device')); Artisan::command('device:add {device spec : Hostname or IP to add} @@ -137,7 +137,7 @@ return 3; } -})->describe('Add a new device'); +})->purpose('Add a new device'); Artisan::command('device:remove {device spec : ' . __('Hostname, IP, or device id to remove') . '} @@ -147,11 +147,11 @@ base_path('delhost.php'), $this->argument('device spec'), ]))->setTty(true)->run(); -})->describe('Remove a device'); +})->purpose('Remove a device'); Artisan::command('update', function () { (new Process([base_path('daily.sh')]))->setTty(true)->run(); -})->describe(__('Update LibreNMS and run maintenance routines')); +})->purpose(__('Update LibreNMS and run maintenance routines')); Artisan::command('poller:ping {groups?* : ' . __('Optional List of distributed poller groups to poll') . '} @@ -169,7 +169,7 @@ } } (new Process($command))->setTty(true)->run(); -})->describe(__('Check if devices are up or down via icmp')); +})->purpose(__('Check if devices are up or down via icmp')); Artisan::command('poller:discovery {device spec : ' . __('Device spec to discover: device_id, hostname, wildcard, odd, even, all, new') . '} @@ -197,7 +197,7 @@ } } (new Process($command))->setTty(true)->run(); -})->describe(__('Discover information about existing devices, defines what will be polled')); +})->purpose(__('Discover information about existing devices, defines what will be polled')); Artisan::command('poller:poll {device spec : ' . __('Device spec to poll: device_id, hostname, wildcard, odd, even, all') . '} @@ -219,7 +219,7 @@ } } (new Process($command))->setTty(true)->run(); -})->describe(__('Poll data from devices as defined by discovery')); +})->purpose(__('Poll data from devices as defined by discovery')); Artisan::command('poller:alerts', function () { $command = [base_path('alerts.php')]; @@ -231,7 +231,7 @@ } (new Process($command))->setTty(true)->run(); -})->describe(__('Check for any pending alerts and deliver them via defined transports')); +})->purpose(__('Check for any pending alerts and deliver them via defined transports')); Artisan::command('poller:billing {bill id? : ' . __('The bill id to poll') . '} @@ -250,7 +250,7 @@ } } (new Process($command))->setTty(true)->run(); -})->describe(__('Collect billing data')); +})->purpose(__('Collect billing data')); Artisan::command('poller:services {device spec : ' . __('Device spec to poll: device_id, hostname, wildcard, all') . '} @@ -273,7 +273,7 @@ } } (new Process($command))->setTty(true)->run(); -})->describe(__('Update LibreNMS and run maintenance routines')); +})->purpose(__('Update LibreNMS and run maintenance routines')); Artisan::command('poller:billing-calculate {--c|clear-history : ' . __('Delete all billing history') . '} @@ -285,7 +285,7 @@ } (new Process($command))->setTty(true)->run(); -})->describe(__('Run billing calculations')); +})->purpose(__('Run billing calculations')); Artisan::command('scan {network?* : ' . __('CIDR notation network(s) to scan, can be ommited if \'nets\' config is set') . '} @@ -327,4 +327,4 @@ $command = array_merge($command, $this->argument('network')); (new Process($command))->setTty(true)->run(); -})->describe(__('Scan the network for hosts and try to add them to LibreNMS')); +})->purpose(__('Scan the network for hosts and try to add them to LibreNMS')); diff --git a/routes/dev-console.php b/routes/dev-console.php index 36d2e02d39cf..a4addd9bd050 100644 --- a/routes/dev-console.php +++ b/routes/dev-console.php @@ -34,4 +34,4 @@ } catch (\Exception $e) { $this->error($e->getMessage()); } -})->describe('Create a new LibreNMS release including changelog'); +})->purpose('Create a new LibreNMS release including changelog'); diff --git a/tests/BasicApiTest.php b/tests/BasicApiTest.php index a10e0f42bcb2..b56833a3d321 100644 --- a/tests/BasicApiTest.php +++ b/tests/BasicApiTest.php @@ -35,9 +35,9 @@ class BasicApiTest extends DBTestCase public function testListDevices() { - $user = factory(User::class)->state('admin')->create(); + $user = User::factory()->admin()->create(); $token = ApiToken::generateToken($user); - $device = factory(Device::class)->create(); + $device = Device::factory()->create(); $this->json('GET', '/api/v0/devices', [], ['X-Auth-Token' => $token->token_hash]) ->assertStatus(200) diff --git a/tests/Browser/LoginTest.php b/tests/Browser/LoginTest.php index cc26cc73bd03..0fea223ca4ff 100644 --- a/tests/Browser/LoginTest.php +++ b/tests/Browser/LoginTest.php @@ -26,7 +26,7 @@ public function testUserCanLogin() { $this->browse(function (Browser $browser) { $password = 'some_password'; - $user = factory(User::class)->create([ + $user = User::factory()->create([ 'password' => password_hash($password, PASSWORD_DEFAULT), ]); @@ -52,7 +52,7 @@ public function test2faLogin() { $this->browse(function (Browser $browser) { $password = 'another_password'; - $user = factory(User::class)->create([ + $user = User::factory()->create([ 'password' => password_hash($password, PASSWORD_DEFAULT), ]); Config::persist('twofactor', true); // set to db diff --git a/tests/Feature/SnmpTraps/AdvaAccThresholdCrossingAlertTest.php b/tests/Feature/SnmpTraps/AdvaAccThresholdCrossingAlertTest.php index c53d23cf8e87..f54efeef234d 100644 --- a/tests/Feature/SnmpTraps/AdvaAccThresholdCrossingAlertTest.php +++ b/tests/Feature/SnmpTraps/AdvaAccThresholdCrossingAlertTest.php @@ -32,7 +32,7 @@ class AdvaAccThresholdCrossingAlertTest extends SnmpTrapTestCase { public function testAccThresholdTrap() { - $device = factory(Device::class)->create(); + $device = Device::factory()->create(); $trapText = "$device->hostname UDP: [$device->ip]:57602->[192.168.5.5]:162 diff --git a/tests/Feature/SnmpTraps/AdvaAttributeChangeTest.php b/tests/Feature/SnmpTraps/AdvaAttributeChangeTest.php index 08c64e947232..4fbadebd944d 100644 --- a/tests/Feature/SnmpTraps/AdvaAttributeChangeTest.php +++ b/tests/Feature/SnmpTraps/AdvaAttributeChangeTest.php @@ -32,7 +32,7 @@ class AdvaAttributeChangeTest extends SnmpTrapTestCase { public function testSyslogIPVersionModified() { - $device = factory(Device::class)->create(); + $device = Device::factory()->create(); $trapText = "$device->hostname UDP: [$device->ip]:57602->[192.168.5.5]:162 @@ -53,7 +53,7 @@ public function testSyslogIPVersionModified() public function testSyslogIP6AddrModified() { - $device = factory(Device::class)->create(); + $device = Device::factory()->create(); $trapText = "$device->hostname UDP: [$device->ip]:57602->[192.168.5.5]:162 @@ -74,7 +74,7 @@ public function testSyslogIP6AddrModified() public function testSyslogIPAddrModified() { - $device = factory(Device::class)->create(); + $device = Device::factory()->create(); $trapText = "$device->hostname UDP: [$device->ip]:57602->[192.168.5.5]:162 @@ -95,7 +95,7 @@ public function testSyslogIPAddrModified() public function testSyslogPortModified() { - $device = factory(Device::class)->create(); + $device = Device::factory()->create(); $trapText = "$device->hostname UDP: [$device->ip]:57602->[192.168.5.5]:162 @@ -116,7 +116,7 @@ public function testSyslogPortModified() public function testAclModified() { - $device = factory(Device::class)->create(); + $device = Device::factory()->create(); $trapText = "$device->hostname UDP: [$device->ip]:57602->[192.168.5.5]:162 @@ -137,7 +137,7 @@ public function testAclModified() public function testBannerModified() { - $device = factory(Device::class)->create(); + $device = Device::factory()->create(); $trapText = "$device->hostname UDP: [$device->ip]:57602->[192.168.5.5]:162 @@ -158,7 +158,7 @@ public function testBannerModified() public function testTimeSourceModified() { - $device = factory(Device::class)->create(); + $device = Device::factory()->create(); $trapText = "$device->hostname UDP: [$device->ip]:57602->[192.168.5.5]:162 @@ -197,7 +197,7 @@ public function testTimeSourceModified() public function testTimeZoneModified() { - $device = factory(Device::class)->create(); + $device = Device::factory()->create(); $trapText = "$device->hostname UDP: [$device->ip]:57602->[192.168.5.5]:162 @@ -250,7 +250,7 @@ public function testTimeZoneModified() public function testNtpModified() { - $device = factory(Device::class)->create(); + $device = Device::factory()->create(); $trapText = "$device->hostname UDP: [$device->ip]:57602->[192.168.5.5]:162 @@ -289,7 +289,7 @@ public function testNtpModified() public function testAuthServerModified() { - $device = factory(Device::class)->create(); + $device = Device::factory()->create(); $trapText = "$device->hostname UDP: [$device->ip]:57602->[192.168.5.5]:162 @@ -336,7 +336,7 @@ public function testAuthServerModified() public function testNeModified() { - $device = factory(Device::class)->create(); + $device = Device::factory()->create(); $trapText = "$device->hostname UDP: [$device->ip]:57602->[192.168.5.5]:162 @@ -361,7 +361,7 @@ public function testNeModified() public function testSnmpDyingGaspStateModified() { - $device = factory(Device::class)->create(); + $device = Device::factory()->create(); $trapText = "$device->hostname UDP: [$device->ip]:57602->[192.168.5.5]:162 @@ -398,7 +398,7 @@ public function testSnmpDyingGaspStateModified() public function testNetPortModified() { - $device = factory(Device::class)->create(); + $device = Device::factory()->create(); $trapText = "$device->hostname UDP: [$device->ip]:57602->[192.168.5.5]:162 @@ -456,7 +456,7 @@ public function testNetPortModified() public function testAccPortModied() { - $device = factory(Device::class)->create(); + $device = Device::factory()->create(); $trapText = "$device->hostname UDP: [$device->ip]:57602->[192.168.5.5]:162 @@ -515,7 +515,7 @@ public function testAccPortModied() public function testAccFlowModified() { - $device = factory(Device::class)->create(); + $device = Device::factory()->create(); $trapText = "$device->hostname UDP: [$device->ip]:57602->[192.168.5.5]:162 @@ -539,7 +539,7 @@ public function testAccFlowModified() public function testLagModified() { - $device = factory(Device::class)->create(); + $device = Device::factory()->create(); $trapText = "$device->hostname UDP: [$device->ip]:57602->[192.168.5.5]:162 @@ -560,7 +560,7 @@ public function testLagModified() public function testQosFlowPolicerModfied() { - $device = factory(Device::class)->create(); + $device = Device::factory()->create(); $trapText = "$device->hostname UDP: [$device->ip]:57602->[192.168.5.5]:162 @@ -584,7 +584,7 @@ public function testQosFlowPolicerModfied() public function testQosShaperModified() { - $device = factory(Device::class)->create(); + $device = Device::factory()->create(); $trapText = "$device->hostname UDP: [$device->ip]:57602->[192.168.5.5]:162 @@ -606,7 +606,7 @@ public function testQosShaperModified() public function testAccShaper() { - $device = factory(Device::class)->create(); + $device = Device::factory()->create(); $trapText = "$device->hostname UDP: [$device->ip]:57602->[192.168.5.5]:162 diff --git a/tests/Feature/SnmpTraps/AdvaDyingGaspTrapTest.php b/tests/Feature/SnmpTraps/AdvaDyingGaspTrapTest.php index 0dea081ea731..0a18e51a5eee 100644 --- a/tests/Feature/SnmpTraps/AdvaDyingGaspTrapTest.php +++ b/tests/Feature/SnmpTraps/AdvaDyingGaspTrapTest.php @@ -32,7 +32,7 @@ class AdvaDyingGaspTrapTest extends SnmpTrapTestCase { public function testDyingGasp() { - $device = factory(Device::class)->create(); + $device = Device::factory()->create(); $trapText = "$device->hostname UDP: [$device->ip]:57602->[192.168.5.5]:162 diff --git a/tests/Feature/SnmpTraps/AdvaNetThresholdCrossingAlertTest.php b/tests/Feature/SnmpTraps/AdvaNetThresholdCrossingAlertTest.php index bc67335fa6bb..35bff3a7b1d0 100644 --- a/tests/Feature/SnmpTraps/AdvaNetThresholdCrossingAlertTest.php +++ b/tests/Feature/SnmpTraps/AdvaNetThresholdCrossingAlertTest.php @@ -32,7 +32,7 @@ class AdvaNetThresholdCrossingAlertTest extends SnmpTrapTestCase { public function testNetThresholdTrap() { - $device = factory(Device::class)->create(); + $device = Device::factory()->create(); $trapText = "$device->hostname UDP: [$device->ip]:57602->[192.168.5.5]:162 diff --git a/tests/Feature/SnmpTraps/AdvaNetworkElementAlmTrapTest.php b/tests/Feature/SnmpTraps/AdvaNetworkElementAlmTrapTest.php index 6ba8a9f8f8fa..4cdcb2647b54 100644 --- a/tests/Feature/SnmpTraps/AdvaNetworkElementAlmTrapTest.php +++ b/tests/Feature/SnmpTraps/AdvaNetworkElementAlmTrapTest.php @@ -32,7 +32,7 @@ class AdvaNetworkElementAlmTrapTest extends SnmpTrapTestCase { public function testElementAlarmCleared() { - $device = factory(Device::class)->create(); + $device = Device::factory()->create(); $trapText = "$device->hostname UDP: [$device->ip]:57602->[192.168.5.5]:162 @@ -64,7 +64,7 @@ public function testElementAlarmCleared() public function testElementAlarmMinor() { - $device = factory(Device::class)->create(); + $device = Device::factory()->create(); $trapText = "$device->hostname UDP: [$device->ip]:57602->[192.168.5.5]:162 @@ -96,7 +96,7 @@ public function testElementAlarmMinor() public function testElementAlarmMajor() { - $device = factory(Device::class)->create(); + $device = Device::factory()->create(); $trapText = "$device->hostname UDP: [$device->ip]:57602->[192.168.5.5]:162 @@ -128,7 +128,7 @@ public function testElementAlarmMajor() public function testElementAlarmCritical() { - $device = factory(Device::class)->create(); + $device = Device::factory()->create(); $trapText = "$device->hostname UDP: [$device->ip]:57602->[192.168.5.5]:162 diff --git a/tests/Feature/SnmpTraps/AdvaObjectCreationTest.php b/tests/Feature/SnmpTraps/AdvaObjectCreationTest.php index 5378ac2465f6..00d44b55d3b2 100644 --- a/tests/Feature/SnmpTraps/AdvaObjectCreationTest.php +++ b/tests/Feature/SnmpTraps/AdvaObjectCreationTest.php @@ -32,7 +32,7 @@ class AdvaObjectCreationTest extends SnmpTrapTestCase { public function testUserCreation() { - $device = factory(Device::class)->create(); + $device = Device::factory()->create(); $trapText = "$device->hostname UDP: [$device->ip]:57602->[192.168.5.5]:162 @@ -56,7 +56,7 @@ public function testUserCreation() public function testLagCreation() { - $device = factory(Device::class)->create(); + $device = Device::factory()->create(); $trapText = "$device->hostname UDP: [$device->ip]:57602->[192.168.5.5]:162 diff --git a/tests/Feature/SnmpTraps/AdvaObjectDeletionTest.php b/tests/Feature/SnmpTraps/AdvaObjectDeletionTest.php index ba2a3b6879f7..c60088789b6f 100644 --- a/tests/Feature/SnmpTraps/AdvaObjectDeletionTest.php +++ b/tests/Feature/SnmpTraps/AdvaObjectDeletionTest.php @@ -32,7 +32,7 @@ class AdvaObjectDeletionTest extends SnmpTrapTestCase { public function testUserDeletion() { - $device = factory(Device::class)->create(); + $device = Device::factory()->create(); $trapText = "$device->hostname UDP: [$device->ip]:57602->[192.168.5.5]:162 @@ -53,7 +53,7 @@ public function testUserDeletion() public function testFLowDeletion() { - $device = factory(Device::class)->create(); + $device = Device::factory()->create(); $trapText = "$device->hostname UDP: [$device->ip]:57602->[192.168.5.5]:162 @@ -74,7 +74,7 @@ public function testFLowDeletion() public function testLagPortDeletion() { - $device = factory(Device::class)->create(); + $device = Device::factory()->create(); $trapText = "$device->hostname UDP: [$device->ip]:57602->[192.168.5.5]:162 @@ -95,7 +95,7 @@ public function testLagPortDeletion() public function testLagDeletion() { - $device = factory(Device::class)->create(); + $device = Device::factory()->create(); $trapText = "$device->hostname UDP: [$device->ip]:57602->[192.168.5.5]:162 diff --git a/tests/Feature/SnmpTraps/AdvaStateChangeTrapTest.php b/tests/Feature/SnmpTraps/AdvaStateChangeTrapTest.php index 4ba3a2ad7f4d..666cd94686af 100644 --- a/tests/Feature/SnmpTraps/AdvaStateChangeTrapTest.php +++ b/tests/Feature/SnmpTraps/AdvaStateChangeTrapTest.php @@ -32,7 +32,7 @@ class AdvaStateChangeTrapTest extends SnmpTrapTestCase { public function testAccessPortChg() { - $device = factory(Device::class)->create(); + $device = Device::factory()->create(); $trapText = "$device->hostname UDP: [$device->ip]:57602->[192.168.5.5]:162 @@ -56,7 +56,7 @@ public function testAccessPortChg() public function testNetworkPortChg() { - $device = factory(Device::class)->create(); + $device = Device::factory()->create(); $trapText = "$device->hostname UDP: [$device->ip]:57602->[192.168.5.5]:162 @@ -80,7 +80,7 @@ public function testNetworkPortChg() public function testFlowStateChg() { - $device = factory(Device::class)->create(); + $device = Device::factory()->create(); $trapText = "$device->hostname UDP: [$device->ip]:57602->[192.168.5.5]:162 diff --git a/tests/Feature/SnmpTraps/AdvaSysAlmTrapTest.php b/tests/Feature/SnmpTraps/AdvaSysAlmTrapTest.php index 296e5b2093aa..2320412ee983 100644 --- a/tests/Feature/SnmpTraps/AdvaSysAlmTrapTest.php +++ b/tests/Feature/SnmpTraps/AdvaSysAlmTrapTest.php @@ -32,7 +32,7 @@ class AdvaSysAlmTrapTest extends SnmpTrapTestCase { public function testCriticalAlarm() { - $device = factory(Device::class)->create(); + $device = Device::factory()->create(); $trapText = "$device->hostname UDP: [$device->ip]:57602->[192.168.5.5]:162 @@ -57,7 +57,7 @@ public function testCriticalAlarm() public function testMajorAlarm() { - $device = factory(Device::class)->create(); + $device = Device::factory()->create(); $trapText = "$device->hostname UDP: [$device->ip]:57602->[192.168.5.5]:162 @@ -82,7 +82,7 @@ public function testMajorAlarm() public function testMinorAlarm() { - $device = factory(Device::class)->create(); + $device = Device::factory()->create(); $trapText = "$device->hostname UDP: [$device->ip]:57602->[192.168.5.5]:162 @@ -107,7 +107,7 @@ public function testMinorAlarm() public function testClearedAlarm() { - $device = factory(Device::class)->create(); + $device = Device::factory()->create(); $trapText = "$device->hostname UDP: [$device->ip]:57602->[192.168.5.5]:162 diff --git a/tests/Feature/SnmpTraps/ApcPduOutletTest.php b/tests/Feature/SnmpTraps/ApcPduOutletTest.php index 5eecbeda8dc5..12236eeb37d8 100644 --- a/tests/Feature/SnmpTraps/ApcPduOutletTest.php +++ b/tests/Feature/SnmpTraps/ApcPduOutletTest.php @@ -30,7 +30,7 @@ class ApcPduOutletTest extends SnmpTrapTestCase { public function testOutletOff() { - $device = factory(Device::class)->create(); + $device = Device::factory()->create(); $trapText = "$device->hostname UDP: [$device->ip]:161->[192.168.5.5]:162 @@ -49,7 +49,7 @@ public function testOutletOff() public function testOutletOn() { - $device = factory(Device::class)->create(); + $device = Device::factory()->create(); $trapText = "$device->hostname UDP: [$device->ip]:161->[192.168.5.5]:162 @@ -68,7 +68,7 @@ public function testOutletOn() public function testOutletReboot() { - $device = factory(Device::class)->create(); + $device = Device::factory()->create(); $trapText = "$device->hostname UDP: [$device->ip]:161->[192.168.5.5]:162 diff --git a/tests/Feature/SnmpTraps/BgpTrapTest.php b/tests/Feature/SnmpTraps/BgpTrapTest.php index c6d8b5a7e17a..faa05fb225a7 100644 --- a/tests/Feature/SnmpTraps/BgpTrapTest.php +++ b/tests/Feature/SnmpTraps/BgpTrapTest.php @@ -33,8 +33,8 @@ class BgpTrapTest extends SnmpTrapTestCase { public function testBgpUp() { - $device = factory(Device::class)->create(); - $bgppeer = factory(BgpPeer::class)->make(['bgpPeerState' => 'idle']); + $device = Device::factory()->create(); + $bgppeer = BgpPeer::factory()->make(['bgpPeerState' => 'idle']); $device->bgppeers()->save($bgppeer); $trapText = "$device->hostname @@ -56,8 +56,8 @@ public function testBgpUp() public function testBgpDown() { - $device = factory(Device::class)->create(); - $bgppeer = factory(BgpPeer::class)->make(['bgpPeerState' => 'established']); + $device = Device::factory()->create(); + $bgppeer = BgpPeer::factory()->make(['bgpPeerState' => 'established']); $device->bgppeers()->save($bgppeer); $trapText = "$device->hostname diff --git a/tests/Feature/SnmpTraps/CommonTrapTest.php b/tests/Feature/SnmpTraps/CommonTrapTest.php index 184221a312a6..15bed9e19bc0 100644 --- a/tests/Feature/SnmpTraps/CommonTrapTest.php +++ b/tests/Feature/SnmpTraps/CommonTrapTest.php @@ -43,10 +43,10 @@ public function testGarbage() public function testFindByIp() { - $device = factory(Device::class)->create(); - $port = factory(Port::class)->make(); + $device = Device::factory()->create(); + $port = Port::factory()->make(); $device->ports()->save($port); - $ipv4 = factory(Ipv4Address::class)->make(); // test ipv4 lookup of device + $ipv4 = Ipv4Address::factory()->make(); // test ipv4 lookup of device $port->ipv4()->save($ipv4); $trapText = "something @@ -69,7 +69,7 @@ public function testFindByIp() public function testGenericTrap() { - $device = factory(Device::class)->create(); + $device = Device::factory()->create(); $trapText = "$device->hostname UDP: [$device->ip]:64610->[192.168.5.5]:162 @@ -89,7 +89,7 @@ public function testGenericTrap() public function testAuthorization() { - $device = factory(Device::class)->create(); + $device = Device::factory()->create(); $trapText = "$device->hostname UDP: [$device->ip]:64610->[192.168.5.5]:162 @@ -107,7 +107,7 @@ public function testAuthorization() public function testBridgeNewRoot() { - $device = factory(Device::class)->create(); + $device = Device::factory()->create(); $trapText = "$device->hostname UDP: [$device->ip]:44298->[192.168.5.5]:162 @@ -125,7 +125,7 @@ public function testBridgeNewRoot() public function testBridgeTopologyChanged() { - $device = factory(Device::class)->create(); + $device = Device::factory()->create(); $trapText = "$device->hostname UDP: [$device->ip]:44298->[192.168.5.5]:162 @@ -143,7 +143,7 @@ public function testBridgeTopologyChanged() public function testColdStart() { - $device = factory(Device::class)->create(); + $device = Device::factory()->create(); $trapText = "$device->hostname UDP: [$device->ip]:44298->[192.168.5.5]:162 @@ -161,7 +161,7 @@ public function testColdStart() public function testWarmStart() { - $device = factory(Device::class)->create(); + $device = Device::factory()->create(); $trapText = "$device->hostname UDP: [$device->ip]:44298->[192.168.5.5]:162 @@ -179,7 +179,7 @@ public function testWarmStart() public function testEntityDatabaseChanged() { - $device = factory(Device::class)->create(); + $device = Device::factory()->create(); $trapText = "$device->hostname UDP: [$device->ip]:44298->[192.168.5.5]:162 diff --git a/tests/Feature/SnmpTraps/CyberPowerTrapsTest.php b/tests/Feature/SnmpTraps/CyberPowerTrapsTest.php index 75ec70cad8ba..6343337d4a60 100644 --- a/tests/Feature/SnmpTraps/CyberPowerTrapsTest.php +++ b/tests/Feature/SnmpTraps/CyberPowerTrapsTest.php @@ -34,8 +34,8 @@ class CyberPowerTrapsTest extends SnmpTrapTestCase { public function testCpUpsOverload() { - $device = factory(Device::class)->create(); - $ipv4 = factory(Ipv4Address::class)->make(); + $device = Device::factory()->create(); + $ipv4 = Ipv4Address::factory()->make(); $trapText = "$device->hostname UDP: [$device->ip]:161->[192.168.5.5]:162 @@ -55,8 +55,8 @@ public function testCpUpsOverload() public function testCpUpsDiagFailed() { - $device = factory(Device::class)->create(); - $ipv4 = factory(Ipv4Address::class)->make(); + $device = Device::factory()->create(); + $ipv4 = Ipv4Address::factory()->make(); $trapText = "$device->hostname UDP: [$device->ip]:161->[192.168.5.5]:162 @@ -76,8 +76,8 @@ public function testCpUpsDiagFailed() public function testCpUpsDischarged() { - $device = factory(Device::class)->create(); - $ipv4 = factory(Ipv4Address::class)->make(); + $device = Device::factory()->create(); + $ipv4 = Ipv4Address::factory()->make(); $trapText = "$device->hostname UDP: [$device->ip]:161->[192.168.5.5]:162 @@ -97,8 +97,8 @@ public function testCpUpsDischarged() public function testCpUpsOnBattery() { - $device = factory(Device::class)->create(); - $ipv4 = factory(Ipv4Address::class)->make(); + $device = Device::factory()->create(); + $ipv4 = Ipv4Address::factory()->make(); $trapText = "$device->hostname UDP: [$device->ip]:161->[192.168.5.5]:162 @@ -118,8 +118,8 @@ public function testCpUpsOnBattery() public function testCpLowBattery() { - $device = factory(Device::class)->create(); - $ipv4 = factory(Ipv4Address::class)->make(); + $device = Device::factory()->create(); + $ipv4 = Ipv4Address::factory()->make(); $trapText = "$device->hostname UDP: [$device->ip]:161->[192.168.5.5]:162 @@ -139,8 +139,8 @@ public function testCpLowBattery() public function testCpPowerRestored() { - $device = factory(Device::class)->create(); - $ipv4 = factory(Ipv4Address::class)->make(); + $device = Device::factory()->create(); + $ipv4 = Ipv4Address::factory()->make(); $trapText = "$device->hostname UDP: [$device->ip]:161->[192.168.5.5]:162 @@ -160,8 +160,8 @@ public function testCpPowerRestored() public function testCpUpsDiagPassed() { - $device = factory(Device::class)->create(); - $ipv4 = factory(Ipv4Address::class)->make(); + $device = Device::factory()->create(); + $ipv4 = Ipv4Address::factory()->make(); $trapText = "$device->hostname UDP: [$device->ip]:161->[192.168.5.5]:162 @@ -181,8 +181,8 @@ public function testCpUpsDiagPassed() public function testCpRtnLowBattery() { - $device = factory(Device::class)->create(); - $ipv4 = factory(Ipv4Address::class)->make(); + $device = Device::factory()->create(); + $ipv4 = Ipv4Address::factory()->make(); $trapText = "$device->hostname UDP: [$device->ip]:161->[192.168.5.5]:162 @@ -202,8 +202,8 @@ public function testCpRtnLowBattery() public function testCpUpsTurnedOff() { - $device = factory(Device::class)->create(); - $ipv4 = factory(Ipv4Address::class)->make(); + $device = Device::factory()->create(); + $ipv4 = Ipv4Address::factory()->make(); $trapText = "$device->hostname UDP: [$device->ip]:161->[192.168.5.5]:162 @@ -223,8 +223,8 @@ public function testCpUpsTurnedOff() public function testCpUpsSleeping() { - $device = factory(Device::class)->create(); - $ipv4 = factory(Ipv4Address::class)->make(); + $device = Device::factory()->create(); + $ipv4 = Ipv4Address::factory()->make(); $trapText = "$device->hostname UDP: [$device->ip]:161->[192.168.5.5]:162 @@ -244,8 +244,8 @@ public function testCpUpsSleeping() public function testCpUpsWokeUp() { - $device = factory(Device::class)->create(); - $ipv4 = factory(Ipv4Address::class)->make(); + $device = Device::factory()->create(); + $ipv4 = Ipv4Address::factory()->make(); $trapText = "$device->hostname UDP: [$device->ip]:161->[192.168.5.5]:162 @@ -265,8 +265,8 @@ public function testCpUpsWokeUp() public function testCpUpsRebootStarted() { - $device = factory(Device::class)->create(); - $ipv4 = factory(Ipv4Address::class)->make(); + $device = Device::factory()->create(); + $ipv4 = Ipv4Address::factory()->make(); $trapText = "$device->hostname UDP: [$device->ip]:161->[192.168.5.5]:162 @@ -286,8 +286,8 @@ public function testCpUpsRebootStarted() public function testCpUpsOverTemp() { - $device = factory(Device::class)->create(); - $ipv4 = factory(Ipv4Address::class)->make(); + $device = Device::factory()->create(); + $ipv4 = Ipv4Address::factory()->make(); $trapText = "$device->hostname UDP: [$device->ip]:161->[192.168.5.5]:162 @@ -307,8 +307,8 @@ public function testCpUpsOverTemp() public function testCpRtnOverTemp() { - $device = factory(Device::class)->create(); - $ipv4 = factory(Ipv4Address::class)->make(); + $device = Device::factory()->create(); + $ipv4 = Ipv4Address::factory()->make(); $trapText = "$device->hostname UDP: [$device->ip]:161->[192.168.5.5]:162 @@ -328,8 +328,8 @@ public function testCpRtnOverTemp() public function testCpRtOverLoad() { - $device = factory(Device::class)->create(); - $ipv4 = factory(Ipv4Address::class)->make(); + $device = Device::factory()->create(); + $ipv4 = Ipv4Address::factory()->make(); $trapText = "$device->hostname UDP: [$device->ip]:161->[192.168.5.5]:162 @@ -349,8 +349,8 @@ public function testCpRtOverLoad() public function testCpRtnDischarged() { - $device = factory(Device::class)->create(); - $ipv4 = factory(Ipv4Address::class)->make(); + $device = Device::factory()->create(); + $ipv4 = Ipv4Address::factory()->make(); $trapText = "$device->hostname UDP: [$device->ip]:161->[192.168.5.5]:162 @@ -370,8 +370,8 @@ public function testCpRtnDischarged() public function testCpUpsChargerFailure() { - $device = factory(Device::class)->create(); - $ipv4 = factory(Ipv4Address::class)->make(); + $device = Device::factory()->create(); + $ipv4 = Ipv4Address::factory()->make(); $trapText = "$device->hostname UDP: [$device->ip]:161->[192.168.5.5]:162 @@ -391,8 +391,8 @@ public function testCpUpsChargerFailure() public function testCpRtnChargerFailure() { - $device = factory(Device::class)->create(); - $ipv4 = factory(Ipv4Address::class)->make(); + $device = Device::factory()->create(); + $ipv4 = Ipv4Address::factory()->make(); $trapText = "$device->hostname UDP: [$device->ip]:161->[192.168.5.5]:162 @@ -412,8 +412,8 @@ public function testCpRtnChargerFailure() public function testCpUpsBatteryNotPresent() { - $device = factory(Device::class)->create(); - $ipv4 = factory(Ipv4Address::class)->make(); + $device = Device::factory()->create(); + $ipv4 = Ipv4Address::factory()->make(); $trapText = "$device->hostname UDP: [$device->ip]:161->[192.168.5.5]:162 diff --git a/tests/Feature/SnmpTraps/FgTrapAvOversizeTest.php b/tests/Feature/SnmpTraps/FgTrapAvOversizeTest.php index 9a0ed72e3058..b5d201fee5e5 100644 --- a/tests/Feature/SnmpTraps/FgTrapAvOversizeTest.php +++ b/tests/Feature/SnmpTraps/FgTrapAvOversizeTest.php @@ -33,7 +33,7 @@ class FgTrapAvOversizeTest extends SnmpTrapTestCase { public function testAvOversize() { - $device = factory(Device::class)->create(); + $device = Device::factory()->create(); $trapText = "$device->hostname UDP: [$device->ip]:57602->[192.168.5.5]:162 diff --git a/tests/Feature/SnmpTraps/FgTrapIpsTest.php b/tests/Feature/SnmpTraps/FgTrapIpsTest.php index cda8e06248fc..3d289a97ea91 100644 --- a/tests/Feature/SnmpTraps/FgTrapIpsTest.php +++ b/tests/Feature/SnmpTraps/FgTrapIpsTest.php @@ -34,8 +34,8 @@ class FgTrapIpsTest extends SnmpTrapTestCase { public function testIpsAnomaly() { - $device = factory(Device::class)->create(); - $ipv4 = factory(Ipv4Address::class)->make(); + $device = Device::factory()->create(); + $ipv4 = Ipv4Address::factory()->make(); $trapText = "$device->hostname UDP: [$device->ip]:57602->[192.168.5.5]:162 @@ -56,7 +56,7 @@ public function testIpsAnomaly() public function testIpsPkgUdate() { - $device = factory(Device::class)->create(); + $device = Device::factory()->create(); $trapText = "$device->hostname UDP: [$device->ip]:57602->[192.168.5.5]:162 @@ -74,8 +74,8 @@ public function testIpsPkgUdate() public function testIpsSignature() { - $device = factory(Device::class)->create(); - $ipv4 = factory(Ipv4Address::class)->make(); + $device = Device::factory()->create(); + $ipv4 = Ipv4Address::factory()->make(); $trapText = "$device->hostname UDP: [$device->ip]:57602->[192.168.5.5]:162 diff --git a/tests/Feature/SnmpTraps/FgTrapVpnTunTest.php b/tests/Feature/SnmpTraps/FgTrapVpnTunTest.php index f6bbe10ef2bc..46e2b75e28c0 100644 --- a/tests/Feature/SnmpTraps/FgTrapVpnTunTest.php +++ b/tests/Feature/SnmpTraps/FgTrapVpnTunTest.php @@ -33,8 +33,8 @@ class FgTrapVpnTunTest extends SnmpTrapTestCase { public function testVpnTunDown() { - $device = factory(Device::class)->create(); - $ipv4 = factory(Ipv4Address::class)->make(); + $device = Device::factory()->create(); + $ipv4 = Ipv4Address::factory()->make(); $trapText = "$device->hostname UDP: [$device->ip]:57602->[192.168.5.5]:162 @@ -55,8 +55,8 @@ public function testVpnTunDown() public function testVpnTunUp() { - $device = factory(Device::class)->create(); - $ipv4 = factory(Ipv4Address::class)->make(); + $device = Device::factory()->create(); + $ipv4 = Ipv4Address::factory()->make(); $trapText = "$device->hostname UDP: [$device->ip]:57602->[192.168.5.5]:162 diff --git a/tests/Feature/SnmpTraps/FmTrapLogRateThresholdTest.php b/tests/Feature/SnmpTraps/FmTrapLogRateThresholdTest.php index c37752f8f769..18e922cba1b7 100644 --- a/tests/Feature/SnmpTraps/FmTrapLogRateThresholdTest.php +++ b/tests/Feature/SnmpTraps/FmTrapLogRateThresholdTest.php @@ -33,7 +33,7 @@ class FmTrapLogRateThresholdTest extends SnmpTrapTestCase { public function testAvOversize() { - $device = factory(Device::class)->create(); + $device = Device::factory()->create(); $trapText = "$device->hostname UDP: [$device->ip]:57602->[192.168.5.5]:162 diff --git a/tests/Feature/SnmpTraps/JnxBgpM2Test.php b/tests/Feature/SnmpTraps/JnxBgpM2Test.php index e0b3158e2a43..45b1fd751da3 100644 --- a/tests/Feature/SnmpTraps/JnxBgpM2Test.php +++ b/tests/Feature/SnmpTraps/JnxBgpM2Test.php @@ -35,7 +35,7 @@ class JnxBgpM2Test extends SnmpTrapTestCase { public function testBgpPeerUnknown() { - $device = factory(Device::class)->create(); + $device = Device::factory()->create(); $trapText = "$device->hostname UDP: [$device->ip]:64610->[192.168.5.5]:162 @@ -62,8 +62,8 @@ public function testBgpPeerUnknown() public function testBgpBackwardTrasition() { - $device = factory(Device::class)->create(); - $bgppeer = factory(BgpPeer::class)->make(['bgpPeerIdentifier' => '2001:d88:1::2', 'bgpPeerState' => 'established']); + $device = Device::factory()->create(); + $bgppeer = BgpPeer::factory()->make(['bgpPeerIdentifier' => '2001:d88:1::2', 'bgpPeerState' => 'established']); $device->bgppeers()->save($bgppeer); $trapText = "$device->hostname @@ -91,8 +91,8 @@ public function testBgpBackwardTrasition() public function testBgpEstablished() { - $device = factory(Device::class)->create(); - $bgppeer = factory(BgpPeer::class)->make(['bgpPeerIdentifier' => '2001:d88:1::2', 'bgpPeerState' => 'idle']); + $device = Device::factory()->create(); + $bgppeer = BgpPeer::factory()->make(['bgpPeerIdentifier' => '2001:d88:1::2', 'bgpPeerState' => 'idle']); $device->bgppeers()->save($bgppeer); $trapText = "$device->hostname diff --git a/tests/Feature/SnmpTraps/JnxCmCfgChangeTest.php b/tests/Feature/SnmpTraps/JnxCmCfgChangeTest.php index 642ec7d1af3f..64dbc160c680 100644 --- a/tests/Feature/SnmpTraps/JnxCmCfgChangeTest.php +++ b/tests/Feature/SnmpTraps/JnxCmCfgChangeTest.php @@ -34,7 +34,7 @@ class JnxCmCfgChangeTest extends SnmpTrapTestCase { public function testConfigChangeTrap() { - $device = factory(Device::class)->create(); + $device = Device::factory()->create(); $trapText = "$device->hostname UDP: [$device->ip]:64610->[192.168.5.5]:162 @@ -55,7 +55,7 @@ public function testConfigChangeTrap() public function testConfigRollbackTrap() { - $device = factory(Device::class)->create(); + $device = Device::factory()->create(); $trapText = "$device->hostname UDP: [$device->ip]:64610->[192.168.5.5]:162 diff --git a/tests/Feature/SnmpTraps/JnxDomAlarmTest.php b/tests/Feature/SnmpTraps/JnxDomAlarmTest.php index 955bd9ea7e35..8b212e38eb39 100644 --- a/tests/Feature/SnmpTraps/JnxDomAlarmTest.php +++ b/tests/Feature/SnmpTraps/JnxDomAlarmTest.php @@ -35,8 +35,8 @@ class JnxDomAlarmTest extends SnmpTrapTestCase { public function testJnxDomAlarmSetTrap() { - $device = factory(Device::class)->create(); - $port = factory(Port::class)->make(); + $device = Device::factory()->create(); + $port = Port::factory()->make(); $trapText = "$device->hostname UDP: [$device->ip]:64610->[192.168.5.5]:162 @@ -57,8 +57,8 @@ public function testJnxDomAlarmSetTrap() public function testJnxDomAlarmClearTrap() { - $device = factory(Device::class)->create(); - $port = factory(Port::class)->make(); + $device = Device::factory()->create(); + $port = Port::factory()->make(); $trapText = "$device->hostname UDP: [$device->ip]:64610->[192.168.5.5]:162 diff --git a/tests/Feature/SnmpTraps/JnxDomLaneAlarmTest.php b/tests/Feature/SnmpTraps/JnxDomLaneAlarmTest.php index c009d48b4e6e..25bd21234312 100644 --- a/tests/Feature/SnmpTraps/JnxDomLaneAlarmTest.php +++ b/tests/Feature/SnmpTraps/JnxDomLaneAlarmTest.php @@ -35,8 +35,8 @@ class JnxDomLaneAlarmTest extends SnmpTrapTestCase { public function testJnxDomLaneAlarmSetTrap() { - $device = factory(Device::class)->create(); - $port = factory(Port::class)->make(['ifAdminStatus' => 'up', 'ifOperStatus' => 'up']); + $device = Device::factory()->create(); + $port = Port::factory()->make(['ifAdminStatus' => 'up', 'ifOperStatus' => 'up']); $device->ports()->save($port); $trapText = "$device->hostname @@ -61,8 +61,8 @@ public function testJnxDomLaneAlarmSetTrap() public function testJnxDomLaneAlarmClearedTrap() { - $device = factory(Device::class)->create(); - $port = factory(Port::class)->make(['ifAdminStatus' => 'up', 'ifOperStatus' => 'up']); + $device = Device::factory()->create(); + $port = Port::factory()->make(['ifAdminStatus' => 'up', 'ifOperStatus' => 'up']); $device->ports()->save($port); $trapText = "$device->hostname diff --git a/tests/Feature/SnmpTraps/JnxLdpLspTest.php b/tests/Feature/SnmpTraps/JnxLdpLspTest.php index e092ee641578..3773246a31d7 100644 --- a/tests/Feature/SnmpTraps/JnxLdpLspTest.php +++ b/tests/Feature/SnmpTraps/JnxLdpLspTest.php @@ -35,8 +35,8 @@ class JnxLdpLspTest extends SnmpTrapTestCase { public function testLdpLspDownTrap() { - $device = factory(Device::class)->create(); - $ipv4 = factory(Ipv4Address::class)->make(); + $device = Device::factory()->create(); + $ipv4 = Ipv4Address::factory()->make(); $trapText = "$device->hostname UDP: [$device->ip]:64610->[192.168.5.5]:162 @@ -58,8 +58,8 @@ public function testLdpLspDownTrap() public function testLdpLspUpTrap() { - $device = factory(Device::class)->create(); - $ipv4 = factory(Ipv4Address::class)->make(); + $device = Device::factory()->create(); + $ipv4 = Ipv4Address::factory()->make(); $trapText = "$device->hostname UDP: [$device->ip]:64610->[192.168.5.5]:162 diff --git a/tests/Feature/SnmpTraps/JnxLdpSesTest.php b/tests/Feature/SnmpTraps/JnxLdpSesTest.php index 47533e295b9d..8fa36bed3184 100644 --- a/tests/Feature/SnmpTraps/JnxLdpSesTest.php +++ b/tests/Feature/SnmpTraps/JnxLdpSesTest.php @@ -35,8 +35,8 @@ class JnxLdpSesTest extends SnmpTrapTestCase { public function testJnxLdpSesDownTrap() { - $device = factory(Device::class)->create(); - $port = factory(Port::class)->make(['ifAdminStatus' => 'up', 'ifOperStatus' => 'up']); + $device = Device::factory()->create(); + $port = Port::factory()->make(['ifAdminStatus' => 'up', 'ifOperStatus' => 'up']); $device->ports()->save($port); $trapText = "$device->hostname @@ -59,8 +59,8 @@ public function testJnxLdpSesDownTrap() public function testJnxLdpSesUpTrap() { - $device = factory(Device::class)->create(); - $port = factory(Port::class)->make(['ifAdminStatus' => 'up', 'ifOperStatus' => 'up']); + $device = Device::factory()->create(); + $port = Port::factory()->make(['ifAdminStatus' => 'up', 'ifOperStatus' => 'up']); $device->ports()->save($port); $trapText = "$device->hostname diff --git a/tests/Feature/SnmpTraps/JnxPowerSupplyTest.php b/tests/Feature/SnmpTraps/JnxPowerSupplyTest.php index 8a8ad772d8e1..9d46c70de83e 100644 --- a/tests/Feature/SnmpTraps/JnxPowerSupplyTest.php +++ b/tests/Feature/SnmpTraps/JnxPowerSupplyTest.php @@ -34,7 +34,7 @@ class JnxPowerSupplyTest extends SnmpTrapTestCase { public function testJnxPowerSupplyFailureTrap() { - $device = factory(Device::class)->create(); + $device = Device::factory()->create(); $trapText = "$device->hostname UDP: [$device->ip]:49716->[10.0.0.1]:162 @@ -57,7 +57,7 @@ public function testJnxPowerSupplyFailureTrap() public function testJnxPowerSupplyOkTrap() { - $device = factory(Device::class)->create(); + $device = Device::factory()->create(); $trapText = "$device->hostname UDP: [$device->ip]:49716->[10.0.0.1]:162 diff --git a/tests/Feature/SnmpTraps/JnxVpnIfTest.php b/tests/Feature/SnmpTraps/JnxVpnIfTest.php index 77cc7d58ddab..72e413457ffb 100644 --- a/tests/Feature/SnmpTraps/JnxVpnIfTest.php +++ b/tests/Feature/SnmpTraps/JnxVpnIfTest.php @@ -36,8 +36,8 @@ class JnxVpnIfTest extends SnmpTrapTestCase { public function testVpnIfDown() { - $device = factory(Device::class)->create(); - $port = factory(Port::class)->make(['ifAdminStatus' => 'up', 'ifOperStatus' => 'up']); + $device = Device::factory()->create(); + $port = Port::factory()->make(['ifAdminStatus' => 'up', 'ifOperStatus' => 'up']); $device->ports()->save($port); $trapText = "$device->hostname @@ -58,8 +58,8 @@ public function testVpnIfDown() public function testVpnIfUp() { - $device = factory(Device::class)->create(); - $port = factory(Port::class)->make(['ifAdminStatus' => 'up', 'ifOperStatus' => 'up']); + $device = Device::factory()->create(); + $port = Port::factory()->make(['ifAdminStatus' => 'up', 'ifOperStatus' => 'up']); $device->ports()->save($port); $trapText = "$device->hostname diff --git a/tests/Feature/SnmpTraps/JnxVpnPwTest.php b/tests/Feature/SnmpTraps/JnxVpnPwTest.php index a66b3b043962..c88719129269 100644 --- a/tests/Feature/SnmpTraps/JnxVpnPwTest.php +++ b/tests/Feature/SnmpTraps/JnxVpnPwTest.php @@ -36,8 +36,8 @@ class JnxVpnPwTest extends SnmpTrapTestCase { public function testVpnPwDown() { - $device = factory(Device::class)->create(); - $port = factory(Port::class)->make(['ifAdminStatus' => 'up', 'ifOperStatus' => 'up']); + $device = Device::factory()->create(); + $port = Port::factory()->make(['ifAdminStatus' => 'up', 'ifOperStatus' => 'up']); $device->ports()->save($port); $trapText = "$device->hostname @@ -58,8 +58,8 @@ public function testVpnPwDown() public function testVpnPwUp() { - $device = factory(Device::class)->create(); - $port = factory(Port::class)->make(['ifAdminStatus' => 'up', 'ifOperStatus' => 'up']); + $device = Device::factory()->create(); + $port = Port::factory()->make(['ifAdminStatus' => 'up', 'ifOperStatus' => 'up']); $device->ports()->save($port); $trapText = "$device->hostname diff --git a/tests/Feature/SnmpTraps/MgmtTrapNmsAlarmTest.php b/tests/Feature/SnmpTraps/MgmtTrapNmsAlarmTest.php index 193355f48669..3a8ff7a96b16 100644 --- a/tests/Feature/SnmpTraps/MgmtTrapNmsAlarmTest.php +++ b/tests/Feature/SnmpTraps/MgmtTrapNmsAlarmTest.php @@ -37,7 +37,7 @@ class MgmtTrapNmsAlarmTest extends SnmpTrapTestCase { public function testAlarmClear() { - $device = factory(Device::class)->create(); + $device = Device::factory()->create(); $alarm = self::genEkiAlarm(); $slotNum = $alarm['slotNum']; $srcPm = $alarm['srcPm']; @@ -74,7 +74,7 @@ public function testAlarmClear() //Test alarm with addtional text supplied. public function testAlarmAddText() { - $device = factory(Device::class)->create(); + $device = Device::factory()->create(); $alarm = self::genEkiAlarm(); $slotNum = $alarm['slotNum']; $srcPm = $alarm['srcPm']; @@ -112,7 +112,7 @@ public function testAlarmAddText() //Alarm is on a specific port public function testAlarmPort() { - $device = factory(Device::class)->create(); + $device = Device::factory()->create(); $alarm = self::genEkiAlarm(); $slotNum = $alarm['slotNum']; $srcPm = $alarm['srcPm']; diff --git a/tests/Feature/SnmpTraps/MgmtTrapNmsEventTest.php b/tests/Feature/SnmpTraps/MgmtTrapNmsEventTest.php index e281c0fff435..0fbcea6cf934 100644 --- a/tests/Feature/SnmpTraps/MgmtTrapNmsEventTest.php +++ b/tests/Feature/SnmpTraps/MgmtTrapNmsEventTest.php @@ -37,7 +37,7 @@ class MgmtTrapNmsEventTest extends SnmpTrapTestCase { public function testEvent() { - $device = factory(Device::class)->create(); + $device = Device::factory()->create(); $alarm = self::genEkiEvent(); $slotNum = $alarm['slotNum']; $srcPm = $alarm['srcPm']; @@ -73,7 +73,7 @@ public function testEvent() //Test alarm with addtional text supplied. public function testEventAddText() { - $device = factory(Device::class)->create(); + $device = Device::factory()->create(); $alarm = self::genEkiEvent(); $slotNum = $alarm['slotNum']; $srcPm = $alarm['srcPm']; @@ -110,7 +110,7 @@ public function testEventAddText() //Event trap on a specific port public function testEventPort() { - $device = factory(Device::class)->create(); + $device = Device::factory()->create(); $alarm = self::genEkiEvent(); $slotNum = $alarm['slotNum']; $srcPm = $alarm['srcPm']; diff --git a/tests/Feature/SnmpTraps/NetgearFailedUserLoginTest.php b/tests/Feature/SnmpTraps/NetgearFailedUserLoginTest.php index c60ff249d554..910d206d71a3 100644 --- a/tests/Feature/SnmpTraps/NetgearFailedUserLoginTest.php +++ b/tests/Feature/SnmpTraps/NetgearFailedUserLoginTest.php @@ -30,7 +30,7 @@ class NetgearFailedUserLoginTest extends SnmpTrapTestCase { public function testManagedSeries() { - $device = factory(Device::class)->create(); + $device = Device::factory()->create(); $trapText = "$device->hostname UDP: [$device->ip]:44298->[192.168.5.5]:162 @@ -46,7 +46,7 @@ public function testManagedSeries() public function testSmartSeries() { - $device = factory(Device::class)->create(); + $device = Device::factory()->create(); $trapText = "$device->hostname UDP: [$device->ip]:1026->[192.168.5.5]:162 diff --git a/tests/Feature/SnmpTraps/OspfIfStateChangeTest.php b/tests/Feature/SnmpTraps/OspfIfStateChangeTest.php index 2cd651233e2d..72f671380e56 100644 --- a/tests/Feature/SnmpTraps/OspfIfStateChangeTest.php +++ b/tests/Feature/SnmpTraps/OspfIfStateChangeTest.php @@ -39,12 +39,12 @@ class OspfIfStateChangeTest extends SnmpTrapTestCase //Test OSPF interface state down public function testOspfIfDown() { - $device = factory(Device::class)->create(); - $port = factory(Port::class)->make(['ifAdminStatus' => 'up', 'ifOperStatus' => 'up']); + $device = Device::factory()->create(); + $port = Port::factory()->make(['ifAdminStatus' => 'up', 'ifOperStatus' => 'up']); $device->ports()->save($port); - $ospfIf = factory(OspfPort::class)->make(['port_id' => $port->port_id, 'ospfIfState' => 'designatedRouter']); + $ospfIf = OspfPort::factory()->make(['port_id' => $port->port_id, 'ospfIfState' => 'designatedRouter']); $device->ospfPorts()->save($ospfIf); $trapText = "$device->hostname @@ -72,12 +72,12 @@ public function testOspfIfDown() //Test OSPF interface state DesignatedRouter public function testOspfIfDr() { - $device = factory(Device::class)->create(); - $port = factory(Port::class)->make(['ifAdminStatus' => 'up', 'ifOperStatus' => 'up']); + $device = Device::factory()->create(); + $port = Port::factory()->make(['ifAdminStatus' => 'up', 'ifOperStatus' => 'up']); $device->ports()->save($port); - $ospfIf = factory(OspfPort::class)->make(['port_id' => $port->port_id, 'ospfIfState' => 'down']); + $ospfIf = OspfPort::factory()->make(['port_id' => $port->port_id, 'ospfIfState' => 'down']); $device->ospfPorts()->save($ospfIf); $trapText = "$device->hostname @@ -105,12 +105,12 @@ public function testOspfIfDr() //Test OSPF interface state backupDesignatedRouter public function testOspfIfBdr() { - $device = factory(Device::class)->create(); - $port = factory(Port::class)->make(['ifAdminStatus' => 'up', 'ifOperStatus' => 'up']); + $device = Device::factory()->create(); + $port = Port::factory()->make(['ifAdminStatus' => 'up', 'ifOperStatus' => 'up']); $device->ports()->save($port); - $ospfIf = factory(OspfPort::class)->make(['port_id' => $port->port_id, 'ospfIfState' => 'down']); + $ospfIf = OspfPort::factory()->make(['port_id' => $port->port_id, 'ospfIfState' => 'down']); $device->ospfPorts()->save($ospfIf); $trapText = "$device->hostname @@ -138,12 +138,12 @@ public function testOspfIfBdr() //Test OSPF interface state otherDesignatedRouter public function testOspfIfOdr() { - $device = factory(Device::class)->create(); - $port = factory(Port::class)->make(['ifAdminStatus' => 'up', 'ifOperStatus' => 'up']); + $device = Device::factory()->create(); + $port = Port::factory()->make(['ifAdminStatus' => 'up', 'ifOperStatus' => 'up']); $device->ports()->save($port); - $ospfIf = factory(OspfPort::class)->make(['port_id' => $port->port_id, 'ospfIfState' => 'down']); + $ospfIf = OspfPort::factory()->make(['port_id' => $port->port_id, 'ospfIfState' => 'down']); $device->ospfPorts()->save($ospfIf); $trapText = "$device->hostname @@ -171,12 +171,12 @@ public function testOspfIfOdr() //Test OSPF interface state pointToPoint public function testOspfIfPtp() { - $device = factory(Device::class)->create(); - $port = factory(Port::class)->make(['ifAdminStatus' => 'up', 'ifOperStatus' => 'up']); + $device = Device::factory()->create(); + $port = Port::factory()->make(['ifAdminStatus' => 'up', 'ifOperStatus' => 'up']); $device->ports()->save($port); - $ospfIf = factory(OspfPort::class)->make(['port_id' => $port->port_id, 'ospfIfState' => 'down']); + $ospfIf = OspfPort::factory()->make(['port_id' => $port->port_id, 'ospfIfState' => 'down']); $device->ospfPorts()->save($ospfIf); $trapText = "$device->hostname @@ -204,12 +204,12 @@ public function testOspfIfPtp() //Test OSPF interface state waiting public function testOspfIfWait() { - $device = factory(Device::class)->create(); - $port = factory(Port::class)->make(['ifAdminStatus' => 'up', 'ifOperStatus' => 'up']); + $device = Device::factory()->create(); + $port = Port::factory()->make(['ifAdminStatus' => 'up', 'ifOperStatus' => 'up']); $device->ports()->save($port); - $ospfIf = factory(OspfPort::class)->make(['port_id' => $port->port_id, 'ospfIfState' => 'designatedRouter']); + $ospfIf = OspfPort::factory()->make(['port_id' => $port->port_id, 'ospfIfState' => 'designatedRouter']); $device->ospfPorts()->save($ospfIf); $trapText = "$device->hostname @@ -237,12 +237,12 @@ public function testOspfIfWait() //Test OSPF interface state loopback public function testOspfIfLoop() { - $device = factory(Device::class)->create(); - $port = factory(Port::class)->make(['ifAdminStatus' => 'up', 'ifOperStatus' => 'up']); + $device = Device::factory()->create(); + $port = Port::factory()->make(['ifAdminStatus' => 'up', 'ifOperStatus' => 'up']); $device->ports()->save($port); - $ospfIf = factory(OspfPort::class)->make(['port_id' => $port->port_id, 'ospfIfState' => 'designatedRouter']); + $ospfIf = OspfPort::factory()->make(['port_id' => $port->port_id, 'ospfIfState' => 'designatedRouter']); $device->ospfPorts()->save($ospfIf); $trapText = "$device->hostname diff --git a/tests/Feature/SnmpTraps/OspfNbrStateChangeTest.php b/tests/Feature/SnmpTraps/OspfNbrStateChangeTest.php index 06ddb6c81ac2..a31986d951d1 100644 --- a/tests/Feature/SnmpTraps/OspfNbrStateChangeTest.php +++ b/tests/Feature/SnmpTraps/OspfNbrStateChangeTest.php @@ -38,9 +38,9 @@ class OspfNbrStateChangeTest extends SnmpTrapTestCase //Test OSPF neighbor state down trap public function testOspfNbrDown() { - $device = factory(Device::class)->create(); + $device = Device::factory()->create(); - $ospfNbr = factory(OspfNbr::class)->make(['device_id' => $device->device_id, 'ospfNbrState' => 'full']); + $ospfNbr = OspfNbr::factory()->make(['device_id' => $device->device_id, 'ospfNbrState' => 'full']); $ospfNbr->ospf_nbr_id = "$ospfNbr->ospfNbrIpAddr.$ospfNbr->ospfNbrAddressLessIndex"; $device->ospfNbrs()->save($ospfNbr); @@ -70,9 +70,9 @@ public function testOspfNbrDown() //Test OSPF neighbor state full trap public function testOspfNbrFull() { - $device = factory(Device::class)->create(); + $device = Device::factory()->create(); - $ospfNbr = factory(OspfNbr::class)->make(['device_id' => $device->device_id, 'ospfNbrState' => 'down']); + $ospfNbr = OspfNbr::factory()->make(['device_id' => $device->device_id, 'ospfNbrState' => 'down']); $ospfNbr->ospf_nbr_id = "$ospfNbr->ospfNbrIpAddr.$ospfNbr->ospfNbrAddressLessIndex"; $device->ospfNbrs()->save($ospfNbr); @@ -102,9 +102,9 @@ public function testOspfNbrFull() //Test OSPF neighbor state trap any other state public function testOspfNbrOther() { - $device = factory(Device::class)->create(); + $device = Device::factory()->create(); - $ospfNbr = factory(OspfNbr::class)->make(['device_id' => $device->device_id, 'ospfNbrState' => 'full']); + $ospfNbr = OspfNbr::factory()->make(['device_id' => $device->device_id, 'ospfNbrState' => 'full']); $ospfNbr->ospf_nbr_id = "$ospfNbr->ospfNbrIpAddr.$ospfNbr->ospfNbrAddressLessIndex"; $device->ospfNbrs()->save($ospfNbr); diff --git a/tests/Feature/SnmpTraps/PortsTrapTest.php b/tests/Feature/SnmpTraps/PortsTrapTest.php index 751a84674507..03946a29c1cd 100644 --- a/tests/Feature/SnmpTraps/PortsTrapTest.php +++ b/tests/Feature/SnmpTraps/PortsTrapTest.php @@ -35,8 +35,8 @@ class PortsTrapTest extends SnmpTrapTestCase public function testLinkDown() { // make a device and associate a port with it - $device = factory(Device::class)->create(); - $port = factory(Port::class)->make(['ifAdminStatus' => 'up', 'ifOperStatus' => 'up']); + $device = Device::factory()->create(); + $port = Port::factory()->make(['ifAdminStatus' => 'up', 'ifOperStatus' => 'up']); $device->ports()->save($port); $trapText = " @@ -65,8 +65,8 @@ public function testLinkDown() public function testLinkUp() { // make a device and associate a port with it - $device = factory(Device::class)->create(); - $port = factory(Port::class)->make(['ifAdminStatus' => 'down', 'ifOperStatus' => 'down']); + $device = Device::factory()->create(); + $port = Port::factory()->make(['ifAdminStatus' => 'down', 'ifOperStatus' => 'down']); $device->ports()->save($port); $trapText = " diff --git a/tests/Feature/SnmpTraps/RuckusEventTest.php b/tests/Feature/SnmpTraps/RuckusEventTest.php index 0d34bf3ce58c..c7ac0c4e4708 100644 --- a/tests/Feature/SnmpTraps/RuckusEventTest.php +++ b/tests/Feature/SnmpTraps/RuckusEventTest.php @@ -34,7 +34,7 @@ class RuckusEventTest extends SnmpTrapTestCase { public function testRuckusAssocTrap() { - $device = factory(Device::class)->create(); + $device = Device::factory()->create(); $trapText = "$device->hostname UDP: [$device->ip]:57602->[192.168.5.5]:162 @@ -52,7 +52,7 @@ public function testRuckusAssocTrap() public function testRuckusDiassocTrap() { - $device = factory(Device::class)->create(); + $device = Device::factory()->create(); $trapText = "$device->hostname UDP: [$device->ip]:57602->[192.168.5.5]:162 @@ -70,7 +70,7 @@ public function testRuckusDiassocTrap() public function testRuckusSetErrorTrap() { - $device = factory(Device::class)->create(); + $device = Device::factory()->create(); $trapText = "$device->hostname UDP: [$device->ip]:57602->[192.168.5.5]:162 diff --git a/tests/Feature/SnmpTraps/RuckusSzClusterStateTest.php b/tests/Feature/SnmpTraps/RuckusSzClusterStateTest.php index f0b39d173a9a..72111009806f 100644 --- a/tests/Feature/SnmpTraps/RuckusSzClusterStateTest.php +++ b/tests/Feature/SnmpTraps/RuckusSzClusterStateTest.php @@ -34,7 +34,7 @@ class RuckusSzClusterStateTest extends SnmpTrapTestCase { public function testClusterInMaintenance() { - $device = factory(Device::class)->create(); + $device = Device::factory()->create(); $trapText = "$device->hostname UDP: [$device->ip]:57602->[192.168.5.5]:162 @@ -55,7 +55,7 @@ public function testClusterInMaintenance() public function testClusterInService() { - $device = factory(Device::class)->create(); + $device = Device::factory()->create(); $trapText = "$device->hostname UDP: [$device->ip]:57602->[192.168.5.5]:162 diff --git a/tests/Feature/SnmpTraps/RuckusSzEventTest.php b/tests/Feature/SnmpTraps/RuckusSzEventTest.php index 4526710cf418..b4fd6d4ed955 100644 --- a/tests/Feature/SnmpTraps/RuckusSzEventTest.php +++ b/tests/Feature/SnmpTraps/RuckusSzEventTest.php @@ -34,7 +34,7 @@ class RuckusSzEventTest extends SnmpTrapTestCase { public function testSzApConf() { - $device = factory(Device::class)->create(); + $device = Device::factory()->create(); $trapText = "$device->hostname UDP: [$device->ip]:57602->[192.168.5.5]:162 @@ -60,7 +60,7 @@ public function testSzApConf() public function testSzApConnect() { - $device = factory(Device::class)->create(); + $device = Device::factory()->create(); $trapText = "$device->hostname UDP: [$device->ip]:57602->[192.168.5.5]:162 @@ -86,7 +86,7 @@ public function testSzApConnect() public function testSzApMiscEvent() { - $device = factory(Device::class)->create(); + $device = Device::factory()->create(); $trapText = "$device->hostname UDP: [$device->ip]:57602->[192.168.5.5]:162 @@ -112,7 +112,7 @@ public function testSzApMiscEvent() public function testSzApRebooted() { - $device = factory(Device::class)->create(); + $device = Device::factory()->create(); $trapText = "$device->hostname UDP: [$device->ip]:57602->[192.168.5.5]:162 diff --git a/tests/Feature/SnmpTraps/UpsTrapsOnBatteryTest.php b/tests/Feature/SnmpTraps/UpsTrapsOnBatteryTest.php index 52449404bfee..487797cb5735 100644 --- a/tests/Feature/SnmpTraps/UpsTrapsOnBatteryTest.php +++ b/tests/Feature/SnmpTraps/UpsTrapsOnBatteryTest.php @@ -32,10 +32,10 @@ class UpsTrapsOnBatteryTest extends SnmpTrapTestCase { public function testOnBattery() { - $device = factory(Device::class)->create(); - $state = factory(Sensor::class)->make(['sensor_class' => 'state', 'sensor_type' => 'upsOutputSourceState', 'sensor_current' => '2']); - $time = factory(Sensor::class)->make(['sensor_class' => 'runtime', 'sensor_index' => '100', 'sensor_type' => 'rfc1628', 'sensor_current' => '0']); - $remaining = factory(Sensor::class)->make(['sensor_class' => 'runtime', 'sensor_index' => '200', 'sensor_type' => 'rfc1628', 'sensor_current' => '371']); + $device = Device::factory()->create(); + $state = Sensor::factory()->make(['sensor_class' => 'state', 'sensor_type' => 'upsOutputSourceState', 'sensor_current' => '2']); + $time = Sensor::factory()->make(['sensor_class' => 'runtime', 'sensor_index' => '100', 'sensor_type' => 'rfc1628', 'sensor_current' => '0']); + $remaining = Sensor::factory()->make(['sensor_class' => 'runtime', 'sensor_index' => '200', 'sensor_type' => 'rfc1628', 'sensor_current' => '371']); $device->sensors()->save($state); $device->sensors()->save($time); $device->sensors()->save($remaining); diff --git a/tests/Feature/SnmpTraps/VmwHBTest.php b/tests/Feature/SnmpTraps/VmwHBTest.php index 572a031408ee..ba887ceb9b0b 100644 --- a/tests/Feature/SnmpTraps/VmwHBTest.php +++ b/tests/Feature/SnmpTraps/VmwHBTest.php @@ -34,8 +34,8 @@ class VmwHBTest extends SnmpTrapTestCase { public function testVmwVmHBLostTrap() { - $device = factory(Device::class)->create(); - $guest = factory(Device::class)->create(); + $device = Device::factory()->create(); + $guest = Device::factory()->create(); $trapText = "$device->hostname UDP: [$device->ip]:28386->[10.10.10.100]:162 @@ -56,8 +56,8 @@ public function testVmwVmHBLostTrap() public function testVmwVmHBDetectedTrap() { - $device = factory(Device::class)->create(); - $guest = factory(Device::class)->create(); + $device = Device::factory()->create(); + $guest = Device::factory()->create(); $trapText = "$device->hostname UDP: [$device->ip]:28386->[10.10.10.100]:162 diff --git a/tests/Feature/SnmpTraps/VmwPowerStateTest.php b/tests/Feature/SnmpTraps/VmwPowerStateTest.php index 9d01e5af402b..3bdbc0b327fa 100644 --- a/tests/Feature/SnmpTraps/VmwPowerStateTest.php +++ b/tests/Feature/SnmpTraps/VmwPowerStateTest.php @@ -35,8 +35,8 @@ class VmwPowerStateTest extends SnmpTrapTestCase { public function testVmwVmPoweredOffTrap() { - $device = factory(Device::class)->create(); - $guest = factory(Vminfo::class)->create(['device_id' => $device->device_id]); + $device = Device::factory()->create(); + $guest = Vminfo::factory()->create(['device_id' => $device->device_id]); $trapText = "$device->hostname UDP: [$device->ip]:28386->[10.10.10.100]:162 @@ -57,8 +57,8 @@ public function testVmwVmPoweredOffTrap() public function testVmwVmPoweredONTrap() { - $device = factory(Device::class)->create(); - $guest = factory(Vminfo::class)->create(['device_id' => $device->device_id]); + $device = Device::factory()->create(); + $guest = Vminfo::factory()->create(['device_id' => $device->device_id]); $trapText = "$device->hostname UDP: [$device->ip]:28386->[10.10.10.100]:162 @@ -79,8 +79,8 @@ public function testVmwVmPoweredONTrap() public function testVmwVmSuspendedTrap() { - $device = factory(Device::class)->create(); - $guest = factory(Vminfo::class)->create(['device_id' => $device->device_id]); + $device = Device::factory()->create(); + $guest = Vminfo::factory()->create(['device_id' => $device->device_id]); $trapText = "$device->hostname UDP: [$device->ip]:28386->[10.10.10.100]:162 diff --git a/tests/Feature/TestScheduledMaintenance.php b/tests/Feature/TestScheduledMaintenance.php index dbfc12bc0b0c..5862ff6663cd 100644 --- a/tests/Feature/TestScheduledMaintenance.php +++ b/tests/Feature/TestScheduledMaintenance.php @@ -16,7 +16,7 @@ public function testNormal() { $now = CarbonImmutable::now(); - $schedule = factory(AlertSchedule::class)->make(); + $schedule = AlertSchedule::factory()->make(); $schedule->start = $now->subHour(); $schedule->end = $now->addHour(); $schedule->save(); @@ -38,7 +38,7 @@ public function testNormal() public function testRecurringNormal() { $this->setTimezone('America/New_York'); - $schedule = factory(AlertSchedule::class)->state('recurring')->make(); + $schedule = AlertSchedule::factory()->recurring()->make(); $schedule->recurring_day = '1,2,3,4,5'; $schedule->start = Carbon::parse('2020-09-10 2:00'); $schedule->end = Carbon::parse('9000-09-09 20:00'); diff --git a/tests/SmokepingCliTest.php b/tests/SmokepingCliTest.php index 5f747e31e8c9..16aabaa64e17 100644 --- a/tests/SmokepingCliTest.php +++ b/tests/SmokepingCliTest.php @@ -81,7 +81,7 @@ class SmokepingCliTest extends DBTestCase private $instance = null; - public function setUp(): void + protected function setUp(): void { // We need an app instance available for these tests to load the translation machinary $this->app = $this->createApplication(); @@ -332,7 +332,7 @@ public function testCompareLegacy() // Generate a ridiculous number of random devices for testing foreach (range(1, 1000) as $i) { - $device = factory(Device::class)->create(); + $device = Device::factory()->create(); $data[$device->type][] = $device->hostname; } diff --git a/tests/Unit/ComponentTest.php b/tests/Unit/ComponentTest.php index e3dae5087072..8bd76d431da6 100644 --- a/tests/Unit/ComponentTest.php +++ b/tests/Unit/ComponentTest.php @@ -37,7 +37,7 @@ class ComponentTest extends DBTestCase public function testDeleteComponent() { - $target = factory(\App\Models\Component::class)->create(); + $target = \App\Models\Component::factory()->create(); $this->assertTrue(\App\Models\Component::where('id', $target->id)->exists(), 'Failed to create component, this shouldn\'t happen'); @@ -54,7 +54,7 @@ public function testGetComponentsEmpty() public function testGetComponentsOptionsType() { - $target = factory(\App\Models\Component::class)->create(); + $target = \App\Models\Component::factory()->create(); $component = new Component(); $actual = $component->getComponents($target->device_id, ['type' => $target->type]); @@ -66,8 +66,8 @@ public function testGetComponentsOptionsType() public function testGetComponentsOptionsFilterNotIgnore() { - factory(\App\Models\Component::class)->create(['device_id' => 1, 'ignore' => 1]); - $target = factory(\App\Models\Component::class)->times(2)->create(['device_id' => 1, 'ignore' => 0]); + \App\Models\Component::factory()->create(['device_id' => 1, 'ignore' => 1]); + $target = \App\Models\Component::factory()->times(2)->create(['device_id' => 1, 'ignore' => 0]); $component = new Component(); $actual = $component->getComponents(1, ['filter' => ['ignore' => ['=', 0]]]); @@ -77,10 +77,10 @@ public function testGetComponentsOptionsFilterNotIgnore() public function testGetComponentsOptionsComplex() { - factory(\App\Models\Component::class)->create(['label' => 'Search Phrase']); - factory(\App\Models\Component::class)->times(2)->create(['label' => 'Something Else']); - $target = factory(\App\Models\Component::class)->times(2)->create(['label' => 'Search Phrase']); - factory(\App\Models\Component::class)->create(['label' => 'Search Phrase']); + \App\Models\Component::factory()->create(['label' => 'Search Phrase']); + \App\Models\Component::factory()->times(2)->create(['label' => 'Something Else']); + $target = \App\Models\Component::factory()->times(2)->create(['label' => 'Search Phrase']); + \App\Models\Component::factory()->create(['label' => 'Search Phrase']); $component = new Component(); $options = [ @@ -106,9 +106,9 @@ public function testGetFirstComponentID() public function testGetComponentCount() { - factory(\App\Models\Component::class)->times(2)->create(['device_id' => 1, 'type' => 'three']); - factory(\App\Models\Component::class)->create(['device_id' => 2, 'type' => 'three']); - factory(\App\Models\Component::class)->create(['device_id' => 2, 'type' => 'one']); + \App\Models\Component::factory()->times(2)->create(['device_id' => 1, 'type' => 'three']); + \App\Models\Component::factory()->create(['device_id' => 2, 'type' => 'three']); + \App\Models\Component::factory()->create(['device_id' => 2, 'type' => 'one']); $component = new Component(); $this->assertEquals(['three' => 3, 'one' => 1], $component->getComponentCount()); @@ -119,7 +119,7 @@ public function testGetComponentCount() public function testSetComponentPrefs() { // Nightmare function, no where near exhaustive - $base = factory(\App\Models\Component::class)->create(); + $base = \App\Models\Component::factory()->create(); $component = new Component(); \Log::shouldReceive('event')->withArgs(["Component: $base->type($base->id). Attribute: null_val, was added with value: ", $base->device_id, 'component', 3, $base->id]); @@ -182,7 +182,7 @@ public function testGetComponentStatusLog() $this->assertEquals(0, $component->createStatusLogEntry(434242, 0, 'failed'), 'incorrectly added log'); $message = Str::random(8); - $model = factory(\App\Models\Component::class)->create(); + $model = \App\Models\Component::factory()->create(); $log_id = $component->createStatusLogEntry($model->id, 1, $message); $this->assertNotEquals(0, $log_id, ' failed to create log'); diff --git a/tests/Unit/DeviceTest.php b/tests/Unit/DeviceTest.php index b164e4028bb2..4295c02e720a 100644 --- a/tests/Unit/DeviceTest.php +++ b/tests/Unit/DeviceTest.php @@ -36,7 +36,7 @@ class DeviceTest extends DBTestCase public function testFindByHostname() { - $device = factory(Device::class)->create(); + $device = Device::factory()->create(); $found = Device::findByHostname($device->hostname); $this->assertNotNull($found); @@ -63,7 +63,7 @@ public function testFindByIpv6Fail() public function testFindIpButNoPort() { - $ipv4 = factory(Ipv4Address::class)->create(); + $ipv4 = Ipv4Address::factory()->create(); Port::destroy($ipv4->port_id); $found = Device::findByIp($ipv4->ipv4_address); @@ -72,7 +72,7 @@ public function testFindIpButNoPort() public function testFindByIp() { - $device = factory(Device::class)->create(); + $device = Device::factory()->create(); $found = Device::findByIp($device->ip); $this->assertNotNull($found); @@ -82,7 +82,7 @@ public function testFindByIp() public function testFindByIpHostname() { $ip = '192.168.234.32'; - $device = factory(Device::class)->create(['hostname' => $ip]); + $device = Device::factory()->create(['hostname' => $ip]); $found = Device::findByIp($ip); $this->assertNotNull($found); @@ -91,10 +91,10 @@ public function testFindByIpHostname() public function testFindByIpThroughPort() { - $device = factory(Device::class)->create(); - $port = factory(Port::class)->make(); + $device = Device::factory()->create(); + $port = Port::factory()->make(); $device->ports()->save($port); - $ipv4 = factory(Ipv4Address::class)->make(); // test ipv4 lookup of device + $ipv4 = Ipv4Address::factory()->make(); // test ipv4 lookup of device $port->ipv4()->save($ipv4); $found = Device::findByIp($ipv4->ipv4_address); diff --git a/tests/Unit/PermissionsTest.php b/tests/Unit/PermissionsTest.php index 4ea84a877922..bdd50738af1b 100644 --- a/tests/Unit/PermissionsTest.php +++ b/tests/Unit/PermissionsTest.php @@ -63,8 +63,8 @@ public function testUserCanAccessDevice() return self::devicePermissionData($user); }); - $device = factory(Device::class)->make(['device_id' => 54]); - $user = factory(User::class)->make(['user_id' => 43]); + $device = Device::factory()->make(['device_id' => 54]); + $user = User::factory()->make(['user_id' => 43]); $this->assertTrue($perms->canAccessDevice($device, 43)); $this->assertTrue($perms->canAccessDevice($device, $user)); $this->assertTrue($perms->canAccessDevice(54, $user)); @@ -88,7 +88,7 @@ public function testDevicesForUser() }); $this->assertEquals(collect([54, 32]), $perms->devicesForUser(43)); - $user = factory(User::class)->make(['user_id' => 43]); + $user = User::factory()->make(['user_id' => 43]); $this->assertEquals(collect([54, 32]), $perms->devicesForUser($user)); $this->assertEmpty($perms->devicesForUser(9)); $this->assertEquals(collect(), $perms->devicesForUser()); @@ -108,7 +108,7 @@ public function testUsersForDevice() ])); $this->assertEquals(collect([4, 6]), $perms->usersForDevice(5)); - $this->assertEquals(collect([3]), $perms->usersForDevice(factory(Device::class)->make(['device_id' => 7]))); + $this->assertEquals(collect([3]), $perms->usersForDevice(Device::factory()->make(['device_id' => 7]))); $this->assertEquals(collect(), $perms->usersForDevice(6)); $this->assertEmpty($perms->usersForDevice(9)); } @@ -122,8 +122,8 @@ public function testUserCanAccessPort() (object) ['user_id' => 14, 'port_id' => 54], ])); - $port = factory(Port::class)->make(['port_id' => 54]); - $user = factory(User::class)->make(['user_id' => 43]); + $port = Port::factory()->make(['port_id' => 54]); + $user = User::factory()->make(['user_id' => 43]); $this->assertTrue($perms->canAccessPort($port, 43)); $this->assertTrue($perms->canAccessPort($port, $user)); $this->assertTrue($perms->canAccessPort(54, $user)); @@ -149,7 +149,7 @@ public function testPortsForUser() ])); $this->assertEquals(collect([7, 2]), $perms->portsForUser(3)); - $user = factory(User::class)->make(['user_id' => 3]); + $user = User::factory()->make(['user_id' => 3]); $this->assertEquals(collect([7, 2]), $perms->portsForUser($user)); $this->assertEmpty($perms->portsForUser(9)); $this->assertEquals(collect(), $perms->portsForUser()); @@ -168,7 +168,7 @@ public function testUsersForPort() ])); $this->assertEquals(collect([4, 6]), $perms->usersForPort(5)); - $this->assertEquals(collect([3]), $perms->usersForPort(factory(Port::class)->make(['port_id' => 7]))); + $this->assertEquals(collect([3]), $perms->usersForPort(Port::factory()->make(['port_id' => 7]))); $this->assertEquals(collect(), $perms->usersForPort(6)); $this->assertEmpty($perms->usersForPort(9)); } @@ -182,8 +182,8 @@ public function testUserCanAccessBill() (object) ['user_id' => 14, 'bill_id' => 54], ])); - $bill = factory(Bill::class)->make(['bill_id' => 54]); - $user = factory(User::class)->make(['user_id' => 43]); + $bill = Bill::factory()->make(['bill_id' => 54]); + $user = User::factory()->make(['user_id' => 43]); $this->assertTrue($perms->canAccessBill($bill, 43)); $this->assertTrue($perms->canAccessBill($bill, $user)); $this->assertTrue($perms->canAccessBill(54, $user)); @@ -209,7 +209,7 @@ public function testBillsForUser() ])); $this->assertEquals(collect([7, 2]), $perms->billsForUser(3)); - $user = factory(User::class)->make(['user_id' => 3]); + $user = User::factory()->make(['user_id' => 3]); $this->assertEquals(collect([7, 2]), $perms->billsForUser($user)); $this->assertEmpty($perms->billsForUser(9)); $this->assertEquals(collect(), $perms->billsForUser()); @@ -228,7 +228,7 @@ public function testUsersForBill() ])); $this->assertEquals(collect([4, 6]), $perms->usersForBill(5)); - $this->assertEquals(collect([3]), $perms->usersForBill(factory(Bill::class)->make(['bill_id' => 7]))); + $this->assertEquals(collect([3]), $perms->usersForBill(Bill::factory()->make(['bill_id' => 7]))); $this->assertEquals(collect(), $perms->usersForBill(6)); $this->assertEmpty($perms->usersForBill(9)); }