Merge remote-tracking branch 'origin/develop'

Signed-off-by: snipe <snipe@snipe.net>

# Conflicts:
#	public/css/dist/all.css
#	public/css/dist/bootstrap-table.css
#	public/js/dist/bootstrap-table.js
#	public/mix-manifest.json
This commit is contained in:
snipe 2023-07-12 19:22:34 +01:00
commit 3a6d8ef684
36 changed files with 453 additions and 359 deletions

View file

@ -15,15 +15,15 @@ on:
- develop - develop
pull_request: pull_request:
branches: branches: .*
- master
- develop
pipeline: pipeline:
- name: Setup - name: Setup
cmd: | cmd: |
cp -v .env.example .env cp -v .env.example .env
# This is simply to allow passing the guard in TestCase@setUp()
# https://chipperci.com/docs/builds/env
touch .env.testing
composer install --no-interaction --prefer-dist --optimize-autoloader composer install --no-interaction --prefer-dist --optimize-autoloader
- name: Generate Key - name: Generate Key

View file

@ -27,6 +27,8 @@ class CompaniesController extends Controller
$allowed_columns = [ $allowed_columns = [
'id', 'id',
'name', 'name',
'phone',
'fax',
'created_at', 'created_at',
'updated_at', 'updated_at',
'users_count', 'users_count',

View file

@ -30,6 +30,8 @@ class DepartmentsController extends Controller
$departments = Company::scopeCompanyables(Department::select( $departments = Company::scopeCompanyables(Department::select(
'departments.id', 'departments.id',
'departments.name', 'departments.name',
'departments.phone',
'departments.fax',
'departments.location_id', 'departments.location_id',
'departments.company_id', 'departments.company_id',
'departments.manager_id', 'departments.manager_id',

View file

@ -37,6 +37,8 @@ class LocationsController extends Controller
'locations.city', 'locations.city',
'locations.state', 'locations.state',
'locations.zip', 'locations.zip',
'locations.phone',
'locations.fax',
'locations.country', 'locations.country',
'locations.parent_id', 'locations.parent_id',
'locations.manager_id', 'locations.manager_id',

View file

@ -60,6 +60,8 @@ final class CompaniesController extends Controller
$company = new Company; $company = new Company;
$company->name = $request->input('name'); $company->name = $request->input('name');
$company->phone = $request->input('phone');
$company->fax = $request->input('fax');
$company = $request->handleImages($company); $company = $request->handleImages($company);
@ -111,6 +113,8 @@ final class CompaniesController extends Controller
$this->authorize('update', $company); $this->authorize('update', $company);
$company->name = $request->input('name'); $company->name = $request->input('name');
$company->phone = $request->input('phone');
$company->fax = $request->input('fax');
$company = $request->handleImages($company); $company = $request->handleImages($company);

View file

@ -170,6 +170,8 @@ class DepartmentsController extends Controller
$department->manager_id = ($request->filled('manager_id') ? $request->input('manager_id') : null); $department->manager_id = ($request->filled('manager_id') ? $request->input('manager_id') : null);
$department->location_id = ($request->filled('location_id') ? $request->input('location_id') : null); $department->location_id = ($request->filled('location_id') ? $request->input('location_id') : null);
$department->company_id = ($request->filled('company_id') ? $request->input('company_id') : null); $department->company_id = ($request->filled('company_id') ? $request->input('company_id') : null);
$department->phone = $request->input('phone');
$department->fax = $request->input('fax');
$department = $request->handleImages($department); $department = $request->handleImages($department);

View file

@ -79,6 +79,8 @@ class LocationsController extends Controller
$location->ldap_ou = $request->input('ldap_ou'); $location->ldap_ou = $request->input('ldap_ou');
$location->manager_id = $request->input('manager_id'); $location->manager_id = $request->input('manager_id');
$location->user_id = Auth::id(); $location->user_id = Auth::id();
$location->phone = request('phone');
$location->fax = request('fax');
$location = $request->handleImages($location); $location = $request->handleImages($location);
@ -139,6 +141,8 @@ class LocationsController extends Controller
$location->state = $request->input('state'); $location->state = $request->input('state');
$location->country = $request->input('country'); $location->country = $request->input('country');
$location->zip = $request->input('zip'); $location->zip = $request->input('zip');
$location->phone = request('phone');
$location->fax = request('fax');
$location->ldap_ou = $request->input('ldap_ou'); $location->ldap_ou = $request->input('ldap_ou');
$location->manager_id = $request->input('manager_id'); $location->manager_id = $request->input('manager_id');

View file

@ -284,6 +284,8 @@ class Importer extends Component
'maintained' => trans('admin/licenses/form.maintained'), 'maintained' => trans('admin/licenses/form.maintained'),
'checkout_class' => trans('general.importer.checkout_type'), 'checkout_class' => trans('general.importer.checkout_type'),
'serial' => trans('general.license_serial'), 'serial' => trans('general.license_serial'),
'email' => trans('general.importer.checked_out_to_email'),
'username' => trans('general.importer.checked_out_to_username'),
]; ];
$this->users_fields = [ $this->users_fields = [

View file

@ -26,6 +26,8 @@ class CompaniesTransformer
$array = [ $array = [
'id' => (int) $company->id, 'id' => (int) $company->id,
'name' => e($company->name), 'name' => e($company->name),
'phone' => ($company->phone!='') ? e($company->phone): null,
'fax' => ($company->fax!='') ? e($company->fax): null,
'image' => ($company->image) ? Storage::disk('public')->url('companies/'.e($company->image)) : null, 'image' => ($company->image) ? Storage::disk('public')->url('companies/'.e($company->image)) : null,
'created_at' => Helper::getFormattedDateObject($company->created_at, 'datetime'), 'created_at' => Helper::getFormattedDateObject($company->created_at, 'datetime'),
'updated_at' => Helper::getFormattedDateObject($company->updated_at, 'datetime'), 'updated_at' => Helper::getFormattedDateObject($company->updated_at, 'datetime'),

View file

@ -26,6 +26,8 @@ class DepartmentsTransformer
$array = [ $array = [
'id' => (int) $department->id, 'id' => (int) $department->id,
'name' => e($department->name), 'name' => e($department->name),
'phone' => ($department->phone!='') ? e($department->phone): null,
'fax' => ($department->fax!='') ? e($department->fax): null,
'image' => ($department->image) ? Storage::disk('public')->url(app('departments_upload_url').e($department->image)) : null, 'image' => ($department->image) ? Storage::disk('public')->url(app('departments_upload_url').e($department->image)) : null,
'company' => ($department->company) ? [ 'company' => ($department->company) ? [
'id' => (int) $department->company->id, 'id' => (int) $department->company->id,

View file

@ -43,6 +43,8 @@ class LocationsTransformer
'state' => ($location->state) ? e($location->state) : null, 'state' => ($location->state) ? e($location->state) : null,
'country' => ($location->country) ? e($location->country) : null, 'country' => ($location->country) ? e($location->country) : null,
'zip' => ($location->zip) ? e($location->zip) : null, 'zip' => ($location->zip) ? e($location->zip) : null,
'phone' => ($location->phone!='') ? e($location->phone): null,
'fax' => ($location->fax!='') ? e($location->fax): null,
'assigned_assets_count' => (int) $location->assigned_assets_count, 'assigned_assets_count' => (int) $location->assigned_assets_count,
'assets_count' => (int) $location->assets_count, 'assets_count' => (int) $location->assets_count,
'rtd_assets_count' => (int) $location->rtd_assets_count, 'rtd_assets_count' => (int) $location->rtd_assets_count,

View file

@ -27,15 +27,24 @@ class LicenseImporter extends ItemImporter
* @since 4.0 * @since 4.0
* @param array $row * @param array $row
* @return License|mixed|null * @return License|mixed|null
* updated @author Jes Vinsmoke
* @since 6.1
*
*/ */
public function createLicenseIfNotExists(array $row) public function createLicenseIfNotExists(array $row)
{ {
$editingLicense = false; $editingLicense = false;
$license = License::where('name', $this->item['name']) $license = License::where('serial', $this->item['serial'])->where('name', $this->item['name'])
->first(); ->first();
if ($license) { if ($license) {
if (! $this->updating) { if (! $this->updating) {
$this->log('A matching License '.$this->item['name'].' with serial '.$this->item['serial'].' already exists');
if($this->item['serial'] != "") {
$this->log('A matching License ' . $this->item['name'] . ' with serial ' . $this->item['serial'] . ' already exists');
}
else {
$this->log('A matching License ' . $this->item['name'] . ' with no serial number already exists');
}
return; return;
} }
@ -57,6 +66,10 @@ class LicenseImporter extends ItemImporter
$this->item['maintained'] = $this->findCsvMatch($row, 'maintained'); $this->item['maintained'] = $this->findCsvMatch($row, 'maintained');
$this->item['purchase_order'] = $this->findCsvMatch($row, 'purchase_order'); $this->item['purchase_order'] = $this->findCsvMatch($row, 'purchase_order');
$this->item['reassignable'] = $this->findCsvMatch($row, 'reassignable'); $this->item['reassignable'] = $this->findCsvMatch($row, 'reassignable');
if($this->item['reassignable'] == "")
{
$this->item['reassignable'] = 1;
}
$this->item['seats'] = $this->findCsvMatch($row, 'seats'); $this->item['seats'] = $this->findCsvMatch($row, 'seats');
$this->item["termination_date"] = null; $this->item["termination_date"] = null;

View file

@ -18,7 +18,7 @@ class CheckoutRequest extends Model
public function requestingUser() public function requestingUser()
{ {
return $this->user()->first(); return $this->user()->withTrashed()->first();
} }
public function requestedItem() public function requestedItem()

View file

@ -45,7 +45,7 @@ final class Company extends SnipeModel
* *
* @var array * @var array
*/ */
protected $searchableAttributes = ['name', 'created_at', 'updated_at']; protected $searchableAttributes = ['name', 'phone', 'fax', 'created_at', 'updated_at'];
/** /**
* The relations and their attributes that should be included when searching the model. * The relations and their attributes that should be included when searching the model.
@ -59,7 +59,11 @@ final class Company extends SnipeModel
* *
* @var array * @var array
*/ */
protected $fillable = ['name']; protected $fillable = [
'name',
'phone',
'fax',
];
private static function isFullMultipleCompanySupportEnabled() private static function isFullMultipleCompanySupportEnabled()
{ {

View file

@ -43,6 +43,8 @@ class Department extends SnipeModel
protected $fillable = [ protected $fillable = [
'user_id', 'user_id',
'name', 'name',
'phone',
'fax',
'location_id', 'location_id',
'company_id', 'company_id',
'manager_id', 'manager_id',
@ -56,7 +58,7 @@ class Department extends SnipeModel
* *
* @var array * @var array
*/ */
protected $searchableAttributes = ['name', 'notes']; protected $searchableAttributes = ['name', 'notes', 'phone', 'fax'];
/** /**
* The relations and their attributes that should be included when searching the model. * The relations and their attributes that should be included when searching the model.

View file

@ -66,6 +66,8 @@ class Location extends SnipeModel
'state', 'state',
'country', 'country',
'zip', 'zip',
'phone',
'fax',
'ldap_ou', 'ldap_ou',
'currency', 'currency',
'manager_id', 'manager_id',
@ -80,7 +82,7 @@ class Location extends SnipeModel
* *
* @var array * @var array
*/ */
protected $searchableAttributes = ['name', 'address', 'city', 'state', 'zip', 'created_at', 'ldap_ou']; protected $searchableAttributes = ['name', 'address', 'city', 'state', 'zip', 'created_at', 'ldap_ou', 'phone', 'fax'];
/** /**
* The relations and their attributes that should be included when searching the model. * The relations and their attributes that should be included when searching the model.

View file

@ -29,6 +29,22 @@ class CompanyPresenter extends Presenter
'title' => trans('admin/companies/table.name'), 'title' => trans('admin/companies/table.name'),
'visible' => true, 'visible' => true,
'formatter' => 'companiesLinkFormatter', 'formatter' => 'companiesLinkFormatter',
], [
'field' => 'phone',
'searchable' => true,
'sortable' => true,
'switchable' => true,
'title' => trans('admin/users/table.phone'),
'visible' => false,
'formatter' => 'phoneFormatter',
], [
'field' => 'fax',
'searchable' => true,
'sortable' => true,
'switchable' => true,
'title' => trans('admin/suppliers/table.fax'),
'visible' => false,
'formatter' => 'phoneFormatter',
], [ ], [
'field' => 'image', 'field' => 'image',
'searchable' => false, 'searchable' => false,

View file

@ -141,6 +141,24 @@ class LocationPresenter extends Presenter
'title' => trans('admin/locations/table.country'), 'title' => trans('admin/locations/table.country'),
'visible' => false, 'visible' => false,
], ],
[
'field' => 'phone',
'searchable' => true,
'sortable' => true,
'switchable' => true,
'title' => trans('admin/users/table.phone'),
'visible' => false,
'formatter' => 'phoneFormatter',
],
[
'field' => 'fax',
'searchable' => true,
'sortable' => true,
'switchable' => true,
'title' => trans('admin/suppliers/table.fax'),
'visible' => false,
'formatter' => 'phoneFormatter',
],
[ [
'field' => 'ldap_ou', 'field' => 'ldap_ou',
'searchable' => true, 'searchable' => true,

View file

@ -85,7 +85,7 @@
"squizlabs/php_codesniffer": "^3.5", "squizlabs/php_codesniffer": "^3.5",
"symfony/css-selector": "^4.4", "symfony/css-selector": "^4.4",
"symfony/dom-crawler": "^4.4", "symfony/dom-crawler": "^4.4",
"vimeo/psalm": "^5.6" "vimeo/psalm": "^5.13"
}, },
"extra": { "extra": {
"laravel": { "laravel": {

504
composer.lock generated
View file

@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically" "This file is @generated automatically"
], ],
"content-hash": "217a3619f0f4eebdb280299efdd7297e", "content-hash": "ba3150255e8c263677ad9bc203852fb0",
"packages": [ "packages": [
{ {
"name": "alek13/slack", "name": "alek13/slack",
@ -12216,17 +12216,83 @@
"time": "2022-08-22T10:45:51+00:00" "time": "2022-08-22T10:45:51+00:00"
}, },
{ {
"name": "composer/ca-bundle", "name": "cmgmyr/phploc",
"version": "1.3.5", "version": "8.0.2",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/composer/ca-bundle.git", "url": "https://github.com/cmgmyr/phploc.git",
"reference": "74780ccf8c19d6acb8d65c5f39cd72110e132bbd" "reference": "35e308033e02264a59cb1b56cc2abb1a22483ca8"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/composer/ca-bundle/zipball/74780ccf8c19d6acb8d65c5f39cd72110e132bbd", "url": "https://api.github.com/repos/cmgmyr/phploc/zipball/35e308033e02264a59cb1b56cc2abb1a22483ca8",
"reference": "74780ccf8c19d6acb8d65c5f39cd72110e132bbd", "reference": "35e308033e02264a59cb1b56cc2abb1a22483ca8",
"shasum": ""
},
"require": {
"ext-dom": "*",
"ext-json": "*",
"php": "^7.4 || ^8.0",
"phpunit/php-file-iterator": "^3.0|^4.0",
"sebastian/cli-parser": "^1.0|^2.0",
"sebastian/version": "^3.0|^4.0"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^3.2",
"phpunit/phpunit": "^9.0|^10.0",
"vimeo/psalm": "^5.7"
},
"bin": [
"phploc"
],
"type": "library",
"extra": {
"branch-alias": {
"dev-main": "8.0-dev"
}
},
"autoload": {
"classmap": [
"src/"
]
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"BSD-3-Clause"
],
"authors": [
{
"name": "Chris Gmyr",
"email": "cmgmyr@gmail.com",
"role": "lead"
}
],
"description": "A tool for quickly measuring the size of a PHP project.",
"homepage": "https://github.com/cmgmyr/phploc",
"support": {
"issues": "https://github.com/cmgmyr/phploc/issues",
"source": "https://github.com/cmgmyr/phploc/tree/8.0.2"
},
"funding": [
{
"url": "https://github.com/cmgmyr",
"type": "github"
}
],
"time": "2023-03-19T10:37:20+00:00"
},
{
"name": "composer/ca-bundle",
"version": "1.3.6",
"source": {
"type": "git",
"url": "https://github.com/composer/ca-bundle.git",
"reference": "90d087e988ff194065333d16bc5cf649872d9cdb"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/composer/ca-bundle/zipball/90d087e988ff194065333d16bc5cf649872d9cdb",
"reference": "90d087e988ff194065333d16bc5cf649872d9cdb",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -12273,7 +12339,7 @@
"support": { "support": {
"irc": "irc://irc.freenode.org/composer", "irc": "irc://irc.freenode.org/composer",
"issues": "https://github.com/composer/ca-bundle/issues", "issues": "https://github.com/composer/ca-bundle/issues",
"source": "https://github.com/composer/ca-bundle/tree/1.3.5" "source": "https://github.com/composer/ca-bundle/tree/1.3.6"
}, },
"funding": [ "funding": [
{ {
@ -12289,7 +12355,7 @@
"type": "tidelift" "type": "tidelift"
} }
], ],
"time": "2023-01-11T08:27:00+00:00" "time": "2023-06-06T12:02:59+00:00"
}, },
{ {
"name": "composer/composer", "name": "composer/composer",
@ -12470,79 +12536,6 @@
], ],
"time": "2021-04-07T13:37:33+00:00" "time": "2021-04-07T13:37:33+00:00"
}, },
{
"name": "composer/package-versions-deprecated",
"version": "1.11.99.5",
"source": {
"type": "git",
"url": "https://github.com/composer/package-versions-deprecated.git",
"reference": "b4f54f74ef3453349c24a845d22392cd31e65f1d"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/composer/package-versions-deprecated/zipball/b4f54f74ef3453349c24a845d22392cd31e65f1d",
"reference": "b4f54f74ef3453349c24a845d22392cd31e65f1d",
"shasum": ""
},
"require": {
"composer-plugin-api": "^1.1.0 || ^2.0",
"php": "^7 || ^8"
},
"replace": {
"ocramius/package-versions": "1.11.99"
},
"require-dev": {
"composer/composer": "^1.9.3 || ^2.0@dev",
"ext-zip": "^1.13",
"phpunit/phpunit": "^6.5 || ^7"
},
"type": "composer-plugin",
"extra": {
"class": "PackageVersions\\Installer",
"branch-alias": {
"dev-master": "1.x-dev"
}
},
"autoload": {
"psr-4": {
"PackageVersions\\": "src/PackageVersions"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Marco Pivetta",
"email": "ocramius@gmail.com"
},
{
"name": "Jordi Boggiano",
"email": "j.boggiano@seld.be"
}
],
"description": "Composer plugin that provides efficient querying for installed package versions (no runtime IO)",
"support": {
"issues": "https://github.com/composer/package-versions-deprecated/issues",
"source": "https://github.com/composer/package-versions-deprecated/tree/1.11.99.5"
},
"funding": [
{
"url": "https://packagist.com",
"type": "custom"
},
{
"url": "https://github.com/composer",
"type": "github"
},
{
"url": "https://tidelift.com/funding/github/packagist/composer/composer",
"type": "tidelift"
}
],
"time": "2022-01-17T14:14:24+00:00"
},
{ {
"name": "composer/pcre", "name": "composer/pcre",
"version": "3.1.0", "version": "3.1.0",
@ -13126,16 +13119,16 @@
}, },
{ {
"name": "fidry/cpu-core-counter", "name": "fidry/cpu-core-counter",
"version": "0.4.1", "version": "0.5.1",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/theofidry/cpu-core-counter.git", "url": "https://github.com/theofidry/cpu-core-counter.git",
"reference": "79261cc280aded96d098e1b0e0ba0c4881b432c2" "reference": "b58e5a3933e541dc286cc91fc4f3898bbc6f1623"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/theofidry/cpu-core-counter/zipball/79261cc280aded96d098e1b0e0ba0c4881b432c2", "url": "https://api.github.com/repos/theofidry/cpu-core-counter/zipball/b58e5a3933e541dc286cc91fc4f3898bbc6f1623",
"reference": "79261cc280aded96d098e1b0e0ba0c4881b432c2", "reference": "b58e5a3933e541dc286cc91fc4f3898bbc6f1623",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -13175,7 +13168,7 @@
], ],
"support": { "support": {
"issues": "https://github.com/theofidry/cpu-core-counter/issues", "issues": "https://github.com/theofidry/cpu-core-counter/issues",
"source": "https://github.com/theofidry/cpu-core-counter/tree/0.4.1" "source": "https://github.com/theofidry/cpu-core-counter/tree/0.5.1"
}, },
"funding": [ "funding": [
{ {
@ -13183,7 +13176,7 @@
"type": "github" "type": "github"
} }
], ],
"time": "2022-12-16T22:01:02+00:00" "time": "2022-12-24T12:35:10+00:00"
}, },
{ {
"name": "friendsofphp/php-cs-fixer", "name": "friendsofphp/php-cs-fixer",
@ -13742,16 +13735,16 @@
}, },
{ {
"name": "netresearch/jsonmapper", "name": "netresearch/jsonmapper",
"version": "v4.1.0", "version": "v4.2.0",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/cweiske/jsonmapper.git", "url": "https://github.com/cweiske/jsonmapper.git",
"reference": "cfa81ea1d35294d64adb9c68aa4cb9e92400e53f" "reference": "f60565f8c0566a31acf06884cdaa591867ecc956"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/cweiske/jsonmapper/zipball/cfa81ea1d35294d64adb9c68aa4cb9e92400e53f", "url": "https://api.github.com/repos/cweiske/jsonmapper/zipball/f60565f8c0566a31acf06884cdaa591867ecc956",
"reference": "cfa81ea1d35294d64adb9c68aa4cb9e92400e53f", "reference": "f60565f8c0566a31acf06884cdaa591867ecc956",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -13787,9 +13780,9 @@
"support": { "support": {
"email": "cweiske@cweiske.de", "email": "cweiske@cweiske.de",
"issues": "https://github.com/cweiske/jsonmapper/issues", "issues": "https://github.com/cweiske/jsonmapper/issues",
"source": "https://github.com/cweiske/jsonmapper/tree/v4.1.0" "source": "https://github.com/cweiske/jsonmapper/tree/v4.2.0"
}, },
"time": "2022-12-08T20:46:14+00:00" "time": "2023-04-09T17:37:40+00:00"
}, },
{ {
"name": "nunomaduro/larastan", "name": "nunomaduro/larastan",
@ -13891,19 +13884,20 @@
}, },
{ {
"name": "nunomaduro/phpinsights", "name": "nunomaduro/phpinsights",
"version": "v2.7.0", "version": "v2.8.0",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/nunomaduro/phpinsights.git", "url": "https://github.com/nunomaduro/phpinsights.git",
"reference": "3a2f02cadcd1be920eed19814798810944698c51" "reference": "a701b7acfda9940ef0140c7276319df9026824c4"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/nunomaduro/phpinsights/zipball/3a2f02cadcd1be920eed19814798810944698c51", "url": "https://api.github.com/repos/nunomaduro/phpinsights/zipball/a701b7acfda9940ef0140c7276319df9026824c4",
"reference": "3a2f02cadcd1be920eed19814798810944698c51", "reference": "a701b7acfda9940ef0140c7276319df9026824c4",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
"cmgmyr/phploc": "^8.0",
"composer/semver": "^3.3", "composer/semver": "^3.3",
"ext-iconv": "*", "ext-iconv": "*",
"ext-json": "*", "ext-json": "*",
@ -13912,29 +13906,28 @@
"friendsofphp/php-cs-fixer": "^3.0.0", "friendsofphp/php-cs-fixer": "^3.0.0",
"justinrainbow/json-schema": "^5.1", "justinrainbow/json-schema": "^5.1",
"league/container": "^3.2|^4.2", "league/container": "^3.2|^4.2",
"php": "^7.4 || ^8.0", "php": "^7.4 || ^8.0 || ^8.1",
"php-parallel-lint/php-parallel-lint": "^1.3", "php-parallel-lint/php-parallel-lint": "^1.3",
"phploc/phploc": "^5.0|^6.0|^7.0",
"psr/container": "^1.0|^2.0", "psr/container": "^1.0|^2.0",
"psr/simple-cache": "^1.0|^2.0|^3.0", "psr/simple-cache": "^1.0|^2.0|^3.0",
"sebastian/diff": "^4.0", "sebastian/diff": "^4.0|^5.0",
"slevomat/coding-standard": "^7.0.8|^8.0", "slevomat/coding-standard": "^7.0.8|^8.0",
"squizlabs/php_codesniffer": "^3.5", "squizlabs/php_codesniffer": "^3.5",
"symfony/cache": "^4.4|^5.0|^6.0", "symfony/cache": "^4.4|^5.0|^6.0",
"symfony/console": "^4.2|^5.0|^6.0", "symfony/console": "^4.2.12|^5.0|^6.0",
"symfony/finder": "^4.2|^5.0|^6.0", "symfony/finder": "^4.2.12|^5.0|^6.0",
"symfony/http-client": "^4.3|^5.0|^6.0", "symfony/http-client": "^4.3.8|^5.0|^6.0",
"symfony/process": "^5.4|^6.0" "symfony/process": "^5.4|^6.0"
}, },
"require-dev": { "require-dev": {
"ergebnis/phpstan-rules": "^0.15.0", "ergebnis/phpstan-rules": "^0.15.0",
"illuminate/console": "^5.8|^6.0|^7.0|^8.0|^9.0", "illuminate/console": "^5.8|^6.0|^7.0|^8.0|^9.0|^10.0",
"illuminate/support": "^5.8|^6.0|^7.0|^8.0|^9.0", "illuminate/support": "^5.8|^6.0|^7.0|^8.0|^9.0|^10.0",
"mockery/mockery": "^1.0", "mockery/mockery": "^1.0",
"phpstan/phpstan-strict-rules": "^0.12", "phpstan/phpstan-strict-rules": "^0.12",
"phpunit/phpunit": "^8.0|^9.0", "phpunit/phpunit": "^8.0|^9.0|^10.0",
"rector/rector": "0.11.56", "rector/rector": "0.11.56",
"symfony/var-dumper": "^4.2|^5.0|^6.0", "symfony/var-dumper": "^4.2.12|^5.0|^6.0",
"thecodingmachine/phpstan-strict-rules": "^0.12.0" "thecodingmachine/phpstan-strict-rules": "^0.12.0"
}, },
"suggest": { "suggest": {
@ -13977,7 +13970,7 @@
], ],
"support": { "support": {
"issues": "https://github.com/nunomaduro/phpinsights/issues", "issues": "https://github.com/nunomaduro/phpinsights/issues",
"source": "https://github.com/nunomaduro/phpinsights/tree/v2.7.0" "source": "https://github.com/nunomaduro/phpinsights/tree/v2.8.0"
}, },
"funding": [ "funding": [
{ {
@ -13993,7 +13986,7 @@
"type": "github" "type": "github"
} }
], ],
"time": "2023-01-30T20:28:59+00:00" "time": "2023-03-18T18:38:03+00:00"
}, },
{ {
"name": "phar-io/manifest", "name": "phar-io/manifest",
@ -14228,86 +14221,26 @@
}, },
"time": "2022-05-03T12:16:34+00:00" "time": "2022-05-03T12:16:34+00:00"
}, },
{
"name": "phploc/phploc",
"version": "7.0.2",
"source": {
"type": "git",
"url": "https://github.com/sebastianbergmann/phploc.git",
"reference": "af0d5fc84f3f7725513ba59cdcbe670ac2a4532a"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/sebastianbergmann/phploc/zipball/af0d5fc84f3f7725513ba59cdcbe670ac2a4532a",
"reference": "af0d5fc84f3f7725513ba59cdcbe670ac2a4532a",
"shasum": ""
},
"require": {
"ext-dom": "*",
"ext-json": "*",
"php": ">=7.3",
"phpunit/php-file-iterator": "^3.0",
"sebastian/cli-parser": "^1.0",
"sebastian/version": "^3.0"
},
"bin": [
"phploc"
],
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "7.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": "A tool for quickly measuring the size of a PHP project.",
"homepage": "https://github.com/sebastianbergmann/phploc",
"support": {
"issues": "https://github.com/sebastianbergmann/phploc/issues",
"source": "https://github.com/sebastianbergmann/phploc/tree/7.0.2"
},
"funding": [
{
"url": "https://github.com/sebastianbergmann",
"type": "github"
}
],
"abandoned": true,
"time": "2020-12-07T05:51:20+00:00"
},
{ {
"name": "phpstan/phpdoc-parser", "name": "phpstan/phpdoc-parser",
"version": "1.15.3", "version": "1.22.1",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/phpstan/phpdoc-parser.git", "url": "https://github.com/phpstan/phpdoc-parser.git",
"reference": "61800f71a5526081d1b5633766aa88341f1ade76" "reference": "65c39594fbd8c67abfc68bb323f86447bab79cc0"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/phpstan/phpdoc-parser/zipball/61800f71a5526081d1b5633766aa88341f1ade76", "url": "https://api.github.com/repos/phpstan/phpdoc-parser/zipball/65c39594fbd8c67abfc68bb323f86447bab79cc0",
"reference": "61800f71a5526081d1b5633766aa88341f1ade76", "reference": "65c39594fbd8c67abfc68bb323f86447bab79cc0",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
"php": "^7.2 || ^8.0" "php": "^7.2 || ^8.0"
}, },
"require-dev": { "require-dev": {
"doctrine/annotations": "^2.0",
"nikic/php-parser": "^4.15",
"php-parallel-lint/php-parallel-lint": "^1.2", "php-parallel-lint/php-parallel-lint": "^1.2",
"phpstan/extension-installer": "^1.0", "phpstan/extension-installer": "^1.0",
"phpstan/phpstan": "^1.5", "phpstan/phpstan": "^1.5",
@ -14331,9 +14264,9 @@
"description": "PHPDoc parser with support for nullable, intersection and generic types", "description": "PHPDoc parser with support for nullable, intersection and generic types",
"support": { "support": {
"issues": "https://github.com/phpstan/phpdoc-parser/issues", "issues": "https://github.com/phpstan/phpdoc-parser/issues",
"source": "https://github.com/phpstan/phpdoc-parser/tree/1.15.3" "source": "https://github.com/phpstan/phpdoc-parser/tree/1.22.1"
}, },
"time": "2022-12-20T20:56:55+00:00" "time": "2023-06-29T20:46:06+00:00"
}, },
{ {
"name": "phpstan/phpstan", "name": "phpstan/phpstan",
@ -14876,23 +14809,23 @@
}, },
{ {
"name": "react/promise", "name": "react/promise",
"version": "v2.9.0", "version": "v2.10.0",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/reactphp/promise.git", "url": "https://github.com/reactphp/promise.git",
"reference": "234f8fd1023c9158e2314fa9d7d0e6a83db42910" "reference": "f913fb8cceba1e6644b7b90c4bfb678ed8a3ef38"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/reactphp/promise/zipball/234f8fd1023c9158e2314fa9d7d0e6a83db42910", "url": "https://api.github.com/repos/reactphp/promise/zipball/f913fb8cceba1e6644b7b90c4bfb678ed8a3ef38",
"reference": "234f8fd1023c9158e2314fa9d7d0e6a83db42910", "reference": "f913fb8cceba1e6644b7b90c4bfb678ed8a3ef38",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
"php": ">=5.4.0" "php": ">=5.4.0"
}, },
"require-dev": { "require-dev": {
"phpunit/phpunit": "^9.3 || ^5.7 || ^4.8.36" "phpunit/phpunit": "^9.5 || ^5.7 || ^4.8.36"
}, },
"type": "library", "type": "library",
"autoload": { "autoload": {
@ -14936,19 +14869,15 @@
], ],
"support": { "support": {
"issues": "https://github.com/reactphp/promise/issues", "issues": "https://github.com/reactphp/promise/issues",
"source": "https://github.com/reactphp/promise/tree/v2.9.0" "source": "https://github.com/reactphp/promise/tree/v2.10.0"
}, },
"funding": [ "funding": [
{ {
"url": "https://github.com/WyriHaximus", "url": "https://opencollective.com/reactphp",
"type": "github" "type": "open_collective"
},
{
"url": "https://github.com/clue",
"type": "github"
} }
], ],
"time": "2022-02-11T10:27:51+00:00" "time": "2023-05-02T15:15:43+00:00"
}, },
{ {
"name": "sebastian/cli-parser", "name": "sebastian/cli-parser",
@ -15636,16 +15565,16 @@
}, },
{ {
"name": "seld/jsonlint", "name": "seld/jsonlint",
"version": "1.9.0", "version": "1.10.0",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/Seldaek/jsonlint.git", "url": "https://github.com/Seldaek/jsonlint.git",
"reference": "4211420d25eba80712bff236a98960ef68b866b7" "reference": "594fd6462aad8ecee0b45ca5045acea4776667f1"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/Seldaek/jsonlint/zipball/4211420d25eba80712bff236a98960ef68b866b7", "url": "https://api.github.com/repos/Seldaek/jsonlint/zipball/594fd6462aad8ecee0b45ca5045acea4776667f1",
"reference": "4211420d25eba80712bff236a98960ef68b866b7", "reference": "594fd6462aad8ecee0b45ca5045acea4776667f1",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -15684,7 +15613,7 @@
], ],
"support": { "support": {
"issues": "https://github.com/Seldaek/jsonlint/issues", "issues": "https://github.com/Seldaek/jsonlint/issues",
"source": "https://github.com/Seldaek/jsonlint/tree/1.9.0" "source": "https://github.com/Seldaek/jsonlint/tree/1.10.0"
}, },
"funding": [ "funding": [
{ {
@ -15696,7 +15625,7 @@
"type": "tidelift" "type": "tidelift"
} }
], ],
"time": "2022-04-01T13:37:23+00:00" "time": "2023-05-11T13:16:46+00:00"
}, },
{ {
"name": "seld/phar-utils", "name": "seld/phar-utils",
@ -15748,32 +15677,32 @@
}, },
{ {
"name": "slevomat/coding-standard", "name": "slevomat/coding-standard",
"version": "8.8.0", "version": "8.13.1",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/slevomat/coding-standard.git", "url": "https://github.com/slevomat/coding-standard.git",
"reference": "59e25146a4ef0a7b194c5bc55b32dd414345db89" "reference": "a13c15e20f2d307a1ca8dec5313ec462a4466470"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/slevomat/coding-standard/zipball/59e25146a4ef0a7b194c5bc55b32dd414345db89", "url": "https://api.github.com/repos/slevomat/coding-standard/zipball/a13c15e20f2d307a1ca8dec5313ec462a4466470",
"reference": "59e25146a4ef0a7b194c5bc55b32dd414345db89", "reference": "a13c15e20f2d307a1ca8dec5313ec462a4466470",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
"dealerdirect/phpcodesniffer-composer-installer": "^0.6.2 || ^0.7 || ^1.0", "dealerdirect/phpcodesniffer-composer-installer": "^0.6.2 || ^0.7 || ^1.0",
"php": "^7.2 || ^8.0", "php": "^7.2 || ^8.0",
"phpstan/phpdoc-parser": ">=1.15.2 <1.16.0", "phpstan/phpdoc-parser": "^1.22.0",
"squizlabs/php_codesniffer": "^3.7.1" "squizlabs/php_codesniffer": "^3.7.1"
}, },
"require-dev": { "require-dev": {
"phing/phing": "2.17.4", "phing/phing": "2.17.4",
"php-parallel-lint/php-parallel-lint": "1.3.2", "php-parallel-lint/php-parallel-lint": "1.3.2",
"phpstan/phpstan": "1.4.10|1.9.6", "phpstan/phpstan": "1.10.21",
"phpstan/phpstan-deprecation-rules": "1.1.1", "phpstan/phpstan-deprecation-rules": "1.1.3",
"phpstan/phpstan-phpunit": "1.0.0|1.3.3", "phpstan/phpstan-phpunit": "1.3.13",
"phpstan/phpstan-strict-rules": "1.4.4", "phpstan/phpstan-strict-rules": "1.5.1",
"phpunit/phpunit": "7.5.20|8.5.21|9.5.27" "phpunit/phpunit": "7.5.20|8.5.21|9.6.8|10.2.2"
}, },
"type": "phpcodesniffer-standard", "type": "phpcodesniffer-standard",
"extra": { "extra": {
@ -15783,7 +15712,7 @@
}, },
"autoload": { "autoload": {
"psr-4": { "psr-4": {
"SlevomatCodingStandard\\": "SlevomatCodingStandard" "SlevomatCodingStandard\\": "SlevomatCodingStandard/"
} }
}, },
"notification-url": "https://packagist.org/downloads/", "notification-url": "https://packagist.org/downloads/",
@ -15797,7 +15726,7 @@
], ],
"support": { "support": {
"issues": "https://github.com/slevomat/coding-standard/issues", "issues": "https://github.com/slevomat/coding-standard/issues",
"source": "https://github.com/slevomat/coding-standard/tree/8.8.0" "source": "https://github.com/slevomat/coding-standard/tree/8.13.1"
}, },
"funding": [ "funding": [
{ {
@ -15809,7 +15738,7 @@
"type": "tidelift" "type": "tidelift"
} }
], ],
"time": "2023-01-09T10:46:13+00:00" "time": "2023-06-25T12:52:34+00:00"
}, },
{ {
"name": "spatie/array-to-xml", "name": "spatie/array-to-xml",
@ -15877,16 +15806,16 @@
}, },
{ {
"name": "symfony/cache", "name": "symfony/cache",
"version": "v5.4.19", "version": "v5.4.25",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symfony/cache.git", "url": "https://github.com/symfony/cache.git",
"reference": "e9147c89fdfdc5d5ef798bb7193f23726ad609f5" "reference": "e2013521c0f07473ae69a01fce0af78fc3ec0f23"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/symfony/cache/zipball/e9147c89fdfdc5d5ef798bb7193f23726ad609f5", "url": "https://api.github.com/repos/symfony/cache/zipball/e2013521c0f07473ae69a01fce0af78fc3ec0f23",
"reference": "e9147c89fdfdc5d5ef798bb7193f23726ad609f5", "reference": "e2013521c0f07473ae69a01fce0af78fc3ec0f23",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -15954,7 +15883,7 @@
"psr6" "psr6"
], ],
"support": { "support": {
"source": "https://github.com/symfony/cache/tree/v5.4.19" "source": "https://github.com/symfony/cache/tree/v5.4.25"
}, },
"funding": [ "funding": [
{ {
@ -15970,7 +15899,7 @@
"type": "tidelift" "type": "tidelift"
} }
], ],
"time": "2023-01-19T09:49:58+00:00" "time": "2023-06-22T08:06:06+00:00"
}, },
{ {
"name": "symfony/cache-contracts", "name": "symfony/cache-contracts",
@ -16127,22 +16056,23 @@
}, },
{ {
"name": "symfony/filesystem", "name": "symfony/filesystem",
"version": "v6.0.19", "version": "v5.4.25",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symfony/filesystem.git", "url": "https://github.com/symfony/filesystem.git",
"reference": "3d49eec03fda1f0fc19b7349fbbe55ebc1004214" "reference": "0ce3a62c9579a53358d3a7eb6b3dfb79789a6364"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/symfony/filesystem/zipball/3d49eec03fda1f0fc19b7349fbbe55ebc1004214", "url": "https://api.github.com/repos/symfony/filesystem/zipball/0ce3a62c9579a53358d3a7eb6b3dfb79789a6364",
"reference": "3d49eec03fda1f0fc19b7349fbbe55ebc1004214", "reference": "0ce3a62c9579a53358d3a7eb6b3dfb79789a6364",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
"php": ">=8.0.2", "php": ">=7.2.5",
"symfony/polyfill-ctype": "~1.8", "symfony/polyfill-ctype": "~1.8",
"symfony/polyfill-mbstring": "~1.8" "symfony/polyfill-mbstring": "~1.8",
"symfony/polyfill-php80": "^1.16"
}, },
"type": "library", "type": "library",
"autoload": { "autoload": {
@ -16170,7 +16100,7 @@
"description": "Provides basic utilities for the filesystem", "description": "Provides basic utilities for the filesystem",
"homepage": "https://symfony.com", "homepage": "https://symfony.com",
"support": { "support": {
"source": "https://github.com/symfony/filesystem/tree/v6.0.19" "source": "https://github.com/symfony/filesystem/tree/v5.4.25"
}, },
"funding": [ "funding": [
{ {
@ -16186,33 +16116,36 @@
"type": "tidelift" "type": "tidelift"
} }
], ],
"time": "2023-01-20T17:44:14+00:00" "time": "2023-05-31T13:04:02+00:00"
}, },
{ {
"name": "symfony/http-client", "name": "symfony/http-client",
"version": "v6.0.20", "version": "v5.4.25",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symfony/http-client.git", "url": "https://github.com/symfony/http-client.git",
"reference": "541c04560da1875f62c963c3aab6ea12a7314e11" "reference": "ccbb572627466f03a3d7aa1b23483787f5969afc"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/symfony/http-client/zipball/541c04560da1875f62c963c3aab6ea12a7314e11", "url": "https://api.github.com/repos/symfony/http-client/zipball/ccbb572627466f03a3d7aa1b23483787f5969afc",
"reference": "541c04560da1875f62c963c3aab6ea12a7314e11", "reference": "ccbb572627466f03a3d7aa1b23483787f5969afc",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
"php": ">=8.0.2", "php": ">=7.2.5",
"psr/log": "^1|^2|^3", "psr/log": "^1|^2|^3",
"symfony/http-client-contracts": "^3", "symfony/deprecation-contracts": "^2.1|^3",
"symfony/http-client-contracts": "^2.4",
"symfony/polyfill-php73": "^1.11",
"symfony/polyfill-php80": "^1.16",
"symfony/service-contracts": "^1.0|^2|^3" "symfony/service-contracts": "^1.0|^2|^3"
}, },
"provide": { "provide": {
"php-http/async-client-implementation": "*", "php-http/async-client-implementation": "*",
"php-http/client-implementation": "*", "php-http/client-implementation": "*",
"psr/http-client-implementation": "1.0", "psr/http-client-implementation": "1.0",
"symfony/http-client-implementation": "3.0" "symfony/http-client-implementation": "2.4"
}, },
"require-dev": { "require-dev": {
"amphp/amp": "^2.5", "amphp/amp": "^2.5",
@ -16222,11 +16155,12 @@
"guzzlehttp/promises": "^1.4", "guzzlehttp/promises": "^1.4",
"nyholm/psr7": "^1.0", "nyholm/psr7": "^1.0",
"php-http/httplug": "^1.0|^2.0", "php-http/httplug": "^1.0|^2.0",
"php-http/message-factory": "^1.0",
"psr/http-client": "^1.0", "psr/http-client": "^1.0",
"symfony/dependency-injection": "^5.4|^6.0", "symfony/dependency-injection": "^4.4|^5.0|^6.0",
"symfony/http-kernel": "^5.4|^6.0", "symfony/http-kernel": "^4.4.13|^5.1.5|^6.0",
"symfony/process": "^5.4|^6.0", "symfony/process": "^4.4|^5.0|^6.0",
"symfony/stopwatch": "^5.4|^6.0" "symfony/stopwatch": "^4.4|^5.0|^6.0"
}, },
"type": "library", "type": "library",
"autoload": { "autoload": {
@ -16253,8 +16187,11 @@
], ],
"description": "Provides powerful methods to fetch HTTP resources synchronously or asynchronously", "description": "Provides powerful methods to fetch HTTP resources synchronously or asynchronously",
"homepage": "https://symfony.com", "homepage": "https://symfony.com",
"keywords": [
"http"
],
"support": { "support": {
"source": "https://github.com/symfony/http-client/tree/v6.0.20" "source": "https://github.com/symfony/http-client/tree/v5.4.25"
}, },
"funding": [ "funding": [
{ {
@ -16270,24 +16207,24 @@
"type": "tidelift" "type": "tidelift"
} }
], ],
"time": "2023-01-30T15:41:07+00:00" "time": "2023-06-21T14:44:30+00:00"
}, },
{ {
"name": "symfony/http-client-contracts", "name": "symfony/http-client-contracts",
"version": "v3.0.2", "version": "v2.5.2",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symfony/http-client-contracts.git", "url": "https://github.com/symfony/http-client-contracts.git",
"reference": "4184b9b63af1edaf35b6a7974c6f1f9f33294129" "reference": "ba6a9f0e8f3edd190520ee3b9a958596b6ca2e70"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/symfony/http-client-contracts/zipball/4184b9b63af1edaf35b6a7974c6f1f9f33294129", "url": "https://api.github.com/repos/symfony/http-client-contracts/zipball/ba6a9f0e8f3edd190520ee3b9a958596b6ca2e70",
"reference": "4184b9b63af1edaf35b6a7974c6f1f9f33294129", "reference": "ba6a9f0e8f3edd190520ee3b9a958596b6ca2e70",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
"php": ">=8.0.2" "php": ">=7.2.5"
}, },
"suggest": { "suggest": {
"symfony/http-client-implementation": "" "symfony/http-client-implementation": ""
@ -16295,7 +16232,7 @@
"type": "library", "type": "library",
"extra": { "extra": {
"branch-alias": { "branch-alias": {
"dev-main": "3.0-dev" "dev-main": "2.5-dev"
}, },
"thanks": { "thanks": {
"name": "symfony/contracts", "name": "symfony/contracts",
@ -16332,7 +16269,7 @@
"standards" "standards"
], ],
"support": { "support": {
"source": "https://github.com/symfony/http-client-contracts/tree/v3.0.2" "source": "https://github.com/symfony/http-client-contracts/tree/v2.5.2"
}, },
"funding": [ "funding": [
{ {
@ -16348,25 +16285,27 @@
"type": "tidelift" "type": "tidelift"
} }
], ],
"time": "2022-04-12T16:11:42+00:00" "time": "2022-04-12T15:48:08+00:00"
}, },
{ {
"name": "symfony/options-resolver", "name": "symfony/options-resolver",
"version": "v6.0.19", "version": "v5.4.21",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symfony/options-resolver.git", "url": "https://github.com/symfony/options-resolver.git",
"reference": "6a180d1c45e0d9797470ca9eb46215692de00fa3" "reference": "4fe5cf6ede71096839f0e4b4444d65dd3a7c1eb9"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/symfony/options-resolver/zipball/6a180d1c45e0d9797470ca9eb46215692de00fa3", "url": "https://api.github.com/repos/symfony/options-resolver/zipball/4fe5cf6ede71096839f0e4b4444d65dd3a7c1eb9",
"reference": "6a180d1c45e0d9797470ca9eb46215692de00fa3", "reference": "4fe5cf6ede71096839f0e4b4444d65dd3a7c1eb9",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
"php": ">=8.0.2", "php": ">=7.2.5",
"symfony/deprecation-contracts": "^2.1|^3" "symfony/deprecation-contracts": "^2.1|^3",
"symfony/polyfill-php73": "~1.0",
"symfony/polyfill-php80": "^1.16"
}, },
"type": "library", "type": "library",
"autoload": { "autoload": {
@ -16399,7 +16338,7 @@
"options" "options"
], ],
"support": { "support": {
"source": "https://github.com/symfony/options-resolver/tree/v6.0.19" "source": "https://github.com/symfony/options-resolver/tree/v5.4.21"
}, },
"funding": [ "funding": [
{ {
@ -16415,24 +16354,24 @@
"type": "tidelift" "type": "tidelift"
} }
], ],
"time": "2023-01-01T08:36:10+00:00" "time": "2023-02-14T08:03:56+00:00"
}, },
{ {
"name": "symfony/stopwatch", "name": "symfony/stopwatch",
"version": "v6.0.19", "version": "v5.4.21",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symfony/stopwatch.git", "url": "https://github.com/symfony/stopwatch.git",
"reference": "011e781839dd1d2eb8119f65ac516a530f60226d" "reference": "f83692cd869a6f2391691d40a01e8acb89e76fee"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/symfony/stopwatch/zipball/011e781839dd1d2eb8119f65ac516a530f60226d", "url": "https://api.github.com/repos/symfony/stopwatch/zipball/f83692cd869a6f2391691d40a01e8acb89e76fee",
"reference": "011e781839dd1d2eb8119f65ac516a530f60226d", "reference": "f83692cd869a6f2391691d40a01e8acb89e76fee",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
"php": ">=8.0.2", "php": ">=7.2.5",
"symfony/service-contracts": "^1|^2|^3" "symfony/service-contracts": "^1|^2|^3"
}, },
"type": "library", "type": "library",
@ -16461,7 +16400,7 @@
"description": "Provides a way to profile code", "description": "Provides a way to profile code",
"homepage": "https://symfony.com", "homepage": "https://symfony.com",
"support": { "support": {
"source": "https://github.com/symfony/stopwatch/tree/v6.0.19" "source": "https://github.com/symfony/stopwatch/tree/v5.4.21"
}, },
"funding": [ "funding": [
{ {
@ -16477,27 +16416,28 @@
"type": "tidelift" "type": "tidelift"
} }
], ],
"time": "2023-01-01T08:36:10+00:00" "time": "2023-02-14T08:03:56+00:00"
}, },
{ {
"name": "symfony/var-exporter", "name": "symfony/var-exporter",
"version": "v6.0.19", "version": "v5.4.21",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symfony/var-exporter.git", "url": "https://github.com/symfony/var-exporter.git",
"reference": "df56f53818c2d5d9f683f4ad2e365ba73a3b69d2" "reference": "be74908a6942fdd331554b3cec27ff41b45ccad4"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/symfony/var-exporter/zipball/df56f53818c2d5d9f683f4ad2e365ba73a3b69d2", "url": "https://api.github.com/repos/symfony/var-exporter/zipball/be74908a6942fdd331554b3cec27ff41b45ccad4",
"reference": "df56f53818c2d5d9f683f4ad2e365ba73a3b69d2", "reference": "be74908a6942fdd331554b3cec27ff41b45ccad4",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
"php": ">=8.0.2" "php": ">=7.2.5",
"symfony/polyfill-php80": "^1.16"
}, },
"require-dev": { "require-dev": {
"symfony/var-dumper": "^5.4|^6.0" "symfony/var-dumper": "^4.4.9|^5.0.9|^6.0"
}, },
"type": "library", "type": "library",
"autoload": { "autoload": {
@ -16533,7 +16473,7 @@
"serialize" "serialize"
], ],
"support": { "support": {
"source": "https://github.com/symfony/var-exporter/tree/v6.0.19" "source": "https://github.com/symfony/var-exporter/tree/v5.4.21"
}, },
"funding": [ "funding": [
{ {
@ -16549,7 +16489,7 @@
"type": "tidelift" "type": "tidelift"
} }
], ],
"time": "2023-01-13T08:34:10+00:00" "time": "2023-02-21T19:46:44+00:00"
}, },
{ {
"name": "theseer/tokenizer", "name": "theseer/tokenizer",
@ -16603,22 +16543,22 @@
}, },
{ {
"name": "vimeo/psalm", "name": "vimeo/psalm",
"version": "5.6.0", "version": "5.13.1",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/vimeo/psalm.git", "url": "https://github.com/vimeo/psalm.git",
"reference": "e784128902dfe01d489c4123d69918a9f3c1eac5" "reference": "086b94371304750d1c673315321a55d15fc59015"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/vimeo/psalm/zipball/e784128902dfe01d489c4123d69918a9f3c1eac5", "url": "https://api.github.com/repos/vimeo/psalm/zipball/086b94371304750d1c673315321a55d15fc59015",
"reference": "e784128902dfe01d489c4123d69918a9f3c1eac5", "reference": "086b94371304750d1c673315321a55d15fc59015",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
"amphp/amp": "^2.4.2", "amphp/amp": "^2.4.2",
"amphp/byte-stream": "^1.5", "amphp/byte-stream": "^1.5",
"composer/package-versions-deprecated": "^1.10.0", "composer-runtime-api": "^2",
"composer/semver": "^1.4 || ^2.0 || ^3.0", "composer/semver": "^1.4 || ^2.0 || ^3.0",
"composer/xdebug-handler": "^2.0 || ^3.0", "composer/xdebug-handler": "^2.0 || ^3.0",
"dnoegel/php-xdg-base-dir": "^0.1.1", "dnoegel/php-xdg-base-dir": "^0.1.1",
@ -16631,12 +16571,12 @@
"ext-tokenizer": "*", "ext-tokenizer": "*",
"felixfbecker/advanced-json-rpc": "^3.1", "felixfbecker/advanced-json-rpc": "^3.1",
"felixfbecker/language-server-protocol": "^1.5.2", "felixfbecker/language-server-protocol": "^1.5.2",
"fidry/cpu-core-counter": "^0.4.0", "fidry/cpu-core-counter": "^0.4.1 || ^0.5.1",
"netresearch/jsonmapper": "^1.0 || ^2.0 || ^3.0 || ^4.0", "netresearch/jsonmapper": "^1.0 || ^2.0 || ^3.0 || ^4.0",
"nikic/php-parser": "^4.13", "nikic/php-parser": "^4.14",
"php": "^7.4 || ~8.0.0 || ~8.1.0 || ~8.2.0", "php": "^7.4 || ~8.0.0 || ~8.1.0 || ~8.2.0",
"sebastian/diff": "^4.0 || ^5.0", "sebastian/diff": "^4.0 || ^5.0",
"spatie/array-to-xml": "^2.17.0", "spatie/array-to-xml": "^2.17.0 || ^3.0",
"symfony/console": "^4.1.6 || ^5.0 || ^6.0", "symfony/console": "^4.1.6 || ^5.0 || ^6.0",
"symfony/filesystem": "^5.4 || ^6.0" "symfony/filesystem": "^5.4 || ^6.0"
}, },
@ -16644,14 +16584,15 @@
"psalm/psalm": "self.version" "psalm/psalm": "self.version"
}, },
"require-dev": { "require-dev": {
"amphp/phpunit-util": "^2.0",
"bamarni/composer-bin-plugin": "^1.4", "bamarni/composer-bin-plugin": "^1.4",
"brianium/paratest": "^6.0", "brianium/paratest": "^6.9",
"ext-curl": "*", "ext-curl": "*",
"mockery/mockery": "^1.5", "mockery/mockery": "^1.5",
"nunomaduro/mock-final-classes": "^1.1", "nunomaduro/mock-final-classes": "^1.1",
"php-parallel-lint/php-parallel-lint": "^1.2", "php-parallel-lint/php-parallel-lint": "^1.2",
"phpstan/phpdoc-parser": "^1.6", "phpstan/phpdoc-parser": "^1.6",
"phpunit/phpunit": "^9.5", "phpunit/phpunit": "^9.6",
"psalm/plugin-mockery": "^1.1", "psalm/plugin-mockery": "^1.1",
"psalm/plugin-phpunit": "^0.18", "psalm/plugin-phpunit": "^0.18",
"slevomat/coding-standard": "^8.4", "slevomat/coding-standard": "^8.4",
@ -16697,13 +16638,14 @@
"keywords": [ "keywords": [
"code", "code",
"inspection", "inspection",
"php" "php",
"static analysis"
], ],
"support": { "support": {
"issues": "https://github.com/vimeo/psalm/issues", "issues": "https://github.com/vimeo/psalm/issues",
"source": "https://github.com/vimeo/psalm/tree/5.6.0" "source": "https://github.com/vimeo/psalm/tree/5.13.1"
}, },
"time": "2023-01-23T20:32:47+00:00" "time": "2023-06-27T16:39:49+00:00"
} }
], ],
"aliases": [], "aliases": [],

View file

@ -0,0 +1,54 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class AddPhoneFaxToLocations extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('locations', function (Blueprint $table) {
$table->string('phone', 20)->after('zip')->nullable()->default(null);
$table->string('fax', 20)->after('zip')->nullable()->default(null);
});
Schema::table('companies', function (Blueprint $table) {
$table->string('phone', 20)->after('name')->nullable()->default(null);
$table->string('fax', 20)->after('name')->nullable()->default(null);
});
Schema::table('departments', function (Blueprint $table) {
$table->string('phone', 20)->after('name')->nullable()->default(null);
$table->string('fax', 20)->after('name')->nullable()->default(null);
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('locations', function (Blueprint $table) {
$table->dropColumn('phone');
$table->dropColumn('fax');
});
Schema::table('companies', function (Blueprint $table) {
$table->dropColumn('phone');
$table->dropColumn('fax');
});
Schema::table('departments', function (Blueprint $table) {
$table->dropColumn('phone');
$table->dropColumn('fax');
});
}
}

63
package-lock.json generated
View file

@ -1354,9 +1354,9 @@
"integrity": "sha512-Ct5MqZkLGEXTVmQYbGtx9SVqD2fqwvdubdps5D3djjAkgkKwT918VNOz65pEHFaYTeWcukmJmH5SwsA9Tn2ObQ==" "integrity": "sha512-Ct5MqZkLGEXTVmQYbGtx9SVqD2fqwvdubdps5D3djjAkgkKwT918VNOz65pEHFaYTeWcukmJmH5SwsA9Tn2ObQ=="
}, },
"@jridgewell/source-map": { "@jridgewell/source-map": {
"version": "0.3.3", "version": "0.3.5",
"resolved": "https://registry.npmjs.org/@jridgewell/source-map/-/source-map-0.3.3.tgz", "resolved": "https://registry.npmjs.org/@jridgewell/source-map/-/source-map-0.3.5.tgz",
"integrity": "sha512-b+fsZXeLYi9fEULmfBrhxn4IrPlINf8fiNarzTof004v3lFdntdwa9PF7vFJqm3mg7s+ScJMxXaE3Acp1irZcg==", "integrity": "sha512-UTYAUj/wviwdsMfzoSJspJxbkH5o1snzwX0//0ENX1u/55kkZZkcTZP6u9bwKGkv+dkk9at4m1Cpt0uY80kcpQ==",
"requires": { "requires": {
"@jridgewell/gen-mapping": "^0.3.0", "@jridgewell/gen-mapping": "^0.3.0",
"@jridgewell/trace-mapping": "^0.3.9" "@jridgewell/trace-mapping": "^0.3.9"
@ -1565,9 +1565,9 @@
} }
}, },
"@types/eslint": { "@types/eslint": {
"version": "8.40.0", "version": "8.44.0",
"resolved": "https://registry.npmjs.org/@types/eslint/-/eslint-8.40.0.tgz", "resolved": "https://registry.npmjs.org/@types/eslint/-/eslint-8.44.0.tgz",
"integrity": "sha512-nbq2mvc/tBrK9zQQuItvjJl++GTN5j06DaPtp3hZCpngmG6Q3xoyEmd0TwZI0gAy/G1X0zhGBbr2imsGFdFV0g==", "integrity": "sha512-gsF+c/0XOguWgaOgvFs+xnnRqt9GwgTvIks36WpE6ueeI4KCEHHd8K/CKHqhOqrJKsYH8m27kRzQEvWXAwXUTw==",
"requires": { "requires": {
"@types/estree": "*", "@types/estree": "*",
"@types/json-schema": "*" "@types/json-schema": "*"
@ -2065,9 +2065,9 @@
} }
}, },
"acorn": { "acorn": {
"version": "8.8.2", "version": "8.10.0",
"resolved": "https://registry.npmjs.org/acorn/-/acorn-8.8.2.tgz", "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.10.0.tgz",
"integrity": "sha512-xjIYgE8HBrkpd/sJqOGNspf8uHG+NOHGOw6a/Urj8taM2EXfdNAH2oFcPeIFfsv3+kz/mJrS5VuMqbNLjCa2vw==" "integrity": "sha512-F0SAmZ8iUtS//m8DmCTA0jlh6TDKkHQyK6xc6V4KDTyZKA9dnvX9/3sRTVQrWm79glUAZbnmmNcdYwUIHWVybw=="
}, },
"acorn-import-assertions": { "acorn-import-assertions": {
"version": "1.9.0", "version": "1.9.0",
@ -3154,9 +3154,9 @@
"integrity": "sha1-EQPWvADPv6jPyaJZmrUYxVZD2j8=" "integrity": "sha1-EQPWvADPv6jPyaJZmrUYxVZD2j8="
}, },
"bootstrap-table": { "bootstrap-table": {
"version": "1.21.4", "version": "1.22.0",
"resolved": "https://registry.npmjs.org/bootstrap-table/-/bootstrap-table-1.21.4.tgz", "resolved": "https://registry.npmjs.org/bootstrap-table/-/bootstrap-table-1.22.0.tgz",
"integrity": "sha512-Vp0kwkCsZzBINiA1KJ46LSkIa4oA0r6GSuzERZEqkUU8/0JDij2aG4CdYxiOm/UFCPZ9+KuAE4zSjxJLxg5jWw==" "integrity": "sha512-N1MLgPcIOa9cfwr7CaoLOekKJ9nHq/z8lk6LsC3mLUZq77VeMC/vTh+EqN7+iT8JADmoAsX7RqQbYfVxF9ZCig=="
}, },
"brace-expansion": { "brace-expansion": {
"version": "1.1.11", "version": "1.1.11",
@ -4754,9 +4754,9 @@
} }
}, },
"enhanced-resolve": { "enhanced-resolve": {
"version": "5.14.1", "version": "5.15.0",
"resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.14.1.tgz", "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.15.0.tgz",
"integrity": "sha512-Vklwq2vDKtl0y/vtwjSesgJ5MYS7Etuk5txS8VdKL4AOS1aUlD96zqIfsOSLQsdv3xgMRbtkWM8eG9XDfKUPow==", "integrity": "sha512-LXYT42KJ7lpIKECr2mAXIaMldcNCh/7E0KBKOu4KSfkHmP+mZmSs+8V5gBAqisWBy0OO4W5Oyys0GO1Y8KtdKg==",
"requires": { "requires": {
"graceful-fs": "^4.2.4", "graceful-fs": "^4.2.4",
"tapable": "^2.2.0" "tapable": "^2.2.0"
@ -4861,9 +4861,9 @@
} }
}, },
"es-module-lexer": { "es-module-lexer": {
"version": "1.2.1", "version": "1.3.0",
"resolved": "https://registry.npmjs.org/es-module-lexer/-/es-module-lexer-1.2.1.tgz", "resolved": "https://registry.npmjs.org/es-module-lexer/-/es-module-lexer-1.3.0.tgz",
"integrity": "sha512-9978wrXM50Y4rTMmW5kXIC09ZdXQZqkE4mxhwkd8VbzsGkXGPgV4zWuqQJgCEzYngdo2dYDa0l8xhX4fkSwJSg==" "integrity": "sha512-vZK7T0N2CBmBOixhmjdqx2gWVbFZ4DXZ/NyRMZVlJXPa7CyFS+/a4QQsDGDQy9ZfEzxFuNEsMLeQJnKP2p5/JA=="
}, },
"es-to-primitive": { "es-to-primitive": {
"version": "1.2.1", "version": "1.2.1",
@ -19679,9 +19679,9 @@
} }
}, },
"webpack": { "webpack": {
"version": "5.86.0", "version": "5.88.1",
"resolved": "https://registry.npmjs.org/webpack/-/webpack-5.86.0.tgz", "resolved": "https://registry.npmjs.org/webpack/-/webpack-5.88.1.tgz",
"integrity": "sha512-3BOvworZ8SO/D4GVP+GoRC3fVeg5MO4vzmq8TJJEkdmopxyazGDxN8ClqN12uzrZW9Tv8EED8v5VSb6Sqyi0pg==", "integrity": "sha512-FROX3TxQnC/ox4N+3xQoWZzvGXSuscxR32rbzjpXgEzWudJFEJBpdlkkob2ylrv5yzzufD1zph1OoFsLtm6stQ==",
"requires": { "requires": {
"@types/eslint-scope": "^3.7.3", "@types/eslint-scope": "^3.7.3",
"@types/estree": "^1.0.0", "@types/estree": "^1.0.0",
@ -19692,7 +19692,7 @@
"acorn-import-assertions": "^1.9.0", "acorn-import-assertions": "^1.9.0",
"browserslist": "^4.14.5", "browserslist": "^4.14.5",
"chrome-trace-event": "^1.0.2", "chrome-trace-event": "^1.0.2",
"enhanced-resolve": "^5.14.1", "enhanced-resolve": "^5.15.0",
"es-module-lexer": "^1.2.1", "es-module-lexer": "^1.2.1",
"eslint-scope": "5.1.1", "eslint-scope": "5.1.1",
"events": "^3.2.0", "events": "^3.2.0",
@ -19702,7 +19702,7 @@
"loader-runner": "^4.2.0", "loader-runner": "^4.2.0",
"mime-types": "^2.1.27", "mime-types": "^2.1.27",
"neo-async": "^2.6.2", "neo-async": "^2.6.2",
"schema-utils": "^3.1.2", "schema-utils": "^3.2.0",
"tapable": "^2.1.1", "tapable": "^2.1.1",
"terser-webpack-plugin": "^5.3.7", "terser-webpack-plugin": "^5.3.7",
"watchpack": "^2.4.0", "watchpack": "^2.4.0",
@ -19733,11 +19733,6 @@
"resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.12.tgz", "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.12.tgz",
"integrity": "sha512-Hr5Jfhc9eYOQNPYO5WLDq/n4jqijdHNlDXjuAQkkt+mWdQR+XJToOHrsD4cPaMXpn6KO7y2+wM8AZEs8VpBLVA==" "integrity": "sha512-Hr5Jfhc9eYOQNPYO5WLDq/n4jqijdHNlDXjuAQkkt+mWdQR+XJToOHrsD4cPaMXpn6KO7y2+wM8AZEs8VpBLVA=="
}, },
"acorn-import-assertions": {
"version": "1.9.0",
"resolved": "https://registry.npmjs.org/acorn-import-assertions/-/acorn-import-assertions-1.9.0.tgz",
"integrity": "sha512-cmMwop9x+8KFhxvKrKfPYmN6/pKTYYHBqLa0DfvVZcKMJWNyWLnaqND7dx/qn66R7ewM1UX5XMaDVP5wlVTaVA=="
},
"commander": { "commander": {
"version": "2.20.3", "version": "2.20.3",
"resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz",
@ -19749,9 +19744,9 @@
"integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==" "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ=="
}, },
"schema-utils": { "schema-utils": {
"version": "3.2.0", "version": "3.3.0",
"resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.2.0.tgz", "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.3.0.tgz",
"integrity": "sha512-0zTyLGyDJYd/MBxG1AhJkKa6fpEBds4OQO2ut0w7OYG+ZGhGea09lijvzsqegYSik88zc7cUtIlnnO+/BvD6gQ==", "integrity": "sha512-pN/yOAvcC+5rQ5nERGuwrjLlYvLTbCibnZ1I7B1LaiAz9BRBlE9GMgE/eqV30P7aJQUf7Ddimy/RsbYO/GrVGg==",
"requires": { "requires": {
"@types/json-schema": "^7.0.8", "@types/json-schema": "^7.0.8",
"ajv": "^6.12.5", "ajv": "^6.12.5",
@ -19767,9 +19762,9 @@
} }
}, },
"terser": { "terser": {
"version": "5.17.7", "version": "5.18.2",
"resolved": "https://registry.npmjs.org/terser/-/terser-5.17.7.tgz", "resolved": "https://registry.npmjs.org/terser/-/terser-5.18.2.tgz",
"integrity": "sha512-/bi0Zm2C6VAexlGgLlVxA0P2lru/sdLyfCVaRMfKVo9nWxbmz7f/sD8VPybPeSUJaJcwmCJis9pBIhcVcG1QcQ==", "integrity": "sha512-Ah19JS86ypbJzTzvUCX7KOsEIhDaRONungA4aYBjEP3JZRf4ocuDzTg4QWZnPn9DEMiMYGJPiSOy7aykoCc70w==",
"requires": { "requires": {
"@jridgewell/source-map": "^0.3.3", "@jridgewell/source-map": "^0.3.3",
"acorn": "^8.8.2", "acorn": "^8.8.2",

View file

@ -25,7 +25,7 @@
}, },
"dependencies": { "dependencies": {
"@fortawesome/fontawesome-free": "^6.4.0", "@fortawesome/fontawesome-free": "^6.4.0",
"acorn": "^8.8.2", "acorn": "^8.9.0",
"acorn-import-assertions": "^1.9.0", "acorn-import-assertions": "^1.9.0",
"admin-lte": "^2.4.18", "admin-lte": "^2.4.18",
"ajv": "^6.12.6", "ajv": "^6.12.6",
@ -34,7 +34,7 @@
"bootstrap-colorpicker": "^2.5.3", "bootstrap-colorpicker": "^2.5.3",
"bootstrap-datepicker": "^1.10.0", "bootstrap-datepicker": "^1.10.0",
"bootstrap-less": "^3.3.8", "bootstrap-less": "^3.3.8",
"bootstrap-table": "1.21.4", "bootstrap-table": "1.22.0",
"chart.js": "^2.9.4", "chart.js": "^2.9.4",
"css-loader": "^4.0.0", "css-loader": "^4.0.0",
"ekko-lightbox": "^5.1.1", "ekko-lightbox": "^5.1.1",
@ -54,6 +54,6 @@
"tableexport.jquery.plugin": "1.27.0", "tableexport.jquery.plugin": "1.27.0",
"tether": "^1.4.0", "tether": "^1.4.0",
"vue-resource": "^1.5.2", "vue-resource": "^1.5.2",
"webpack": "^5.83.1" "webpack": "^5.87.0"
} }
} }

File diff suppressed because one or more lines are too long

View file

@ -18,7 +18,7 @@
"/css/dist/skins/skin-green.css": "/css/dist/skins/skin-green.css?id=b48f4d8af0e1ca5621c161e93951109f", "/css/dist/skins/skin-green.css": "/css/dist/skins/skin-green.css?id=b48f4d8af0e1ca5621c161e93951109f",
"/css/dist/skins/skin-contrast.css": "/css/dist/skins/skin-contrast.css?id=f0fbbb0ac729ea092578fb05ca615460", "/css/dist/skins/skin-contrast.css": "/css/dist/skins/skin-contrast.css?id=f0fbbb0ac729ea092578fb05ca615460",
"/css/dist/skins/skin-red.css": "/css/dist/skins/skin-red.css?id=b9a74ec0cd68f83e7480d5ae39919beb", "/css/dist/skins/skin-red.css": "/css/dist/skins/skin-red.css?id=b9a74ec0cd68f83e7480d5ae39919beb",
"/css/dist/all.css": "/css/dist/all.css?id=0143ef0e41adde5bdba76e397ec383c5", "/css/dist/all.css": "/css/dist/all.css?id=254bea040c8f82f0000528f9e3d659c8",
"/css/dist/signature-pad.css": "/css/dist/signature-pad.css?id=6a89d3cd901305e66ced1cf5f13147f7", "/css/dist/signature-pad.css": "/css/dist/signature-pad.css?id=6a89d3cd901305e66ced1cf5f13147f7",
"/css/dist/signature-pad.min.css": "/css/dist/signature-pad.min.css?id=6a89d3cd901305e66ced1cf5f13147f7", "/css/dist/signature-pad.min.css": "/css/dist/signature-pad.min.css?id=6a89d3cd901305e66ced1cf5f13147f7",
"/css/webfonts/fa-brands-400.ttf": "/css/webfonts/fa-brands-400.ttf?id=e2e2b1797606a266ed55549f5bb5a179", "/css/webfonts/fa-brands-400.ttf": "/css/webfonts/fa-brands-400.ttf?id=e2e2b1797606a266ed55549f5bb5a179",
@ -29,9 +29,9 @@
"/css/webfonts/fa-solid-900.woff2": "/css/webfonts/fa-solid-900.woff2?id=eea38615e7b5dbbaf88c263f2230cc32", "/css/webfonts/fa-solid-900.woff2": "/css/webfonts/fa-solid-900.woff2?id=eea38615e7b5dbbaf88c263f2230cc32",
"/css/webfonts/fa-v4compatibility.ttf": "/css/webfonts/fa-v4compatibility.ttf?id=6ebbf5afc34f54463abc2b81ca637364", "/css/webfonts/fa-v4compatibility.ttf": "/css/webfonts/fa-v4compatibility.ttf?id=6ebbf5afc34f54463abc2b81ca637364",
"/css/webfonts/fa-v4compatibility.woff2": "/css/webfonts/fa-v4compatibility.woff2?id=67b8a78b7e80e805cfa4ee0421895ba4", "/css/webfonts/fa-v4compatibility.woff2": "/css/webfonts/fa-v4compatibility.woff2?id=67b8a78b7e80e805cfa4ee0421895ba4",
"/css/dist/bootstrap-table.css": "/css/dist/bootstrap-table.css?id=2265e072e44c782c901dce8e037d97fc", "/css/dist/bootstrap-table.css": "/css/dist/bootstrap-table.css?id=f5935cf8eaf9c1f71da0c9245d730471",
"/js/build/vendor.js": "/js/build/vendor.js?id=3592e07ae9a6d1805a4ea3bd3c034aef", "/js/build/vendor.js": "/js/build/vendor.js?id=3592e07ae9a6d1805a4ea3bd3c034aef",
"/js/dist/bootstrap-table.js": "/js/dist/bootstrap-table.js?id=a0e44dba789031b34ef150a01318b865", "/js/dist/bootstrap-table.js": "/js/dist/bootstrap-table.js?id=40e2dc8b5b29e244bb545f78e2a3242b",
"/js/dist/all.js": "/js/dist/all.js?id=fc2a78ab0c9ec6ce0961990388a1b23f", "/js/dist/all.js": "/js/dist/all.js?id=fc2a78ab0c9ec6ce0961990388a1b23f",
"/css/dist/skins/skin-green.min.css": "/css/dist/skins/skin-green.min.css?id=b48f4d8af0e1ca5621c161e93951109f", "/css/dist/skins/skin-green.min.css": "/css/dist/skins/skin-green.min.css?id=b48f4d8af0e1ca5621c161e93951109f",
"/css/dist/skins/skin-green-dark.min.css": "/css/dist/skins/skin-green-dark.min.css?id=44f9320d0739f419c9246f7f39395b02", "/css/dist/skins/skin-green-dark.min.css": "/css/dist/skins/skin-green-dark.min.css?id=44f9320d0739f419c9246f7f39395b02",

View file

@ -43,7 +43,7 @@
@if ($snipeSettings->default_eula_text!='') @if ($snipeSettings->default_eula_text!='')
<label class="form-control"> <label class="form-control">
{{ Form::checkbox('use_default_eula', '1', old('use_default_eula', $item->use_default_eula), ['aria-label'=>'use_default_eula']) }} {{ Form::checkbox('use_default_eula', '1', old('use_default_eula', $item->use_default_eula), ['aria-label'=>'use_default_eula']) }}
{!! trans('admin/categories/general.use_default_eula') !!} <span>{!! trans('admin/categories/general.use_default_eula') !!}</span>
</label> </label>
@else @else
<label class="form-control form-control--disabled"> <label class="form-control form-control--disabled">

View file

@ -9,6 +9,8 @@
{{-- Page content --}} {{-- Page content --}}
@section('inputFields') @section('inputFields')
@include ('partials.forms.edit.name', ['translated_name' => trans('admin/companies/table.name')]) @include ('partials.forms.edit.name', ['translated_name' => trans('admin/companies/table.name')])
@include ('partials.forms.edit.phone')
@include ('partials.forms.edit.fax')
@include ('partials.forms.edit.image-upload', ['image_path' => app('companies_upload_path')]) @include ('partials.forms.edit.image-upload', ['image_path' => app('companies_upload_path')])
@stop @stop

View file

@ -16,6 +16,9 @@
<input id="hidden_company_id" type="hidden" name="company_id" value="{{ Auth::user()->company_id }}"> <input id="hidden_company_id" type="hidden" name="company_id" value="{{ Auth::user()->company_id }}">
@endif @endif
@include ('partials.forms.edit.phone')
@include ('partials.forms.edit.fax')
<!-- Manager --> <!-- Manager -->
@include ('partials.forms.edit.user-select', ['translated_name' => trans('admin/users/table.manager'), 'fieldname' => 'manager_id']) @include ('partials.forms.edit.user-select', ['translated_name' => trans('admin/users/table.manager'), 'fieldname' => 'manager_id'])

View file

@ -52,7 +52,7 @@ $qr_size = ($settings->alt_barcode_enabled=='1') && ($settings->alt_barcode!='')
} }
img.barcode { img.barcode {
display:block; display:block;
margin-top:-14px; margin-top:{{$settings->qr_code=='1' ? '-15px' : '-7px;'}};
width: 100%; width: 100%;
} }
div.label-logo { div.label-logo {

View file

@ -89,7 +89,7 @@
@endif @endif
</td> </td>
<td> <td>
@if ($request->requestingUser()) @if ($request->requestingUser() && !$request->requestingUser()->trashed())
<a href="{{ config('app.url') }}/users/{{ $request->requestingUser()->id }}"> <a href="{{ config('app.url') }}/users/{{ $request->requestingUser()->id }}">
{{ $request->requestingUser()->present()->fullName() }} {{ $request->requestingUser()->present()->fullName() }}
</a> </a>

View file

@ -17,6 +17,9 @@
<!-- Manager--> <!-- Manager-->
@include ('partials.forms.edit.user-select', ['translated_name' => trans('admin/users/table.manager'), 'fieldname' => 'manager_id']) @include ('partials.forms.edit.user-select', ['translated_name' => trans('admin/users/table.manager'), 'fieldname' => 'manager_id'])
@include ('partials.forms.edit.phone')
@include ('partials.forms.edit.fax')
<!-- Currency --> <!-- Currency -->
<div class="form-group {{ $errors->has('currency') ? ' has-error' : '' }}"> <div class="form-group {{ $errors->has('currency') ? ' has-error' : '' }}">
<label for="currency" class="col-md-3 control-label"> <label for="currency" class="col-md-3 control-label">

View file

@ -0,0 +1,7 @@
<div class="form-group {{ $errors->has('fax') ? ' has-error' : '' }}">
{{ Form::label('fax', trans('admin/suppliers/table.fax'), array('class' => 'col-md-3 control-label')) }}
<div class="col-md-7">
{{Form::text('fax', old('fax', $item->fax), array('class' => 'form-control')) }}
{!! $errors->first('fax', '<span class="alert-msg" aria-hidden="true"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}
</div>
</div>

View file

@ -22,15 +22,7 @@
</div> </div>
@include ('partials.forms.edit.phone') @include ('partials.forms.edit.phone')
@include ('partials.forms.edit.fax')
<div class="form-group {{ $errors->has('fax') ? ' has-error' : '' }}">
{{ Form::label('fax', trans('admin/suppliers/table.fax'), array('class' => 'col-md-3 control-label')) }}
<div class="col-md-7">
{{Form::text('fax', old('fax', $item->fax), array('class' => 'form-control')) }}
{!! $errors->first('fax', '<span class="alert-msg" aria-hidden="true"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}
</div>
</div>
@include ('partials.forms.edit.email') @include ('partials.forms.edit.email')
<div class="form-group {{ $errors->has('url') ? ' has-error' : '' }}"> <div class="form-group {{ $errors->has('url') ? ' has-error' : '' }}">

View file

@ -7,6 +7,7 @@ use Facebook\WebDriver\Remote\DesiredCapabilities;
use Facebook\WebDriver\Remote\RemoteWebDriver; use Facebook\WebDriver\Remote\RemoteWebDriver;
use Illuminate\Foundation\Testing\DatabaseMigrations; use Illuminate\Foundation\Testing\DatabaseMigrations;
use Laravel\Dusk\TestCase as BaseTestCase; use Laravel\Dusk\TestCase as BaseTestCase;
use RuntimeException;
abstract class DuskTestCase extends BaseTestCase abstract class DuskTestCase extends BaseTestCase
{ {
@ -21,6 +22,12 @@ abstract class DuskTestCase extends BaseTestCase
*/ */
public static function prepare() public static function prepare()
{ {
if (!file_exists(realpath(__DIR__ . '/../') . '/.env.dusk.local')) {
throw new RuntimeException(
'.env.dusk.local file does not exist. Aborting to avoid wiping your local database'
);
}
if (! static::runningInSail()) { if (! static::runningInSail()) {
static::startChromeDriver(); static::startChromeDriver();
} }

View file

@ -5,6 +5,7 @@ namespace Tests;
use App\Http\Middleware\SecurityHeaders; use App\Http\Middleware\SecurityHeaders;
use Illuminate\Foundation\Testing\LazilyRefreshDatabase; use Illuminate\Foundation\Testing\LazilyRefreshDatabase;
use Illuminate\Foundation\Testing\TestCase as BaseTestCase; use Illuminate\Foundation\Testing\TestCase as BaseTestCase;
use RuntimeException;
use Tests\Support\CustomTestMacros; use Tests\Support\CustomTestMacros;
use Tests\Support\InteractsWithAuthentication; use Tests\Support\InteractsWithAuthentication;
use Tests\Support\InteractsWithSettings; use Tests\Support\InteractsWithSettings;
@ -22,6 +23,12 @@ abstract class TestCase extends BaseTestCase
protected function setUp(): void protected function setUp(): void
{ {
if (!file_exists(realpath(__DIR__ . '/../') . '/.env.testing')) {
throw new RuntimeException(
'.env.testing file does not exist. Aborting to avoid wiping your local database'
);
}
parent::setUp(); parent::setUp();
$this->withoutMiddleware($this->globallyDisabledMiddleware); $this->withoutMiddleware($this->globallyDisabledMiddleware);

View file

@ -1,7 +1,9 @@
<?php <?php
(PHP_SAPI !== 'cli' || isset($_SERVER['HTTP_USER_AGENT'])) && die('Access denied.'); (PHP_SAPI !== 'cli' || isset($_SERVER['HTTP_USER_AGENT'])) && die('Access denied.');
$required_php_min = '7.4.0'; $php_min_works = '7.4.0';
$php_max_wontwork = '8.2.0';
if ((strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') || (!function_exists('posix_getpwuid'))) { if ((strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') || (!function_exists('posix_getpwuid'))) {
echo "Skipping user check as it is not supported on Windows or Posix is not installed on this server. \n"; echo "Skipping user check as it is not supported on Windows or Posix is not installed on this server. \n";
@ -123,12 +125,12 @@ echo $env_good;
if ($env_bad !='') { if ($env_bad !='') {
echo "\n--------------------- !! ERROR !! ----------------------\n"; echo "!!!!!!!!!!!!!!!!!!!!!!!!!! .ENV FILE ERROR !!!!!!!!!!!!!!!!!!!!!!!!!!\n";
echo "Your .env file is misconfigured. Upgrade cannot continue.\n"; echo "Your .env file is misconfigured. Upgrade cannot continue.\n";
echo "--------------------------------------------------------\n\n"; echo "--------------------------------------------------------\n\n";
echo $env_bad; echo $env_bad;
echo "\n\n--------------------------------------------------------\n"; echo "\n\n--------------------------------------------------------\n";
echo "ABORTING THE INSTALLER \n"; echo "!!!!!!!!!!!!!!!!!!!!!!!!! ABORTING THE UPGRADER !!!!!!!!!!!!!!!!!!!!!!\n";
echo "Please correct the issues above in ".getcwd()."/.env and try again.\n"; echo "Please correct the issues above in ".getcwd()."/.env and try again.\n";
echo "--------------------------------------------------------\n"; echo "--------------------------------------------------------\n";
exit; exit;
@ -136,22 +138,23 @@ if ($env_bad !='') {
echo "\n--------------------------------------------------------\n"; echo "\n--------------------------------------------------------\n";
echo "STEP 2: Checking PHP requirements: \n"; echo "STEP 2: Checking PHP requirements: (Required PHP >=". $php_min_works. " - <".$php_max_wontwork.") \n";
echo "--------------------------------------------------------\n\n"; echo "--------------------------------------------------------\n\n";
if (version_compare(PHP_VERSION, $required_php_min, '<')) { if ((version_compare(phpversion(), $php_min_works, '>=')) && (version_compare(phpversion(), $php_max_wontwork, '<'))) {
echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ERROR !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n";
echo "This version of PHP (".PHP_VERSION.") is not compatible with Snipe-IT.\n"; echo "√ Current PHP version: (" . phpversion() . ") is at least " . $php_min_works . " and less than ".$php_max_wontwork."! Continuing... \n";
echo "Snipe-IT requires PHP version ".$required_php_min." or greater. Please upgrade \n"; echo sprintf("FYI: The php.ini used by this PHP is: %s\n\n", get_cfg_var('cfg_file_path'));
echo "your version of PHP (web/php-fcgi and cli) and try running this script again.\n\n\n";
exit;
} else { } else {
echo "Current PHP version: (" . PHP_VERSION . ") is at least ".$required_php_min." - continuing... \n"; echo "!!!!!!!!!!!!!!!!!!!!!!!!! PHP VERSION ERROR !!!!!!!!!!!!!!!!!!!!!!!!!\n";
echo sprintf("FYI: The php.ini used by this PHP is: %s\n\n", get_cfg_var('cfg_file_path')); echo "This version of PHP (".phpversion().") is NOT compatible with Snipe-IT.\n";
echo "Snipe-IT requires PHP versions between ".$php_min_works." and ".$php_max_wontwork.".\n";
echo "Please install a compatible version of PHP and re-run this script again. \n";
echo "!!!!!!!!!!!!!!!!!!!!!!!!! ABORTING THE UPGRADER !!!!!!!!!!!!!!!!!!!!!!\n";
exit;
} }
echo "Checking Required PHP extensions... \n\n"; echo "Checking Required PHP extensions... \n\n";
// Get the list of installed extensions // Get the list of installed extensions