From df33bbfe19596b34d7d66a265c4262e245ecbf80 Mon Sep 17 00:00:00 2001 From: RoelReijn <34895541+RoelReijn@users.noreply.github.com> Date: Mon, 28 Dec 2020 14:58:55 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A5=20shrink=20requirements=20(support?= =?UTF-8?q?=20for=20PHP8)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Due to some packages which aren't updated for PHP 8 I've removed the need for them. They weren't used after all. In the future I may revert this commit. --- .php_cs.dist | 37 ------------------------------------- composer.json | 12 ------------ phpunit.xml.dist | 31 ------------------------------- psalm.xml.dist | 16 ---------------- tests/ExampleTest.php | 12 ------------ tests/TestCase.php | 20 -------------------- 6 files changed, 128 deletions(-) delete mode 100644 .php_cs.dist delete mode 100644 phpunit.xml.dist delete mode 100644 psalm.xml.dist delete mode 100644 tests/ExampleTest.php delete mode 100644 tests/TestCase.php diff --git a/.php_cs.dist b/.php_cs.dist deleted file mode 100644 index 1c4e7d5..0000000 --- a/.php_cs.dist +++ /dev/null @@ -1,37 +0,0 @@ -notPath('bootstrap/*') - ->notPath('storage/*') - ->notPath('resources/view/mail/*') - ->in([ - __DIR__ . '/src', - __DIR__ . '/tests', - ]) - ->name('*.php') - ->notName('*.blade.php') - ->ignoreDotFiles(true) - ->ignoreVCS(true); - -return PhpCsFixer\Config::create() - ->setRules([ - '@PSR2' => true, - 'array_syntax' => ['syntax' => 'short'], - 'ordered_imports' => ['sortAlgorithm' => 'alpha'], - 'no_unused_imports' => true, - 'not_operator_with_successor_space' => true, - 'trailing_comma_in_multiline_array' => true, - 'phpdoc_scalar' => true, - 'unary_operator_spaces' => true, - 'binary_operator_spaces' => true, - 'blank_line_before_statement' => [ - 'statements' => ['break', 'continue', 'declare', 'return', 'throw', 'try'], - ], - 'phpdoc_single_line_var_spacing' => true, - 'phpdoc_var_without_name' => true, - 'method_argument_space' => [ - 'on_multiline' => 'ensure_fully_multiline', - 'keep_multiple_spaces_after_comma' => true, - ] - ]) - ->setFinder($finder); diff --git a/composer.json b/composer.json index 4941733..3dfa4b8 100644 --- a/composer.json +++ b/composer.json @@ -27,12 +27,6 @@ "zacksmash/fortify-ui": "^1.0", "intervention/image": "^2.5.1" }, - "require-dev": { - "friendsofphp/php-cs-fixer": "^2.16", - "orchestra/testbench": "^6.0", - "phpunit/phpunit": "^9.3", - "vimeo/psalm": "^3.11" - }, "autoload": { "psr-4": { "Proxeuse\\FortifyUITabler\\": "src" @@ -43,12 +37,6 @@ "Proxeuse\\FortifyUITabler\\Tests\\": "tests" } }, - "scripts": { - "psalm": "vendor/bin/psalm", - "test": "vendor/bin/phpunit --colors=always", - "test-coverage": "vendor/bin/phpunit --coverage-html coverage", - "format": "vendor/bin/php-cs-fixer fix --allow-risky=yes" - }, "config": { "sort-packages": true }, diff --git a/phpunit.xml.dist b/phpunit.xml.dist deleted file mode 100644 index 48fd33e..0000000 --- a/phpunit.xml.dist +++ /dev/null @@ -1,31 +0,0 @@ - - - - - tests - - - - - ./src - - - - - - - - - - - diff --git a/psalm.xml.dist b/psalm.xml.dist deleted file mode 100644 index c6df33e..0000000 --- a/psalm.xml.dist +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - - - - diff --git a/tests/ExampleTest.php b/tests/ExampleTest.php deleted file mode 100644 index bf5c8ad..0000000 --- a/tests/ExampleTest.php +++ /dev/null @@ -1,12 +0,0 @@ -assertTrue(true); - } -} diff --git a/tests/TestCase.php b/tests/TestCase.php deleted file mode 100644 index c8bf5e9..0000000 --- a/tests/TestCase.php +++ /dev/null @@ -1,20 +0,0 @@ -