diff --git a/README.md b/README.md index e6d98da02..27ee0e9f8 100644 --- a/README.md +++ b/README.md @@ -15,6 +15,7 @@ ![BoxBilling Size](https://img.shields.io/github/repo-size/boxbilling/boxbilling.svg?style=popout) [![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0) [![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/boxbilling/boxbilling/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/boxbilling/boxbilling/?branch=master) +[![CodeFactor](https://www.codefactor.io/repository/github/boxbilling/boxbilling/badge)](https://www.codefactor.io/repository/github/boxbilling/boxbilling) diff --git a/src/bb-modules/Formbuilder/Api/Admin.php b/src/bb-modules/Formbuilder/Api/Admin.php index 5f7bbb493..8d45988e1 100644 --- a/src/bb-modules/Formbuilder/Api/Admin.php +++ b/src/bb-modules/Formbuilder/Api/Admin.php @@ -271,7 +271,7 @@ class Admin extends \Api_Abstract /** - * Dublicate form with its fields in database + * Duplicate form with its fields in database * * @param int $form_id - ID of the origin form * @param string $name - Name of copied form @@ -290,7 +290,7 @@ class Admin extends \Api_Abstract } $service = $this->getService(); - $new_form_id = $service->dublicateForm($data); + $new_form_id = $service->duplicateForm($data); return $new_form_id; } @@ -325,4 +325,4 @@ class Admin extends \Api_Abstract } -} \ No newline at end of file +} diff --git a/src/bb-modules/Formbuilder/Service.php b/src/bb-modules/Formbuilder/Service.php index 86b9bad46..6064806be 100644 --- a/src/bb-modules/Formbuilder/Service.php +++ b/src/bb-modules/Formbuilder/Service.php @@ -366,7 +366,7 @@ class Service implements InjectionAwareInterface return $this->di['db']->getAll($sql); } - public function dublicateForm($data) + public function duplicateForm($data) { $fields = $this->getFormFields($data['form_id']); @@ -410,4 +410,4 @@ class Service implements InjectionAwareInterface } -} \ No newline at end of file +} diff --git a/src/bb-modules/Redirect/Api/Admin.php b/src/bb-modules/Redirect/Api/Admin.php index 59d968ce8..e58bac659 100644 --- a/src/bb-modules/Redirect/Api/Admin.php +++ b/src/bb-modules/Redirect/Api/Admin.php @@ -99,8 +99,8 @@ class Admin extends \Api_Abstract $bean = $this->_getRedirect($data['id']); - $bean->meta_key = $this->di['array_get']($data, 'path', $bean->meta_key); - $bean->meta_value = $this->di['array_get']($data, 'target', $bean->meta_value); + $bean->meta_key = trim(htmlspecialchars($this->di['array_get']($data, 'path', $bean->meta_key), ENT_QUOTES | ENT_HTML5, 'UTF-8'), '/'); + $bean->meta_value = trim(htmlspecialchars($this->di['array_get']($data, 'target', $bean->meta_value), ENT_QUOTES | ENT_HTML5, 'UTF-8'), '/'); $bean->updated_at = date('Y-m-d H:i:s'); $this->di['db']->store($bean); @@ -140,4 +140,4 @@ class Admin extends \Api_Abstract return $bean; } -} \ No newline at end of file +} diff --git a/src/composer.json b/src/composer.json index 2547f3e9f..01acc2dc8 100644 --- a/src/composer.json +++ b/src/composer.json @@ -17,7 +17,7 @@ "ext-zlib": "*", "ext-PDO": "*", "ext-mbstring" : "*", - "pimple/pimple": "v3.3.0", + "pimple/pimple": "^3.3", "twig/twig": "^v2.13.0", "twig/extensions": "^1.5.4", "geoip2/geoip2": "v2.10.0", diff --git a/src/composer.lock b/src/composer.lock index fc2a30c27..2d5c060fd 100644 --- a/src/composer.lock +++ b/src/composer.lock @@ -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": "f628e09f5dff007c1c3b51f040151cbd", + "content-hash": "aaccdf49e9478abdf3ace3ab9294c743", "packages": [ { "name": "composer/ca-bundle", - "version": "1.2.8", + "version": "1.2.9", "source": { "type": "git", "url": "https://github.com/composer/ca-bundle.git", - "reference": "8a7ecad675253e4654ea05505233285377405215" + "reference": "78a0e288fdcebf92aa2318a8d3656168da6ac1a5" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/composer/ca-bundle/zipball/8a7ecad675253e4654ea05505233285377405215", - "reference": "8a7ecad675253e4654ea05505233285377405215", + "url": "https://api.github.com/repos/composer/ca-bundle/zipball/78a0e288fdcebf92aa2318a8d3656168da6ac1a5", + "reference": "78a0e288fdcebf92aa2318a8d3656168da6ac1a5", "shasum": "" }, "require": { @@ -26,14 +26,15 @@ "php": "^5.3.2 || ^7.0 || ^8.0" }, "require-dev": { - "phpunit/phpunit": "^4.8.35 || ^5.7 || 6.5 - 8", + "phpstan/phpstan": "^0.12.55", "psr/log": "^1.0", + "symfony/phpunit-bridge": "^4.2 || ^5", "symfony/process": "^2.5 || ^3.0 || ^4.0 || ^5.0" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.x-dev" + "dev-main": "1.x-dev" } }, "autoload": { @@ -63,7 +64,7 @@ "support": { "irc": "irc://irc.freenode.org/composer", "issues": "https://github.com/composer/ca-bundle/issues", - "source": "https://github.com/composer/ca-bundle/tree/1.2.8" + "source": "https://github.com/composer/ca-bundle/tree/1.2.9" }, "funding": [ { @@ -79,7 +80,7 @@ "type": "tidelift" } ], - "time": "2020-08-23T12:54:47+00:00" + "time": "2021-01-12T12:10:35+00:00" }, { "name": "docnet/tfpdf", @@ -466,6 +467,10 @@ } ], "description": "A WHM API client for MyOwnFreeHost in PHP", + "support": { + "issues": "https://github.com/InfinityFreeHosting/mofh-client/issues", + "source": "https://github.com/InfinityFreeHosting/mofh-client/tree/0.7.0" + }, "time": "2020-09-12T15:50:56+00:00" }, { @@ -645,27 +650,28 @@ }, { "name": "maxmind-db/reader", - "version": "v1.8.0", + "version": "v1.10.0", "source": { "type": "git", "url": "https://github.com/maxmind/MaxMind-DB-Reader-php.git", - "reference": "b566d429ac9aec10594b0935be8ff38302f8d5c8" + "reference": "07f84d969cfc527ce49388558a366ad376f1f35c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/maxmind/MaxMind-DB-Reader-php/zipball/b566d429ac9aec10594b0935be8ff38302f8d5c8", - "reference": "b566d429ac9aec10594b0935be8ff38302f8d5c8", + "url": "https://api.github.com/repos/maxmind/MaxMind-DB-Reader-php/zipball/07f84d969cfc527ce49388558a366ad376f1f35c", + "reference": "07f84d969cfc527ce49388558a366ad376f1f35c", "shasum": "" }, "require": { "php": ">=7.2" }, "conflict": { - "ext-maxminddb": "<1.8.0,>=2.0.0" + "ext-maxminddb": "<1.10.0,>=2.0.0" }, "require-dev": { - "friendsofphp/php-cs-fixer": "2.*", + "friendsofphp/php-cs-fixer": "*", "php-coveralls/php-coveralls": "^2.1", + "phpstan/phpstan": "*", "phpunit/phpcov": ">=6.0.0", "phpunit/phpunit": ">=8.0.0,<10.0.0", "squizlabs/php_codesniffer": "3.*" @@ -703,9 +709,9 @@ ], "support": { "issues": "https://github.com/maxmind/MaxMind-DB-Reader-php/issues", - "source": "https://github.com/maxmind/MaxMind-DB-Reader-php/tree/v1.8.0" + "source": "https://github.com/maxmind/MaxMind-DB-Reader-php/tree/v1.10.0" }, - "time": "2020-10-01T17:30:21+00:00" + "time": "2021-02-09T17:52:47+00:00" }, { "name": "maxmind/web-service-common", @@ -934,24 +940,24 @@ }, { "name": "pimple/pimple", - "version": "v3.3.0", + "version": "v3.3.1", "source": { "type": "git", "url": "https://github.com/silexphp/Pimple.git", - "reference": "e55d12f9d6a0e7f9c85992b73df1267f46279930" + "reference": "21e45061c3429b1e06233475cc0e1f6fc774d5b0" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/silexphp/Pimple/zipball/e55d12f9d6a0e7f9c85992b73df1267f46279930", - "reference": "e55d12f9d6a0e7f9c85992b73df1267f46279930", + "url": "https://api.github.com/repos/silexphp/Pimple/zipball/21e45061c3429b1e06233475cc0e1f6fc774d5b0", + "reference": "21e45061c3429b1e06233475cc0e1f6fc774d5b0", "shasum": "" }, "require": { - "php": "^7.2.5", + "php": ">=7.2.5", "psr/container": "^1.0" }, "require-dev": { - "symfony/phpunit-bridge": "^3.4|^4.4|^5.0" + "symfony/phpunit-bridge": "^5.0" }, "type": "library", "extra": { @@ -981,10 +987,9 @@ "dependency injection" ], "support": { - "issues": "https://github.com/silexphp/Pimple/issues", - "source": "https://github.com/silexphp/Pimple/tree/master" + "source": "https://github.com/silexphp/Pimple/tree/v3.3.1" }, - "time": "2020-03-03T09:12:48+00:00" + "time": "2020-11-24T20:35:42+00:00" }, { "name": "psr/container", @@ -1306,16 +1311,16 @@ }, { "name": "symfony/polyfill-ctype", - "version": "v1.20.0", + "version": "v1.22.1", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-ctype.git", - "reference": "f4ba089a5b6366e453971d3aad5fe8e897b37f41" + "reference": "c6c942b1ac76c82448322025e084cadc56048b4e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/f4ba089a5b6366e453971d3aad5fe8e897b37f41", - "reference": "f4ba089a5b6366e453971d3aad5fe8e897b37f41", + "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/c6c942b1ac76c82448322025e084cadc56048b4e", + "reference": "c6c942b1ac76c82448322025e084cadc56048b4e", "shasum": "" }, "require": { @@ -1327,7 +1332,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-main": "1.20-dev" + "dev-main": "1.22-dev" }, "thanks": { "name": "symfony/polyfill", @@ -1365,7 +1370,7 @@ "portable" ], "support": { - "source": "https://github.com/symfony/polyfill-ctype/tree/v1.20.0" + "source": "https://github.com/symfony/polyfill-ctype/tree/v1.22.1" }, "funding": [ { @@ -1381,20 +1386,20 @@ "type": "tidelift" } ], - "time": "2020-10-23T14:02:19+00:00" + "time": "2021-01-07T16:49:33+00:00" }, { "name": "symfony/polyfill-mbstring", - "version": "v1.20.0", + "version": "v1.22.1", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-mbstring.git", - "reference": "39d483bdf39be819deabf04ec872eb0b2410b531" + "reference": "5232de97ee3b75b0360528dae24e73db49566ab1" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/39d483bdf39be819deabf04ec872eb0b2410b531", - "reference": "39d483bdf39be819deabf04ec872eb0b2410b531", + "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/5232de97ee3b75b0360528dae24e73db49566ab1", + "reference": "5232de97ee3b75b0360528dae24e73db49566ab1", "shasum": "" }, "require": { @@ -1406,7 +1411,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-main": "1.20-dev" + "dev-main": "1.22-dev" }, "thanks": { "name": "symfony/polyfill", @@ -1445,7 +1450,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-mbstring/tree/v1.20.0" + "source": "https://github.com/symfony/polyfill-mbstring/tree/v1.22.1" }, "funding": [ { @@ -1461,7 +1466,7 @@ "type": "tidelift" } ], - "time": "2020-10-23T14:02:19+00:00" + "time": "2021-01-22T09:19:47+00:00" }, { "name": "twig/extensions", @@ -1525,16 +1530,16 @@ }, { "name": "twig/twig", - "version": "v2.14.1", + "version": "v2.14.3", "source": { "type": "git", "url": "https://github.com/twigphp/Twig.git", - "reference": "5eb9ac5dfdd20c3f59495c22841adc5da980d312" + "reference": "8bc568d460d88b25c00c046256ec14a787ea60d9" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/twigphp/Twig/zipball/5eb9ac5dfdd20c3f59495c22841adc5da980d312", - "reference": "5eb9ac5dfdd20c3f59495c22841adc5da980d312", + "url": "https://api.github.com/repos/twigphp/Twig/zipball/8bc568d460d88b25c00c046256ec14a787ea60d9", + "reference": "8bc568d460d88b25c00c046256ec14a787ea60d9", "shasum": "" }, "require": { @@ -1588,7 +1593,7 @@ ], "support": { "issues": "https://github.com/twigphp/Twig/issues", - "source": "https://github.com/twigphp/Twig/tree/v2.14.1" + "source": "https://github.com/twigphp/Twig/tree/v2.14.3" }, "funding": [ { @@ -1600,7 +1605,7 @@ "type": "tidelift" } ], - "time": "2020-10-27T19:25:29+00:00" + "time": "2021-01-05T15:34:33+00:00" } ], "packages-dev": [ @@ -1733,16 +1738,16 @@ }, { "name": "nikic/php-parser", - "version": "v4.10.2", + "version": "v4.10.4", "source": { "type": "git", "url": "https://github.com/nikic/PHP-Parser.git", - "reference": "658f1be311a230e0907f5dfe0213742aff0596de" + "reference": "c6d052fc58cb876152f89f532b95a8d7907e7f0e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/658f1be311a230e0907f5dfe0213742aff0596de", - "reference": "658f1be311a230e0907f5dfe0213742aff0596de", + "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/c6d052fc58cb876152f89f532b95a8d7907e7f0e", + "reference": "c6d052fc58cb876152f89f532b95a8d7907e7f0e", "shasum": "" }, "require": { @@ -1783,9 +1788,9 @@ ], "support": { "issues": "https://github.com/nikic/PHP-Parser/issues", - "source": "https://github.com/nikic/PHP-Parser/tree/v4.10.2" + "source": "https://github.com/nikic/PHP-Parser/tree/v4.10.4" }, - "time": "2020-09-26T10:30:38+00:00" + "time": "2020-12-20T10:01:03+00:00" }, { "name": "phar-io/manifest", @@ -1849,16 +1854,16 @@ }, { "name": "phar-io/version", - "version": "3.0.2", + "version": "3.0.4", "source": { "type": "git", "url": "https://github.com/phar-io/version.git", - "reference": "c6bb6825def89e0a32220f88337f8ceaf1975fa0" + "reference": "e4782611070e50613683d2b9a57730e9a3ba5451" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phar-io/version/zipball/c6bb6825def89e0a32220f88337f8ceaf1975fa0", - "reference": "c6bb6825def89e0a32220f88337f8ceaf1975fa0", + "url": "https://api.github.com/repos/phar-io/version/zipball/e4782611070e50613683d2b9a57730e9a3ba5451", + "reference": "e4782611070e50613683d2b9a57730e9a3ba5451", "shasum": "" }, "require": { @@ -1894,9 +1899,9 @@ "description": "Library for handling version information and constraints", "support": { "issues": "https://github.com/phar-io/version/issues", - "source": "https://github.com/phar-io/version/tree/master" + "source": "https://github.com/phar-io/version/tree/3.0.4" }, - "time": "2020-06-27T14:39:04+00:00" + "time": "2020-12-13T23:18:30+00:00" }, { "name": "phpdocumentor/reflection-common", @@ -2058,16 +2063,16 @@ }, { "name": "phpspec/prophecy", - "version": "1.12.1", + "version": "1.12.2", "source": { "type": "git", "url": "https://github.com/phpspec/prophecy.git", - "reference": "8ce87516be71aae9b956f81906aaf0338e0d8a2d" + "reference": "245710e971a030f42e08f4912863805570f23d39" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpspec/prophecy/zipball/8ce87516be71aae9b956f81906aaf0338e0d8a2d", - "reference": "8ce87516be71aae9b956f81906aaf0338e0d8a2d", + "url": "https://api.github.com/repos/phpspec/prophecy/zipball/245710e971a030f42e08f4912863805570f23d39", + "reference": "245710e971a030f42e08f4912863805570f23d39", "shasum": "" }, "require": { @@ -2079,7 +2084,7 @@ }, "require-dev": { "phpspec/phpspec": "^6.0", - "phpunit/phpunit": "^8.0 || ^9.0 <9.3" + "phpunit/phpunit": "^8.0 || ^9.0" }, "type": "library", "extra": { @@ -2119,22 +2124,22 @@ ], "support": { "issues": "https://github.com/phpspec/prophecy/issues", - "source": "https://github.com/phpspec/prophecy/tree/1.12.1" + "source": "https://github.com/phpspec/prophecy/tree/1.12.2" }, - "time": "2020-09-29T09:10:42+00:00" + "time": "2020-12-19T10:15:11+00:00" }, { "name": "phpunit/php-code-coverage", - "version": "9.2.3", + "version": "9.2.5", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/php-code-coverage.git", - "reference": "6b20e2055f7c29b56cb3870b3de7cc463d7add41" + "reference": "f3e026641cc91909d421802dd3ac7827ebfd97e1" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/6b20e2055f7c29b56cb3870b3de7cc463d7add41", - "reference": "6b20e2055f7c29b56cb3870b3de7cc463d7add41", + "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/f3e026641cc91909d421802dd3ac7827ebfd97e1", + "reference": "f3e026641cc91909d421802dd3ac7827ebfd97e1", "shasum": "" }, "require": { @@ -2148,7 +2153,7 @@ "sebastian/code-unit-reverse-lookup": "^2.0.2", "sebastian/complexity": "^2.0", "sebastian/environment": "^5.1.2", - "sebastian/lines-of-code": "^1.0", + "sebastian/lines-of-code": "^1.0.3", "sebastian/version": "^3.0.1", "theseer/tokenizer": "^1.2.0" }, @@ -2190,7 +2195,7 @@ ], "support": { "issues": "https://github.com/sebastianbergmann/php-code-coverage/issues", - "source": "https://github.com/sebastianbergmann/php-code-coverage/tree/9.2.3" + "source": "https://github.com/sebastianbergmann/php-code-coverage/tree/9.2.5" }, "funding": [ { @@ -2198,7 +2203,7 @@ "type": "github" } ], - "time": "2020-10-30T10:46:41+00:00" + "time": "2020-11-28T06:44:49+00:00" }, { "name": "phpunit/php-file-iterator", @@ -2443,16 +2448,16 @@ }, { "name": "phpunit/phpunit", - "version": "9.4.3", + "version": "9.5.2", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/phpunit.git", - "reference": "9fa359ff5ddaa5eb2be2bedb08a6a5787a5807ab" + "reference": "f661659747f2f87f9e72095bb207bceb0f151cb4" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/9fa359ff5ddaa5eb2be2bedb08a6a5787a5807ab", - "reference": "9fa359ff5ddaa5eb2be2bedb08a6a5787a5807ab", + "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/f661659747f2f87f9e72095bb207bceb0f151cb4", + "reference": "f661659747f2f87f9e72095bb207bceb0f151cb4", "shasum": "" }, "require": { @@ -2468,7 +2473,7 @@ "phar-io/version": "^3.0.2", "php": ">=7.3", "phpspec/prophecy": "^1.12.1", - "phpunit/php-code-coverage": "^9.2", + "phpunit/php-code-coverage": "^9.2.3", "phpunit/php-file-iterator": "^3.0.5", "phpunit/php-invoker": "^3.1.1", "phpunit/php-text-template": "^2.0.3", @@ -2499,7 +2504,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "9.4-dev" + "dev-master": "9.5-dev" } }, "autoload": { @@ -2530,7 +2535,7 @@ ], "support": { "issues": "https://github.com/sebastianbergmann/phpunit/issues", - "source": "https://github.com/sebastianbergmann/phpunit/tree/9.4.3" + "source": "https://github.com/sebastianbergmann/phpunit/tree/9.5.2" }, "funding": [ { @@ -2542,7 +2547,7 @@ "type": "github" } ], - "time": "2020-11-10T12:53:30+00:00" + "time": "2021-02-02T14:45:58+00:00" }, { "name": "sebastian/cli-parser", @@ -3114,16 +3119,16 @@ }, { "name": "sebastian/lines-of-code", - "version": "1.0.2", + "version": "1.0.3", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/lines-of-code.git", - "reference": "acf76492a65401babcf5283296fa510782783a7a" + "reference": "c1c2e997aa3146983ed888ad08b15470a2e22ecc" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/lines-of-code/zipball/acf76492a65401babcf5283296fa510782783a7a", - "reference": "acf76492a65401babcf5283296fa510782783a7a", + "url": "https://api.github.com/repos/sebastianbergmann/lines-of-code/zipball/c1c2e997aa3146983ed888ad08b15470a2e22ecc", + "reference": "c1c2e997aa3146983ed888ad08b15470a2e22ecc", "shasum": "" }, "require": { @@ -3159,7 +3164,7 @@ "homepage": "https://github.com/sebastianbergmann/lines-of-code", "support": { "issues": "https://github.com/sebastianbergmann/lines-of-code/issues", - "source": "https://github.com/sebastianbergmann/lines-of-code/tree/1.0.2" + "source": "https://github.com/sebastianbergmann/lines-of-code/tree/1.0.3" }, "funding": [ { @@ -3167,7 +3172,7 @@ "type": "github" } ], - "time": "2020-10-26T17:03:56+00:00" + "time": "2020-11-28T06:42:11+00:00" }, { "name": "sebastian/object-enumerator", @@ -3646,12 +3651,12 @@ "version": "1.9.1", "source": { "type": "git", - "url": "https://github.com/webmozart/assert.git", + "url": "https://github.com/webmozarts/assert.git", "reference": "bafc69caeb4d49c39fd0779086c03a3738cbb389" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/webmozart/assert/zipball/bafc69caeb4d49c39fd0779086c03a3738cbb389", + "url": "https://api.github.com/repos/webmozarts/assert/zipball/bafc69caeb4d49c39fd0779086c03a3738cbb389", "reference": "bafc69caeb4d49c39fd0779086c03a3738cbb389", "shasum": "" }, @@ -3689,8 +3694,8 @@ "validate" ], "support": { - "issues": "https://github.com/webmozart/assert/issues", - "source": "https://github.com/webmozart/assert/tree/master" + "issues": "https://github.com/webmozarts/assert/issues", + "source": "https://github.com/webmozarts/assert/tree/1.9.1" }, "time": "2020-07-08T17:02:28+00:00" } @@ -3708,5 +3713,5 @@ "ext-mbstring": "*" }, "platform-dev": [], - "plugin-api-version": "1.1.0" + "plugin-api-version": "2.0.0" } diff --git a/src/rb.php b/src/rb.php index 4cc7379d7..e3a2a26c4 100644 --- a/src/rb.php +++ b/src/rb.php @@ -827,7 +827,7 @@ use RedBeanPHP\RedException\Security as Security; * This source file is subject to the BSD/GPLv2 License that is bundled * with this source code in the file license.txt. */ -class OODBBean implements\IteratorAggregate,\ArrayAccess,\Countable +class OODBBean implements \IteratorAggregate, \ArrayAccess, \Countable { /** diff --git a/tests/bb-modules/Formbuilder/Api/AdminTest.php b/tests/bb-modules/Formbuilder/Api/AdminTest.php index e8d718584..866c8cc98 100644 --- a/tests/bb-modules/Formbuilder/Api/AdminTest.php +++ b/tests/bb-modules/Formbuilder/Api/AdminTest.php @@ -319,7 +319,7 @@ class AdminTest extends \BBTestCase { $serviceMock = $this->getServiceMock(); $serviceMock->expects($this->atLeastOnce()) - ->method('dublicateForm') + ->method('duplicateForm') ->will($this->returnValue($newFormId)); $this->api->setService($serviceMock); @@ -405,4 +405,4 @@ class AdminTest extends \BBTestCase { } - \ No newline at end of file + diff --git a/tests/bb-modules/Formbuilder/ServiceTest.php b/tests/bb-modules/Formbuilder/ServiceTest.php index c79c1a44f..e1024423e 100644 --- a/tests/bb-modules/Formbuilder/ServiceTest.php +++ b/tests/bb-modules/Formbuilder/ServiceTest.php @@ -533,7 +533,7 @@ class ServiceTest extends \BBTestCase { $this->assertIsArray($result); } - public function testdublicateForm() + public function testduplicateForm() { $data = array( 'form_id' => 1, @@ -543,7 +543,7 @@ class ServiceTest extends \BBTestCase { $newFormId = 3; $newFieldId = 4; $fields = array( - 'options' => '', + 'options' => array(), ); $serviceMock = $this->getMockBuilder('\Box\Mod\Formbuilder\Service') @@ -566,7 +566,7 @@ class ServiceTest extends \BBTestCase { $di['logger'] = new \Box_Log(); $serviceMock->setDi($di); - $result = $serviceMock->dublicateForm($data); + $result = $serviceMock->duplicateForm($data); $this->assertIsInt($result); $this->assertEquals($newFormId, $result); } @@ -594,4 +594,4 @@ class ServiceTest extends \BBTestCase { } - \ No newline at end of file + diff --git a/tests/bb-modules/Servicehosting/ServiceTest.php b/tests/bb-modules/Servicehosting/ServiceTest.php index 3f9f7078a..714d387fa 100644 --- a/tests/bb-modules/Servicehosting/ServiceTest.php +++ b/tests/bb-modules/Servicehosting/ServiceTest.php @@ -126,7 +126,7 @@ class ServiceTest extends \BBTestCase { $toolsMock = $this->getMockBuilder('\Box_Tools')->getMock(); $toolsMock->expects($this->atLeastOnce()) ->method('generatePassword') - ->will($this->returnValue('generatedPass')); + ->will($this->returnValue('generatedPassword')); $dbMock = $this->getMockBuilder('\Box_Database')->getMock(); $dbMock->expects($this->atLeastOnce()) @@ -163,7 +163,7 @@ class ServiceTest extends \BBTestCase { $orderModel = new \Model_ClientOrder(); $orderModel->loadBean(new \RedBeanPHP\OODBBean()); - $model = new \Model_ServiceHosting(); + $model = new \Model_ServiceHostingHp(); $model->loadBean(new \RedBeanPHP\OODBBean()); $orderServiceMock = $this->getMockBuilder('\Box\Mod\Order\Service')->getMock(); @@ -784,7 +784,7 @@ class ServiceTest extends \BBTestCase { $hostingServer = new \Model_ServiceHostingServer(); $hostingServer->loadBean(new \RedBeanPHP\OODBBean()); $hostingServer->manager = 'Custom'; - $hostingHp = new\Model_ServiceHostingHp(); + $hostingHp = new \Model_ServiceHostingHp(); $hostingHp->loadBean(new \RedBeanPHP\OODBBean()); @@ -1331,4 +1331,4 @@ class ServiceTest extends \BBTestCase { -} \ No newline at end of file +}