mirror of
https://github.com/OPSnet/Gazelle.git
synced 2026-01-16 18:04:34 -05:00
add pre-commit hook to run phpcbf/phpcs (#34)
This commit is contained in:
16
.bin/phpcbf
Normal file
16
.bin/phpcbf
Normal file
@@ -0,0 +1,16 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# This is a wrapper script around calling vendor/bin/phpcbf as it returns a exit 1
|
||||
# if it fixes anything, which does not mesh well with CI pipelines.
|
||||
# See https://github.com/squizlabs/PHP_CodeSniffer/issues/1818#issuecomment-354420927
|
||||
|
||||
root=$( dirname $0 )/..
|
||||
|
||||
$root/vendor/bin/phpcbf $@
|
||||
exit=$?
|
||||
|
||||
if [[ $exit == 1 ]]; then
|
||||
exit=0
|
||||
fi
|
||||
|
||||
exit $exit
|
||||
30
.eslintrc.js
Normal file
30
.eslintrc.js
Normal file
@@ -0,0 +1,30 @@
|
||||
module.exports = {
|
||||
"env": {
|
||||
"browser": true,
|
||||
"es6": true
|
||||
},
|
||||
//"extends": "eslint:recommended",
|
||||
"globals": {
|
||||
"Atomics": "readonly",
|
||||
"SharedArrayBuffer": "readonly",
|
||||
"$": "readonly"
|
||||
},
|
||||
"parserOptions": {
|
||||
"ecmaVersion": 2018,
|
||||
"sourceType": "module"
|
||||
},
|
||||
"rules": {
|
||||
"indent": [
|
||||
"error",
|
||||
4
|
||||
],
|
||||
"linebreak-style": [
|
||||
"error",
|
||||
"unix"
|
||||
],
|
||||
"semi": [
|
||||
"error",
|
||||
"always"
|
||||
]
|
||||
}
|
||||
};
|
||||
1
.gitignore
vendored
1
.gitignore
vendored
@@ -17,6 +17,7 @@ static/stylespreview/
|
||||
|
||||
sections/tools/development/node_modules/
|
||||
/vendor/
|
||||
node_modules/
|
||||
|
||||
static/userscripts/gazelle-json-export.js.txt
|
||||
|
||||
|
||||
@@ -18,13 +18,14 @@
|
||||
},
|
||||
"require": {
|
||||
"php": ">=7.1",
|
||||
"robmorgan/phinx": "^0.10.0",
|
||||
"robmorgan/phinx": "^0.11.0",
|
||||
"whichbrowser/parser": "^2.0",
|
||||
"d11wtq/boris": "^1.0",
|
||||
"orpheusnet/bencode-torrent": "^0.11.0",
|
||||
"orpheusnet/logchecker": "^0.8.6"
|
||||
},
|
||||
"require-dev": {
|
||||
"phpunit/phpunit": "^7.5.12"
|
||||
"phpunit/phpunit": "^7.5.12",
|
||||
"squizlabs/php_codesniffer": "^3.5"
|
||||
}
|
||||
}
|
||||
|
||||
397
composer.lock
generated
397
composer.lock
generated
@@ -4,20 +4,20 @@
|
||||
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
|
||||
"This file is @generated automatically"
|
||||
],
|
||||
"content-hash": "fb4b6dd94a08bf1b7b1688dab0a5b260",
|
||||
"content-hash": "488bc05cba41210663bb248326414f76",
|
||||
"packages": [
|
||||
{
|
||||
"name": "cakephp/cache",
|
||||
"version": "3.8.1",
|
||||
"version": "3.8.4",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/cakephp/cache.git",
|
||||
"reference": "f2b840c9a9b8ba9ab12c5db031d96a312d270536"
|
||||
"reference": "4866fa8afd31604f58336758ddcdf97bf54ebbeb"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/cakephp/cache/zipball/f2b840c9a9b8ba9ab12c5db031d96a312d270536",
|
||||
"reference": "f2b840c9a9b8ba9ab12c5db031d96a312d270536",
|
||||
"url": "https://api.github.com/repos/cakephp/cache/zipball/4866fa8afd31604f58336758ddcdf97bf54ebbeb",
|
||||
"reference": "4866fa8afd31604f58336758ddcdf97bf54ebbeb",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
@@ -48,20 +48,20 @@
|
||||
"caching",
|
||||
"cakephp"
|
||||
],
|
||||
"time": "2019-07-12T13:57:37+00:00"
|
||||
"time": "2019-09-09T19:30:50+00:00"
|
||||
},
|
||||
{
|
||||
"name": "cakephp/collection",
|
||||
"version": "3.8.1",
|
||||
"version": "3.8.4",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/cakephp/collection.git",
|
||||
"reference": "5f22678fc2d151082e331b20677d9696563af549"
|
||||
"reference": "460f4e84de9e2761e8216359022581c7d43e80ae"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/cakephp/collection/zipball/5f22678fc2d151082e331b20677d9696563af549",
|
||||
"reference": "5f22678fc2d151082e331b20677d9696563af549",
|
||||
"url": "https://api.github.com/repos/cakephp/collection/zipball/460f4e84de9e2761e8216359022581c7d43e80ae",
|
||||
"reference": "460f4e84de9e2761e8216359022581c7d43e80ae",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
@@ -94,20 +94,20 @@
|
||||
"collections",
|
||||
"iterators"
|
||||
],
|
||||
"time": "2019-02-26T20:10:41+00:00"
|
||||
"time": "2019-09-09T13:08:53+00:00"
|
||||
},
|
||||
{
|
||||
"name": "cakephp/core",
|
||||
"version": "3.8.1",
|
||||
"version": "3.8.4",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/cakephp/core.git",
|
||||
"reference": "4f9762ce1cdfbe153c676cf3ae1e2d62ac328301"
|
||||
"reference": "47c3045326c92adbecd14cc92a2b7515dd9a30b9"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/cakephp/core/zipball/4f9762ce1cdfbe153c676cf3ae1e2d62ac328301",
|
||||
"reference": "4f9762ce1cdfbe153c676cf3ae1e2d62ac328301",
|
||||
"url": "https://api.github.com/repos/cakephp/core/zipball/47c3045326c92adbecd14cc92a2b7515dd9a30b9",
|
||||
"reference": "47c3045326c92adbecd14cc92a2b7515dd9a30b9",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
@@ -144,20 +144,20 @@
|
||||
"core",
|
||||
"framework"
|
||||
],
|
||||
"time": "2019-05-22T01:06:42+00:00"
|
||||
"time": "2019-09-09T19:30:50+00:00"
|
||||
},
|
||||
{
|
||||
"name": "cakephp/database",
|
||||
"version": "3.8.1",
|
||||
"version": "3.8.4",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/cakephp/database.git",
|
||||
"reference": "5b13801f599e715841ef3b54ef6303fad647ed66"
|
||||
"reference": "f3f7f8c8da67064667a88681cbd856da4e96cade"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/cakephp/database/zipball/5b13801f599e715841ef3b54ef6303fad647ed66",
|
||||
"reference": "5b13801f599e715841ef3b54ef6303fad647ed66",
|
||||
"url": "https://api.github.com/repos/cakephp/database/zipball/f3f7f8c8da67064667a88681cbd856da4e96cade",
|
||||
"reference": "f3f7f8c8da67064667a88681cbd856da4e96cade",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
@@ -192,20 +192,20 @@
|
||||
"database abstraction",
|
||||
"pdo"
|
||||
],
|
||||
"time": "2019-06-25T10:56:49+00:00"
|
||||
"time": "2019-09-10T00:18:05+00:00"
|
||||
},
|
||||
{
|
||||
"name": "cakephp/datasource",
|
||||
"version": "3.8.1",
|
||||
"version": "3.8.4",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/cakephp/datasource.git",
|
||||
"reference": "c46eff4f12fd72f01dd6987d5bfa0d7e5c92af70"
|
||||
"reference": "91411f37aac7bf29f7a1b73a1b99e1ecf490bda3"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/cakephp/datasource/zipball/c46eff4f12fd72f01dd6987d5bfa0d7e5c92af70",
|
||||
"reference": "c46eff4f12fd72f01dd6987d5bfa0d7e5c92af70",
|
||||
"url": "https://api.github.com/repos/cakephp/datasource/zipball/91411f37aac7bf29f7a1b73a1b99e1ecf490bda3",
|
||||
"reference": "91411f37aac7bf29f7a1b73a1b99e1ecf490bda3",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
@@ -242,20 +242,20 @@
|
||||
"entity",
|
||||
"query"
|
||||
],
|
||||
"time": "2019-07-09T14:11:51+00:00"
|
||||
"time": "2019-09-09T19:30:50+00:00"
|
||||
},
|
||||
{
|
||||
"name": "cakephp/log",
|
||||
"version": "3.8.1",
|
||||
"version": "3.8.4",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/cakephp/log.git",
|
||||
"reference": "ed6398ae8c2e8a5630e8dea24dda34b102ec65e2"
|
||||
"reference": "3572db7b054819d918f1de1a743ae0c0786e238e"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/cakephp/log/zipball/ed6398ae8c2e8a5630e8dea24dda34b102ec65e2",
|
||||
"reference": "ed6398ae8c2e8a5630e8dea24dda34b102ec65e2",
|
||||
"url": "https://api.github.com/repos/cakephp/log/zipball/3572db7b054819d918f1de1a743ae0c0786e238e",
|
||||
"reference": "3572db7b054819d918f1de1a743ae0c0786e238e",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
@@ -287,20 +287,20 @@
|
||||
"log",
|
||||
"logging"
|
||||
],
|
||||
"time": "2019-05-27T20:32:25+00:00"
|
||||
"time": "2019-09-09T13:08:53+00:00"
|
||||
},
|
||||
{
|
||||
"name": "cakephp/utility",
|
||||
"version": "3.8.1",
|
||||
"version": "3.8.4",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/cakephp/utility.git",
|
||||
"reference": "329654495c4cf966ac75832e502ec939542928fb"
|
||||
"reference": "a90e4da0bd61fe2febcd68e6246bc974dcc43773"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/cakephp/utility/zipball/329654495c4cf966ac75832e502ec939542928fb",
|
||||
"reference": "329654495c4cf966ac75832e502ec939542928fb",
|
||||
"url": "https://api.github.com/repos/cakephp/utility/zipball/a90e4da0bd61fe2febcd68e6246bc974dcc43773",
|
||||
"reference": "a90e4da0bd61fe2febcd68e6246bc974dcc43773",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
@@ -340,7 +340,7 @@
|
||||
"string",
|
||||
"utility"
|
||||
],
|
||||
"time": "2019-03-14T14:41:29+00:00"
|
||||
"time": "2019-09-09T13:08:53+00:00"
|
||||
},
|
||||
{
|
||||
"name": "d11wtq/boris",
|
||||
@@ -605,29 +605,31 @@
|
||||
},
|
||||
{
|
||||
"name": "robmorgan/phinx",
|
||||
"version": "0.10.8",
|
||||
"version": "0.11.1",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/cakephp/phinx.git",
|
||||
"reference": "1960e93169707096fdfde04904a204970077f4be"
|
||||
"reference": "a6cced878695d26396b26dfd62ce300aea07de05"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/cakephp/phinx/zipball/1960e93169707096fdfde04904a204970077f4be",
|
||||
"reference": "1960e93169707096fdfde04904a204970077f4be",
|
||||
"url": "https://api.github.com/repos/cakephp/phinx/zipball/a6cced878695d26396b26dfd62ce300aea07de05",
|
||||
"reference": "a6cced878695d26396b26dfd62ce300aea07de05",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"cakephp/collection": "^3.6",
|
||||
"cakephp/core": "^3.6",
|
||||
"cakephp/database": "^3.6",
|
||||
"cakephp/datasource": "^3.6",
|
||||
"php": ">=5.6",
|
||||
"symfony/config": "^2.8|^3.0|^4.0",
|
||||
"symfony/console": "^2.8|^3.0|^4.0",
|
||||
"symfony/yaml": "^2.8|^3.0|^4.0"
|
||||
"symfony/config": "^3.4|^4.0",
|
||||
"symfony/console": "^3.4|^4.0",
|
||||
"symfony/yaml": "^3.4|^4.0"
|
||||
},
|
||||
"require-dev": {
|
||||
"cakephp/cakephp-codesniffer": "^3.0",
|
||||
"phpunit/phpunit": ">=5.7,<7.0",
|
||||
"phpunit/phpunit": ">=5.7,<8.0",
|
||||
"sebastian/comparator": ">=1.2.3"
|
||||
},
|
||||
"bin": [
|
||||
@@ -645,25 +647,26 @@
|
||||
],
|
||||
"authors": [
|
||||
{
|
||||
"name": "Woody Gilk",
|
||||
"role": "Developer",
|
||||
"email": "woody.gilk@gmail.com",
|
||||
"homepage": "http://shadowhand.me"
|
||||
"name": "Rob Morgan",
|
||||
"email": "robbym@gmail.com",
|
||||
"homepage": "https://robmorgan.id.au",
|
||||
"role": "Lead Developer"
|
||||
},
|
||||
{
|
||||
"name": "Rob Morgan",
|
||||
"role": "Lead Developer",
|
||||
"email": "robbym@gmail.com",
|
||||
"homepage": "https://robmorgan.id.au"
|
||||
"name": "Woody Gilk",
|
||||
"email": "woody.gilk@gmail.com",
|
||||
"homepage": "https://shadowhand.me",
|
||||
"role": "Developer"
|
||||
},
|
||||
{
|
||||
"name": "Richard Quadling",
|
||||
"role": "Developer",
|
||||
"email": "rquadling@gmail.com"
|
||||
"email": "rquadling@gmail.com",
|
||||
"role": "Developer"
|
||||
},
|
||||
{
|
||||
"name": "CakePHP Community",
|
||||
"homepage": "https://github.com/cakephp/phinx/graphs/contributors"
|
||||
"homepage": "https://github.com/cakephp/phinx/graphs/contributors",
|
||||
"role": "Developer"
|
||||
}
|
||||
],
|
||||
"description": "Phinx makes it ridiculously easy to manage the database migrations for your PHP app.",
|
||||
@@ -675,20 +678,20 @@
|
||||
"migrations",
|
||||
"phinx"
|
||||
],
|
||||
"time": "2019-07-08T16:59:55+00:00"
|
||||
"time": "2019-08-28T12:24:19+00:00"
|
||||
},
|
||||
{
|
||||
"name": "symfony/config",
|
||||
"version": "v4.3.2",
|
||||
"version": "v4.3.4",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/symfony/config.git",
|
||||
"reference": "9198eea354be75794a7b1064de00d9ae9ae5090f"
|
||||
"reference": "07d49c0f823e0bc367c6d84e35b61419188a5ece"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/symfony/config/zipball/9198eea354be75794a7b1064de00d9ae9ae5090f",
|
||||
"reference": "9198eea354be75794a7b1064de00d9ae9ae5090f",
|
||||
"url": "https://api.github.com/repos/symfony/config/zipball/07d49c0f823e0bc367c6d84e35b61419188a5ece",
|
||||
"reference": "07d49c0f823e0bc367c6d84e35b61419188a5ece",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
@@ -739,20 +742,20 @@
|
||||
],
|
||||
"description": "Symfony Config Component",
|
||||
"homepage": "https://symfony.com",
|
||||
"time": "2019-06-08T06:33:08+00:00"
|
||||
"time": "2019-08-26T08:26:39+00:00"
|
||||
},
|
||||
{
|
||||
"name": "symfony/console",
|
||||
"version": "v3.4.29",
|
||||
"version": "v3.4.31",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/symfony/console.git",
|
||||
"reference": "c4d2f3529755ffc0be9fb823583b28d8744eeb3d"
|
||||
"reference": "4510f04e70344d70952566e4262a0b11df39cb10"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/symfony/console/zipball/c4d2f3529755ffc0be9fb823583b28d8744eeb3d",
|
||||
"reference": "c4d2f3529755ffc0be9fb823583b28d8744eeb3d",
|
||||
"url": "https://api.github.com/repos/symfony/console/zipball/4510f04e70344d70952566e4262a0b11df39cb10",
|
||||
"reference": "4510f04e70344d70952566e4262a0b11df39cb10",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
@@ -811,20 +814,20 @@
|
||||
],
|
||||
"description": "Symfony Console Component",
|
||||
"homepage": "https://symfony.com",
|
||||
"time": "2019-06-05T11:33:52+00:00"
|
||||
"time": "2019-08-26T07:52:58+00:00"
|
||||
},
|
||||
{
|
||||
"name": "symfony/debug",
|
||||
"version": "v3.4.29",
|
||||
"version": "v3.4.31",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/symfony/debug.git",
|
||||
"reference": "1172dc1abe44dfadd162239153818b074e6e53bf"
|
||||
"reference": "0b600300918780001e2821db77bc28b677794486"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/symfony/debug/zipball/1172dc1abe44dfadd162239153818b074e6e53bf",
|
||||
"reference": "1172dc1abe44dfadd162239153818b074e6e53bf",
|
||||
"url": "https://api.github.com/repos/symfony/debug/zipball/0b600300918780001e2821db77bc28b677794486",
|
||||
"reference": "0b600300918780001e2821db77bc28b677794486",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
@@ -867,20 +870,20 @@
|
||||
],
|
||||
"description": "Symfony Debug Component",
|
||||
"homepage": "https://symfony.com",
|
||||
"time": "2019-06-18T21:26:03+00:00"
|
||||
"time": "2019-08-20T13:31:17+00:00"
|
||||
},
|
||||
{
|
||||
"name": "symfony/filesystem",
|
||||
"version": "v4.3.2",
|
||||
"version": "v4.3.4",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/symfony/filesystem.git",
|
||||
"reference": "b9896d034463ad6fd2bf17e2bf9418caecd6313d"
|
||||
"reference": "9abbb7ef96a51f4d7e69627bc6f63307994e4263"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/symfony/filesystem/zipball/b9896d034463ad6fd2bf17e2bf9418caecd6313d",
|
||||
"reference": "b9896d034463ad6fd2bf17e2bf9418caecd6313d",
|
||||
"url": "https://api.github.com/repos/symfony/filesystem/zipball/9abbb7ef96a51f4d7e69627bc6f63307994e4263",
|
||||
"reference": "9abbb7ef96a51f4d7e69627bc6f63307994e4263",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
@@ -917,20 +920,20 @@
|
||||
],
|
||||
"description": "Symfony Filesystem Component",
|
||||
"homepage": "https://symfony.com",
|
||||
"time": "2019-06-23T08:51:25+00:00"
|
||||
"time": "2019-08-20T14:07:54+00:00"
|
||||
},
|
||||
{
|
||||
"name": "symfony/polyfill-ctype",
|
||||
"version": "v1.11.0",
|
||||
"version": "v1.12.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/symfony/polyfill-ctype.git",
|
||||
"reference": "82ebae02209c21113908c229e9883c419720738a"
|
||||
"reference": "550ebaac289296ce228a706d0867afc34687e3f4"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/82ebae02209c21113908c229e9883c419720738a",
|
||||
"reference": "82ebae02209c21113908c229e9883c419720738a",
|
||||
"url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/550ebaac289296ce228a706d0867afc34687e3f4",
|
||||
"reference": "550ebaac289296ce228a706d0867afc34687e3f4",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
@@ -942,7 +945,7 @@
|
||||
"type": "library",
|
||||
"extra": {
|
||||
"branch-alias": {
|
||||
"dev-master": "1.11-dev"
|
||||
"dev-master": "1.12-dev"
|
||||
}
|
||||
},
|
||||
"autoload": {
|
||||
@@ -958,13 +961,13 @@
|
||||
"MIT"
|
||||
],
|
||||
"authors": [
|
||||
{
|
||||
"name": "Symfony Community",
|
||||
"homepage": "https://symfony.com/contributors"
|
||||
},
|
||||
{
|
||||
"name": "Gert de Pagter",
|
||||
"email": "BackEndTea@gmail.com"
|
||||
},
|
||||
{
|
||||
"name": "Symfony Community",
|
||||
"homepage": "https://symfony.com/contributors"
|
||||
}
|
||||
],
|
||||
"description": "Symfony polyfill for ctype functions",
|
||||
@@ -975,20 +978,20 @@
|
||||
"polyfill",
|
||||
"portable"
|
||||
],
|
||||
"time": "2019-02-06T07:57:58+00:00"
|
||||
"time": "2019-08-06T08:03:45+00:00"
|
||||
},
|
||||
{
|
||||
"name": "symfony/polyfill-mbstring",
|
||||
"version": "v1.11.0",
|
||||
"version": "v1.12.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/symfony/polyfill-mbstring.git",
|
||||
"reference": "fe5e94c604826c35a32fa832f35bd036b6799609"
|
||||
"reference": "b42a2f66e8f1b15ccf25652c3424265923eb4f17"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/fe5e94c604826c35a32fa832f35bd036b6799609",
|
||||
"reference": "fe5e94c604826c35a32fa832f35bd036b6799609",
|
||||
"url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/b42a2f66e8f1b15ccf25652c3424265923eb4f17",
|
||||
"reference": "b42a2f66e8f1b15ccf25652c3424265923eb4f17",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
@@ -1000,7 +1003,7 @@
|
||||
"type": "library",
|
||||
"extra": {
|
||||
"branch-alias": {
|
||||
"dev-master": "1.11-dev"
|
||||
"dev-master": "1.12-dev"
|
||||
}
|
||||
},
|
||||
"autoload": {
|
||||
@@ -1034,20 +1037,20 @@
|
||||
"portable",
|
||||
"shim"
|
||||
],
|
||||
"time": "2019-02-06T07:57:58+00:00"
|
||||
"time": "2019-08-06T08:03:45+00:00"
|
||||
},
|
||||
{
|
||||
"name": "symfony/yaml",
|
||||
"version": "v3.4.29",
|
||||
"version": "v3.4.31",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/symfony/yaml.git",
|
||||
"reference": "212a27b731e5bfb735679d1ffaac82bd6a1dc996"
|
||||
"reference": "3dc414b7db30695bae671a1d86013d03f4ae9834"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/symfony/yaml/zipball/212a27b731e5bfb735679d1ffaac82bd6a1dc996",
|
||||
"reference": "212a27b731e5bfb735679d1ffaac82bd6a1dc996",
|
||||
"url": "https://api.github.com/repos/symfony/yaml/zipball/3dc414b7db30695bae671a1d86013d03f4ae9834",
|
||||
"reference": "3dc414b7db30695bae671a1d86013d03f4ae9834",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
@@ -1093,7 +1096,7 @@
|
||||
],
|
||||
"description": "Symfony Yaml Component",
|
||||
"homepage": "https://symfony.com",
|
||||
"time": "2019-03-25T07:48:46+00:00"
|
||||
"time": "2019-08-20T13:31:17+00:00"
|
||||
},
|
||||
{
|
||||
"name": "whichbrowser/parser",
|
||||
@@ -1214,16 +1217,16 @@
|
||||
},
|
||||
{
|
||||
"name": "myclabs/deep-copy",
|
||||
"version": "1.9.1",
|
||||
"version": "1.9.3",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/myclabs/DeepCopy.git",
|
||||
"reference": "e6828efaba2c9b79f4499dae1d66ef8bfa7b2b72"
|
||||
"reference": "007c053ae6f31bba39dfa19a7726f56e9763bbea"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/e6828efaba2c9b79f4499dae1d66ef8bfa7b2b72",
|
||||
"reference": "e6828efaba2c9b79f4499dae1d66ef8bfa7b2b72",
|
||||
"url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/007c053ae6f31bba39dfa19a7726f56e9763bbea",
|
||||
"reference": "007c053ae6f31bba39dfa19a7726f56e9763bbea",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
@@ -1258,7 +1261,7 @@
|
||||
"object",
|
||||
"object graph"
|
||||
],
|
||||
"time": "2019-04-07T13:18:21+00:00"
|
||||
"time": "2019-08-09T12:45:53+00:00"
|
||||
},
|
||||
{
|
||||
"name": "phar-io/manifest",
|
||||
@@ -1364,35 +1367,33 @@
|
||||
},
|
||||
{
|
||||
"name": "phpdocumentor/reflection-common",
|
||||
"version": "1.0.1",
|
||||
"version": "2.0.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/phpDocumentor/ReflectionCommon.git",
|
||||
"reference": "21bdeb5f65d7ebf9f43b1b25d404f87deab5bfb6"
|
||||
"reference": "63a995caa1ca9e5590304cd845c15ad6d482a62a"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/phpDocumentor/ReflectionCommon/zipball/21bdeb5f65d7ebf9f43b1b25d404f87deab5bfb6",
|
||||
"reference": "21bdeb5f65d7ebf9f43b1b25d404f87deab5bfb6",
|
||||
"url": "https://api.github.com/repos/phpDocumentor/ReflectionCommon/zipball/63a995caa1ca9e5590304cd845c15ad6d482a62a",
|
||||
"reference": "63a995caa1ca9e5590304cd845c15ad6d482a62a",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"php": ">=5.5"
|
||||
"php": ">=7.1"
|
||||
},
|
||||
"require-dev": {
|
||||
"phpunit/phpunit": "^4.6"
|
||||
"phpunit/phpunit": "~6"
|
||||
},
|
||||
"type": "library",
|
||||
"extra": {
|
||||
"branch-alias": {
|
||||
"dev-master": "1.0.x-dev"
|
||||
"dev-master": "2.x-dev"
|
||||
}
|
||||
},
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"phpDocumentor\\Reflection\\": [
|
||||
"src"
|
||||
]
|
||||
"phpDocumentor\\Reflection\\": "src/"
|
||||
}
|
||||
},
|
||||
"notification-url": "https://packagist.org/downloads/",
|
||||
@@ -1414,30 +1415,30 @@
|
||||
"reflection",
|
||||
"static analysis"
|
||||
],
|
||||
"time": "2017-09-11T18:02:19+00:00"
|
||||
"time": "2018-08-07T13:53:10+00:00"
|
||||
},
|
||||
{
|
||||
"name": "phpdocumentor/reflection-docblock",
|
||||
"version": "4.3.1",
|
||||
"version": "4.3.2",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/phpDocumentor/ReflectionDocBlock.git",
|
||||
"reference": "bdd9f737ebc2a01c06ea7ff4308ec6697db9b53c"
|
||||
"reference": "b83ff7cfcfee7827e1e78b637a5904fe6a96698e"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/bdd9f737ebc2a01c06ea7ff4308ec6697db9b53c",
|
||||
"reference": "bdd9f737ebc2a01c06ea7ff4308ec6697db9b53c",
|
||||
"url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/b83ff7cfcfee7827e1e78b637a5904fe6a96698e",
|
||||
"reference": "b83ff7cfcfee7827e1e78b637a5904fe6a96698e",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"php": "^7.0",
|
||||
"phpdocumentor/reflection-common": "^1.0.0",
|
||||
"phpdocumentor/type-resolver": "^0.4.0",
|
||||
"phpdocumentor/reflection-common": "^1.0.0 || ^2.0.0",
|
||||
"phpdocumentor/type-resolver": "~0.4 || ^1.0.0",
|
||||
"webmozart/assert": "^1.0"
|
||||
},
|
||||
"require-dev": {
|
||||
"doctrine/instantiator": "~1.0.5",
|
||||
"doctrine/instantiator": "^1.0.5",
|
||||
"mockery/mockery": "^1.0",
|
||||
"phpunit/phpunit": "^6.4"
|
||||
},
|
||||
@@ -1465,41 +1466,40 @@
|
||||
}
|
||||
],
|
||||
"description": "With this component, a library can provide support for annotations via DocBlocks or otherwise retrieve information that is embedded in a DocBlock.",
|
||||
"time": "2019-04-30T17:48:53+00:00"
|
||||
"time": "2019-09-12T14:27:41+00:00"
|
||||
},
|
||||
{
|
||||
"name": "phpdocumentor/type-resolver",
|
||||
"version": "0.4.0",
|
||||
"version": "1.0.1",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/phpDocumentor/TypeResolver.git",
|
||||
"reference": "9c977708995954784726e25d0cd1dddf4e65b0f7"
|
||||
"reference": "2e32a6d48972b2c1976ed5d8967145b6cec4a4a9"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/phpDocumentor/TypeResolver/zipball/9c977708995954784726e25d0cd1dddf4e65b0f7",
|
||||
"reference": "9c977708995954784726e25d0cd1dddf4e65b0f7",
|
||||
"url": "https://api.github.com/repos/phpDocumentor/TypeResolver/zipball/2e32a6d48972b2c1976ed5d8967145b6cec4a4a9",
|
||||
"reference": "2e32a6d48972b2c1976ed5d8967145b6cec4a4a9",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"php": "^5.5 || ^7.0",
|
||||
"phpdocumentor/reflection-common": "^1.0"
|
||||
"php": "^7.1",
|
||||
"phpdocumentor/reflection-common": "^2.0"
|
||||
},
|
||||
"require-dev": {
|
||||
"mockery/mockery": "^0.9.4",
|
||||
"phpunit/phpunit": "^5.2||^4.8.24"
|
||||
"ext-tokenizer": "^7.1",
|
||||
"mockery/mockery": "~1",
|
||||
"phpunit/phpunit": "^7.0"
|
||||
},
|
||||
"type": "library",
|
||||
"extra": {
|
||||
"branch-alias": {
|
||||
"dev-master": "1.0.x-dev"
|
||||
"dev-master": "1.x-dev"
|
||||
}
|
||||
},
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"phpDocumentor\\Reflection\\": [
|
||||
"src/"
|
||||
]
|
||||
"phpDocumentor\\Reflection\\": "src"
|
||||
}
|
||||
},
|
||||
"notification-url": "https://packagist.org/downloads/",
|
||||
@@ -1512,26 +1512,27 @@
|
||||
"email": "me@mikevanriel.com"
|
||||
}
|
||||
],
|
||||
"time": "2017-07-14T14:27:02+00:00"
|
||||
"description": "A PSR-5 based resolver of Class names, Types and Structural Element Names",
|
||||
"time": "2019-08-22T18:11:29+00:00"
|
||||
},
|
||||
{
|
||||
"name": "phpspec/prophecy",
|
||||
"version": "1.8.1",
|
||||
"version": "1.9.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/phpspec/prophecy.git",
|
||||
"reference": "1927e75f4ed19131ec9bcc3b002e07fb1173ee76"
|
||||
"reference": "f6811d96d97bdf400077a0cc100ae56aa32b9203"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/phpspec/prophecy/zipball/1927e75f4ed19131ec9bcc3b002e07fb1173ee76",
|
||||
"reference": "1927e75f4ed19131ec9bcc3b002e07fb1173ee76",
|
||||
"url": "https://api.github.com/repos/phpspec/prophecy/zipball/f6811d96d97bdf400077a0cc100ae56aa32b9203",
|
||||
"reference": "f6811d96d97bdf400077a0cc100ae56aa32b9203",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"doctrine/instantiator": "^1.0.2",
|
||||
"php": "^5.3|^7.0",
|
||||
"phpdocumentor/reflection-docblock": "^2.0|^3.0.2|^4.0",
|
||||
"phpdocumentor/reflection-docblock": "^2.0|^3.0.2|^4.0|^5.0",
|
||||
"sebastian/comparator": "^1.1|^2.0|^3.0",
|
||||
"sebastian/recursion-context": "^1.0|^2.0|^3.0"
|
||||
},
|
||||
@@ -1575,7 +1576,7 @@
|
||||
"spy",
|
||||
"stub"
|
||||
],
|
||||
"time": "2019-06-13T12:50:23+00:00"
|
||||
"time": "2019-10-03T11:07:50+00:00"
|
||||
},
|
||||
{
|
||||
"name": "phpunit/php-code-coverage",
|
||||
@@ -1782,16 +1783,16 @@
|
||||
},
|
||||
{
|
||||
"name": "phpunit/php-token-stream",
|
||||
"version": "3.0.2",
|
||||
"version": "3.1.1",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/sebastianbergmann/php-token-stream.git",
|
||||
"reference": "c4a66b97f040e3e20b3aa2a243230a1c3a9f7c8c"
|
||||
"reference": "995192df77f63a59e47f025390d2d1fdf8f425ff"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/sebastianbergmann/php-token-stream/zipball/c4a66b97f040e3e20b3aa2a243230a1c3a9f7c8c",
|
||||
"reference": "c4a66b97f040e3e20b3aa2a243230a1c3a9f7c8c",
|
||||
"url": "https://api.github.com/repos/sebastianbergmann/php-token-stream/zipball/995192df77f63a59e47f025390d2d1fdf8f425ff",
|
||||
"reference": "995192df77f63a59e47f025390d2d1fdf8f425ff",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
@@ -1804,7 +1805,7 @@
|
||||
"type": "library",
|
||||
"extra": {
|
||||
"branch-alias": {
|
||||
"dev-master": "3.0-dev"
|
||||
"dev-master": "3.1-dev"
|
||||
}
|
||||
},
|
||||
"autoload": {
|
||||
@@ -1827,20 +1828,20 @@
|
||||
"keywords": [
|
||||
"tokenizer"
|
||||
],
|
||||
"time": "2019-07-08T05:24:54+00:00"
|
||||
"time": "2019-09-17T06:23:10+00:00"
|
||||
},
|
||||
{
|
||||
"name": "phpunit/phpunit",
|
||||
"version": "7.5.14",
|
||||
"version": "7.5.16",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/sebastianbergmann/phpunit.git",
|
||||
"reference": "2834789aeb9ac182ad69bfdf9ae91856a59945ff"
|
||||
"reference": "316afa6888d2562e04aeb67ea7f2017a0eb41661"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/2834789aeb9ac182ad69bfdf9ae91856a59945ff",
|
||||
"reference": "2834789aeb9ac182ad69bfdf9ae91856a59945ff",
|
||||
"url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/316afa6888d2562e04aeb67ea7f2017a0eb41661",
|
||||
"reference": "316afa6888d2562e04aeb67ea7f2017a0eb41661",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
@@ -1900,8 +1901,8 @@
|
||||
"authors": [
|
||||
{
|
||||
"name": "Sebastian Bergmann",
|
||||
"role": "lead",
|
||||
"email": "sebastian@phpunit.de"
|
||||
"email": "sebastian@phpunit.de",
|
||||
"role": "lead"
|
||||
}
|
||||
],
|
||||
"description": "The PHP Unit Testing framework.",
|
||||
@@ -1911,7 +1912,7 @@
|
||||
"testing",
|
||||
"xunit"
|
||||
],
|
||||
"time": "2019-07-15T06:24:08+00:00"
|
||||
"time": "2019-09-14T09:08:39+00:00"
|
||||
},
|
||||
{
|
||||
"name": "sebastian/code-unit-reverse-lookup",
|
||||
@@ -2133,16 +2134,16 @@
|
||||
},
|
||||
{
|
||||
"name": "sebastian/exporter",
|
||||
"version": "3.1.0",
|
||||
"version": "3.1.2",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/sebastianbergmann/exporter.git",
|
||||
"reference": "234199f4528de6d12aaa58b612e98f7d36adb937"
|
||||
"reference": "68609e1261d215ea5b21b7987539cbfbe156ec3e"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/234199f4528de6d12aaa58b612e98f7d36adb937",
|
||||
"reference": "234199f4528de6d12aaa58b612e98f7d36adb937",
|
||||
"url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/68609e1261d215ea5b21b7987539cbfbe156ec3e",
|
||||
"reference": "68609e1261d215ea5b21b7987539cbfbe156ec3e",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
@@ -2169,6 +2170,10 @@
|
||||
"BSD-3-Clause"
|
||||
],
|
||||
"authors": [
|
||||
{
|
||||
"name": "Sebastian Bergmann",
|
||||
"email": "sebastian@phpunit.de"
|
||||
},
|
||||
{
|
||||
"name": "Jeff Welch",
|
||||
"email": "whatthejeff@gmail.com"
|
||||
@@ -2177,17 +2182,13 @@
|
||||
"name": "Volker Dusch",
|
||||
"email": "github@wallbash.com"
|
||||
},
|
||||
{
|
||||
"name": "Bernhard Schussek",
|
||||
"email": "bschussek@2bepublished.at"
|
||||
},
|
||||
{
|
||||
"name": "Sebastian Bergmann",
|
||||
"email": "sebastian@phpunit.de"
|
||||
},
|
||||
{
|
||||
"name": "Adam Harvey",
|
||||
"email": "aharvey@php.net"
|
||||
},
|
||||
{
|
||||
"name": "Bernhard Schussek",
|
||||
"email": "bschussek@gmail.com"
|
||||
}
|
||||
],
|
||||
"description": "Provides the functionality to export PHP variables for visualization",
|
||||
@@ -2196,7 +2197,7 @@
|
||||
"export",
|
||||
"exporter"
|
||||
],
|
||||
"time": "2017-04-03T13:19:02+00:00"
|
||||
"time": "2019-09-14T09:02:43+00:00"
|
||||
},
|
||||
{
|
||||
"name": "sebastian/global-state",
|
||||
@@ -2479,6 +2480,57 @@
|
||||
"homepage": "https://github.com/sebastianbergmann/version",
|
||||
"time": "2016-10-03T07:35:21+00:00"
|
||||
},
|
||||
{
|
||||
"name": "squizlabs/php_codesniffer",
|
||||
"version": "3.5.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/squizlabs/PHP_CodeSniffer.git",
|
||||
"reference": "0afebf16a2e7f1e434920fa976253576151effe9"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/squizlabs/PHP_CodeSniffer/zipball/0afebf16a2e7f1e434920fa976253576151effe9",
|
||||
"reference": "0afebf16a2e7f1e434920fa976253576151effe9",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"ext-simplexml": "*",
|
||||
"ext-tokenizer": "*",
|
||||
"ext-xmlwriter": "*",
|
||||
"php": ">=5.4.0"
|
||||
},
|
||||
"require-dev": {
|
||||
"phpunit/phpunit": "^4.0 || ^5.0 || ^6.0 || ^7.0"
|
||||
},
|
||||
"bin": [
|
||||
"bin/phpcs",
|
||||
"bin/phpcbf"
|
||||
],
|
||||
"type": "library",
|
||||
"extra": {
|
||||
"branch-alias": {
|
||||
"dev-master": "3.x-dev"
|
||||
}
|
||||
},
|
||||
"notification-url": "https://packagist.org/downloads/",
|
||||
"license": [
|
||||
"BSD-3-Clause"
|
||||
],
|
||||
"authors": [
|
||||
{
|
||||
"name": "Greg Sherwood",
|
||||
"role": "lead"
|
||||
}
|
||||
],
|
||||
"description": "PHP_CodeSniffer tokenizes PHP, JavaScript and CSS files and detects violations of a defined set of coding standards.",
|
||||
"homepage": "https://github.com/squizlabs/PHP_CodeSniffer",
|
||||
"keywords": [
|
||||
"phpcs",
|
||||
"standards"
|
||||
],
|
||||
"time": "2019-09-26T23:12:26+00:00"
|
||||
},
|
||||
{
|
||||
"name": "theseer/tokenizer",
|
||||
"version": "1.1.3",
|
||||
@@ -2521,16 +2573,16 @@
|
||||
},
|
||||
{
|
||||
"name": "webmozart/assert",
|
||||
"version": "1.4.0",
|
||||
"version": "1.5.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/webmozart/assert.git",
|
||||
"reference": "83e253c8e0be5b0257b881e1827274667c5c17a9"
|
||||
"reference": "88e6d84706d09a236046d686bbea96f07b3a34f4"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/webmozart/assert/zipball/83e253c8e0be5b0257b881e1827274667c5c17a9",
|
||||
"reference": "83e253c8e0be5b0257b881e1827274667c5c17a9",
|
||||
"url": "https://api.github.com/repos/webmozart/assert/zipball/88e6d84706d09a236046d686bbea96f07b3a34f4",
|
||||
"reference": "88e6d84706d09a236046d686bbea96f07b3a34f4",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
@@ -2538,8 +2590,7 @@
|
||||
"symfony/polyfill-ctype": "^1.8"
|
||||
},
|
||||
"require-dev": {
|
||||
"phpunit/phpunit": "^4.6",
|
||||
"sebastian/version": "^1.0.1"
|
||||
"phpunit/phpunit": "^4.8.36 || ^7.5.13"
|
||||
},
|
||||
"type": "library",
|
||||
"extra": {
|
||||
@@ -2568,7 +2619,7 @@
|
||||
"check",
|
||||
"validate"
|
||||
],
|
||||
"time": "2018-12-25T11:19:39+00:00"
|
||||
"time": "2019-08-24T08:43:50+00:00"
|
||||
}
|
||||
],
|
||||
"aliases": [],
|
||||
|
||||
2122
package-lock.json
generated
Normal file
2122
package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
30
package.json
Normal file
30
package.json
Normal file
@@ -0,0 +1,30 @@
|
||||
{
|
||||
"name": "gazelle",
|
||||
"version": "0.0.0",
|
||||
"description": "",
|
||||
"scripts": {
|
||||
"lint:js": "eslint static/functions",
|
||||
"lint:php": "vendor/bin/phpcs -p",
|
||||
"lint:php:fix": "./.bin/phpcbf",
|
||||
"pre-commit": "npm run lint:php:fix"
|
||||
},
|
||||
"license": "Unlicense",
|
||||
"devDependencies": {
|
||||
"eslint": "^6.5.1",
|
||||
"husky": "^3.0.8",
|
||||
"lint-staged": "^9.4.1"
|
||||
},
|
||||
"dependencies": {},
|
||||
"husky": {
|
||||
"hooks": {
|
||||
"pre-commit": "lint-staged"
|
||||
}
|
||||
},
|
||||
"lint-staged": {
|
||||
"*.php": [
|
||||
"bash .bin/phpcbf",
|
||||
"vendor/bin/phpcs",
|
||||
"git add"
|
||||
]
|
||||
}
|
||||
}
|
||||
28
phpcs.xml
Normal file
28
phpcs.xml
Normal file
@@ -0,0 +1,28 @@
|
||||
<?xml version="1.0"?>
|
||||
<ruleset name="Gazelle Standard" namespace="Gazelle\Standard">
|
||||
<description>The standard for writing code in gazelle</description>
|
||||
<arg name="colors"/>
|
||||
<arg value="s"/>
|
||||
<arg name="extensions" value="php" />
|
||||
|
||||
<file>.</file>
|
||||
<exclude-pattern>*/vendor/*</exclude-pattern>
|
||||
<exclude-pattern>*/node_modules/*</exclude-pattern>
|
||||
<exclude-pattern>*/static/*</exclude-pattern>
|
||||
|
||||
<!--
|
||||
<rule ref="PSR2">
|
||||
<exclude name="PSR1.Classes.ClassDeclaration.MissingNamespace" />
|
||||
</rule>
|
||||
-->
|
||||
<!--<rule ref="Generic.PHP.DisallowShortOpenTag">
|
||||
<exclude name="Generic.PHP.DisallowShortOpenTag.EchoFound"/>
|
||||
</rule>-->
|
||||
<rule ref="Generic.WhiteSpace.DisallowTabIndent.TabsUsed" />
|
||||
<rule ref="Generic.WhiteSpace.DisallowTabIndent.NonIndentTabsUsed" />
|
||||
<rule ref="Generic.PHP.ForbiddenFunctions">
|
||||
<properties>
|
||||
<property name="forbiddenFunctions" type="array" value="db_string=>null" />
|
||||
</properties>
|
||||
</rule>
|
||||
</ruleset>
|
||||
@@ -1,5 +1,4 @@
|
||||
<?php
|
||||
// Disabled from daily
|
||||
|
||||
//------------- Delete dead torrents ------------------------------------//
|
||||
|
||||
@@ -28,51 +27,51 @@ $LogEntries = $DeleteNotes = [];
|
||||
|
||||
// Exceptions for inactivity deletion
|
||||
$InactivityExceptionsMade = [
|
||||
//UserID => expiry time of exception
|
||||
//UserID => expiry time of exception
|
||||
];
|
||||
$i = 0;
|
||||
foreach ($Torrents as $Torrent) {
|
||||
list($ID, $GroupID, $Name, $Format, $Encoding, $UserID, $Media, $InfoHash) = $Torrent;
|
||||
if (array_key_exists($UserID, $InactivityExceptionsMade) && (time() < $InactivityExceptionsMade[$UserID])) {
|
||||
// don't delete the torrent!
|
||||
continue;
|
||||
}
|
||||
$ArtistName = Artists::display_artists(Artists::get_artist($GroupID), false, false, false);
|
||||
if ($ArtistName) {
|
||||
$Name = "$ArtistName - $Name";
|
||||
}
|
||||
if ($Format && $Encoding) {
|
||||
$Name .= ' ['.(empty($Media) ? '' : "$Media / ") . "$Format / $Encoding]";
|
||||
}
|
||||
Torrents::delete_torrent($ID, $GroupID);
|
||||
$LogEntries[] = db_string("Torrent $ID ($Name) (".strtoupper($InfoHash).") was deleted for inactivity (unseeded)");
|
||||
list($ID, $GroupID, $Name, $Format, $Encoding, $UserID, $Media, $InfoHash) = $Torrent;
|
||||
if (array_key_exists($UserID, $InactivityExceptionsMade) && (time() < $InactivityExceptionsMade[$UserID])) {
|
||||
// don't delete the torrent!
|
||||
continue;
|
||||
}
|
||||
$ArtistName = Artists::display_artists(Artists::get_artist($GroupID), false, false, false);
|
||||
if ($ArtistName) {
|
||||
$Name = "$ArtistName - $Name";
|
||||
}
|
||||
if ($Format && $Encoding) {
|
||||
$Name .= ' ['.(empty($Media) ? '' : "$Media / ") . "$Format / $Encoding]";
|
||||
}
|
||||
Torrents::delete_torrent($ID, $GroupID);
|
||||
$LogEntries[] = db_string("Torrent $ID ($Name) (".strtoupper($InfoHash).") was deleted for inactivity (unseeded)");
|
||||
|
||||
if (!array_key_exists($UserID, $DeleteNotes)) {
|
||||
$DeleteNotes[$UserID] = array('Count' => 0, 'Msg' => '');
|
||||
}
|
||||
if (!array_key_exists($UserID, $DeleteNotes)) {
|
||||
$DeleteNotes[$UserID] = array('Count' => 0, 'Msg' => '');
|
||||
}
|
||||
|
||||
$DeleteNotes[$UserID]['Msg'] .= "\n$Name";
|
||||
$DeleteNotes[$UserID]['Count']++;
|
||||
$DeleteNotes[$UserID]['Msg'] .= "\n$Name";
|
||||
$DeleteNotes[$UserID]['Count']++;
|
||||
|
||||
++$i;
|
||||
if ($i % 500 == 0) {
|
||||
echo "$i inactive torrents removed.\n";
|
||||
}
|
||||
++$i;
|
||||
if ($i % 500 == 0) {
|
||||
echo "$i inactive torrents removed.\n";
|
||||
}
|
||||
}
|
||||
echo "$i torrents deleted for inactivity.\n";
|
||||
|
||||
foreach ($DeleteNotes as $UserID => $MessageInfo) {
|
||||
$Singular = (($MessageInfo['Count'] == 1) ? true : false);
|
||||
Misc::send_pm($UserID, 0, $MessageInfo['Count'].' of your torrents '.($Singular ? 'has' : 'have').' been deleted for inactivity', ($Singular ? 'One' : 'Some').' of your uploads '.($Singular ? 'has' : 'have').' been deleted for being unseeded. Since '.($Singular ? 'it' : 'they').' didn\'t break any rules (we hope), please feel free to re-upload '.($Singular ? 'it' : 'them').".\n\nThe following torrent".($Singular ? ' was' : 's were').' deleted:'.$MessageInfo['Msg']);
|
||||
$Singular = (($MessageInfo['Count'] == 1) ? true : false);
|
||||
Misc::send_pm($UserID, 0, $MessageInfo['Count'].' of your torrents '.($Singular ? 'has' : 'have').' been deleted for inactivity', ($Singular ? 'One' : 'Some').' of your uploads '.($Singular ? 'has' : 'have').' been deleted for being unseeded. Since '.($Singular ? 'it' : 'they').' didn\'t break any rules (we hope), please feel free to re-upload '.($Singular ? 'it' : 'them').".\n\nThe following torrent".($Singular ? ' was' : 's were').' deleted:'.$MessageInfo['Msg']);
|
||||
}
|
||||
unset($DeleteNotes);
|
||||
|
||||
if (count($LogEntries) > 0) {
|
||||
$Values = "('".implode("', '$sqltime'), ('", $LogEntries) . "', '$sqltime')";
|
||||
$DB->query("
|
||||
$Values = "('".implode("', '$sqltime'), ('", $LogEntries) . "', '$sqltime')";
|
||||
$DB->query("
|
||||
INSERT INTO log (Message, Time)
|
||||
VALUES $Values");
|
||||
echo "\nDeleted $i torrents for inactivity\n";
|
||||
echo "\nDeleted $i torrents for inactivity\n";
|
||||
}
|
||||
|
||||
$DB->query("
|
||||
@@ -82,13 +81,13 @@ $DB->query("
|
||||
$SimilarIDs = implode(',', $DB->collect('SimilarID'));
|
||||
|
||||
if ($SimilarIDs) {
|
||||
$DB->query("
|
||||
$DB->query("
|
||||
DELETE FROM artists_similar
|
||||
WHERE SimilarID IN($SimilarIDs)");
|
||||
$DB->query("
|
||||
$DB->query("
|
||||
DELETE FROM artists_similar_scores
|
||||
WHERE SimilarID IN($SimilarIDs)");
|
||||
$DB->query("
|
||||
$DB->query("
|
||||
DELETE FROM artists_similar_votes
|
||||
WHERE SimilarID IN($SimilarIDs)");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user