From e508026425734e0f6cb1a8f8e4c389e2dc380869 Mon Sep 17 00:00:00 2001 From: coderius Date: Thu, 27 Aug 2020 00:16:37 +0300 Subject: [PATCH 01/23] Update readme --- .scrutinizer.yml | 35 +++++++++++++++++++++++++++++++++++ .travis.yml | 25 +++++++++++++++++++++++++ README.md | 7 +++++++ 3 files changed, 67 insertions(+) create mode 100644 .scrutinizer.yml create mode 100644 .travis.yml diff --git a/.scrutinizer.yml b/.scrutinizer.yml new file mode 100644 index 0000000..b34bb61 --- /dev/null +++ b/.scrutinizer.yml @@ -0,0 +1,35 @@ +filter: + excluded_paths: [tests/*] +checks: + php: + code_rating: true + remove_extra_empty_lines: true + remove_php_closing_tag: true + remove_trailing_whitespace: true + fix_use_statements: + remove_unused: true + preserve_multiple: false + preserve_blanklines: true + order_alphabetically: true + fix_php_opening_tag: true + fix_linefeed: true + fix_line_ending: true + fix_identation_4spaces: true + fix_doc_comments: true +tools: + external_code_coverage: + timeout: 600 + runs: 3 + php_analyzer: true + php_code_coverage: false + php_code_sniffer: + config: + standard: PSR2 + filter: + paths: ['src'] + php_loc: + enabled: true + excluded_dirs: [vendor, tests] + php_cpd: + enabled: true + excluded_dirs: [vendor, tests] \ No newline at end of file diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..8b62755 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,25 @@ +language: php + +php: + - 5.6 + - 7.1 + - 7.2 + - 7.3 + - 7.4 + +install: + - composer self-update + - composer global require "fxp/composer-asset-plugin:~1.3" + - composer install + +before_script: + - travis_retry composer self-update && composer --version + - travis_retry composer install --no-interaction --prefer-source --dev + +script: + - composer info | sort + - vendor/bin/phpunit --coverage-text --coverage-clover=coverage.clover + +after_script: + - wget https://scrutinizer-ci.com/ocular.phar + - php ocular.phar code-coverage:upload --format=php-clover coverage.clover \ No newline at end of file diff --git a/README.md b/README.md index aa7b0f3..124c69d 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,11 @@ # Yii2 upload file behavior # +[![Software License](https://img.shields.io/github/license/coderius/yii2-upload-file-behavior)](LICENSE.md) +[![Code Coverage](https://scrutinizer-ci.com/g/coderius/yii2-upload-file-behavior/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/coderius/yii2-upload-file-behavior/?branch=master) +[![Code Intelligence Status](https://scrutinizer-ci.com/g/coderius/yii2-upload-file-behavior/badges/code-intelligence.svg?b=master)](https://scrutinizer-ci.com/code-intelligence) +[![Code Quality](https://img.shields.io/scrutinizer/quality/g/coderius/yii2-upload-file-behavior.svg?style=flat-square)](https://scrutinizer-ci.com/g/coderius/yii2-upload-file-behavior/?branch=master) +[![CodeFactor](https://img.shields.io/codefactor/grade/github/coderius/yii2-upload-file-behavior)](https://www.codefactor.io/repository/github/coderius/yii2-upload-file-behavior) +[![Build Status](https://scrutinizer-ci.com/g/coderius/yii2-upload-file-behavior/badges/build.png?b=master)](https://scrutinizer-ci.com/g/coderius/yii2-upload-file-behavior/build-status/master) + ## About Yii2 upload file behavior - simple wey to upload images and files to server. From 131bb7f453fa355e95a21ae52d5d2118eb90ea0d Mon Sep 17 00:00:00 2001 From: coderius Date: Thu, 27 Aug 2020 00:21:13 +0300 Subject: [PATCH 02/23] Update readme --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 124c69d..0939038 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,11 @@ # Yii2 upload file behavior # [![Software License](https://img.shields.io/github/license/coderius/yii2-upload-file-behavior)](LICENSE.md) +[![Latest Version](https://img.shields.io/github/tag/coderius/yii2-upload-file-behavior.svg?style=flat-square&label=release)](https://github.com/coderius/yii2-upload-file-behavior/tags) [![Code Coverage](https://scrutinizer-ci.com/g/coderius/yii2-upload-file-behavior/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/coderius/yii2-upload-file-behavior/?branch=master) [![Code Intelligence Status](https://scrutinizer-ci.com/g/coderius/yii2-upload-file-behavior/badges/code-intelligence.svg?b=master)](https://scrutinizer-ci.com/code-intelligence) [![Code Quality](https://img.shields.io/scrutinizer/quality/g/coderius/yii2-upload-file-behavior.svg?style=flat-square)](https://scrutinizer-ci.com/g/coderius/yii2-upload-file-behavior/?branch=master) -[![CodeFactor](https://img.shields.io/codefactor/grade/github/coderius/yii2-upload-file-behavior)](https://www.codefactor.io/repository/github/coderius/yii2-upload-file-behavior) [![Build Status](https://scrutinizer-ci.com/g/coderius/yii2-upload-file-behavior/badges/build.png?b=master)](https://scrutinizer-ci.com/g/coderius/yii2-upload-file-behavior/build-status/master) +[![Total Downloads](https://img.shields.io/packagist/dt/coderius/yii2-upload-file-behavior.svg?style=flat-square)](https://packagist.org/packages/coderius/yii2-upload-file-behavior) ## About From 5af53935daadae191722af18518d55f847d71ccc Mon Sep 17 00:00:00 2001 From: coderius Date: Fri, 28 Aug 2020 10:29:55 +0300 Subject: [PATCH 03/23] Update --- composer.json | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 7bdcdb6..2fe6407 100644 --- a/composer.json +++ b/composer.json @@ -54,6 +54,12 @@ "github-no-api": true }, "asset-pattern-skip-version": "(-patch)" - } + }, + "repositories": [ + { + "type": "composer", + "url": "https://asset-packagist.org" + } + ] } From 54d65508dec65aa28cf518b629deb0200499883b Mon Sep 17 00:00:00 2001 From: coderius Date: Sat, 29 Aug 2020 09:07:10 +0300 Subject: [PATCH 04/23] Fix TestCase PHP Parse error: syntax error, unexpected ':' --- tests/TestCase.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/TestCase.php b/tests/TestCase.php index 1717510..f1c9f6b 100644 --- a/tests/TestCase.php +++ b/tests/TestCase.php @@ -13,7 +13,7 @@ */ abstract class TestCase extends \PHPUnit\Framework\TestCase { - protected function setUp(): void + protected function setUp() { parent::setUp(); $this->mockWebApplication(); @@ -23,7 +23,7 @@ protected function setUp(): void * Clean up after test. * By default the application created with [[mockApplication]] will be destroyed. */ - protected function tearDown(): void + protected function tearDown() { parent::tearDown(); $this->destroyApplication(); From f205c8f8f84a3f16892a6bfd8c45d6321ab4dd65 Mon Sep 17 00:00:00 2001 From: coderius Date: Sat, 29 Aug 2020 10:14:55 +0300 Subject: [PATCH 05/23] Update scrutinizer.yml --- .scrutinizer.yml | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/.scrutinizer.yml b/.scrutinizer.yml index b34bb61..4159f87 100644 --- a/.scrutinizer.yml +++ b/.scrutinizer.yml @@ -17,11 +17,12 @@ checks: fix_identation_4spaces: true fix_doc_comments: true tools: - external_code_coverage: - timeout: 600 - runs: 3 + # external_code_coverage: + # timeout: 600 + # runs: 3 php_analyzer: true - php_code_coverage: false + # php_code_coverage: false + php_code_coverage: true php_code_sniffer: config: standard: PSR2 @@ -32,4 +33,14 @@ tools: excluded_dirs: [vendor, tests] php_cpd: enabled: true - excluded_dirs: [vendor, tests] \ No newline at end of file + excluded_dirs: [vendor, tests] +build: + nodes: + coverage: + tests: + override: + - command: ./vendor/bin/phpunit tests + coverage: + file: build/logs/clover.xml # <- Set this to where we find the coverage data. + # The path is relative to the current directory. + format: clover \ No newline at end of file From 3f149c90adc66b105d44d76690d3878dddbb5c0d Mon Sep 17 00:00:00 2001 From: coderius Date: Sat, 29 Aug 2020 10:19:23 +0300 Subject: [PATCH 06/23] Update scrutinizer.yml --- .scrutinizer.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.scrutinizer.yml b/.scrutinizer.yml index 4159f87..4384bbc 100644 --- a/.scrutinizer.yml +++ b/.scrutinizer.yml @@ -41,6 +41,5 @@ build: override: - command: ./vendor/bin/phpunit tests coverage: - file: build/logs/clover.xml # <- Set this to where we find the coverage data. - # The path is relative to the current directory. - format: clover \ No newline at end of file + file: build/logs/clover.xml + format: clover \ No newline at end of file From f1bbd3d6e0f0e8319ca32bb36c311b1298b93e6d Mon Sep 17 00:00:00 2001 From: coderius Date: Sat, 29 Aug 2020 10:21:30 +0300 Subject: [PATCH 07/23] Update scrutinizer.yml --- .scrutinizer.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.scrutinizer.yml b/.scrutinizer.yml index 4384bbc..10c3017 100644 --- a/.scrutinizer.yml +++ b/.scrutinizer.yml @@ -39,7 +39,7 @@ build: coverage: tests: override: - - command: ./vendor/bin/phpunit tests + - command: './vendor/bin/phpunit tests' coverage: - file: build/logs/clover.xml - format: clover \ No newline at end of file + file: 'build/logs/clover.xml' + format: 'clover' \ No newline at end of file From 119c0b30429ff225b788eefc5823d183e34d1e8c Mon Sep 17 00:00:00 2001 From: coderius Date: Sat, 29 Aug 2020 10:23:38 +0300 Subject: [PATCH 08/23] Update scrutinizer.yml --- .scrutinizer.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.scrutinizer.yml b/.scrutinizer.yml index 10c3017..a8fb0e2 100644 --- a/.scrutinizer.yml +++ b/.scrutinizer.yml @@ -39,7 +39,8 @@ build: coverage: tests: override: - - command: './vendor/bin/phpunit tests' + - + command: './vendor/bin/phpunit tests' coverage: - file: 'build/logs/clover.xml' - format: 'clover' \ No newline at end of file + file: 'build/logs/clover.xml' + format: 'clover' \ No newline at end of file From 45e193fcd24603318220f8daf18531092407c7d7 Mon Sep 17 00:00:00 2001 From: coderius Date: Sat, 29 Aug 2020 10:26:28 +0300 Subject: [PATCH 09/23] Update scrutinizer.yml --- .scrutinizer.yml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.scrutinizer.yml b/.scrutinizer.yml index a8fb0e2..baf6162 100644 --- a/.scrutinizer.yml +++ b/.scrutinizer.yml @@ -35,11 +35,9 @@ tools: enabled: true excluded_dirs: [vendor, tests] build: - nodes: - coverage: - tests: - override: - - + tests: + override: + - command: './vendor/bin/phpunit tests' coverage: file: 'build/logs/clover.xml' From d46654c1a0332d83aa5c567789340cc944dc695a Mon Sep 17 00:00:00 2001 From: coderius Date: Sat, 29 Aug 2020 10:44:46 +0300 Subject: [PATCH 10/23] Update scrutinizer.yml --- .scrutinizer.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.scrutinizer.yml b/.scrutinizer.yml index baf6162..d86851e 100644 --- a/.scrutinizer.yml +++ b/.scrutinizer.yml @@ -38,7 +38,7 @@ build: tests: override: - - command: './vendor/bin/phpunit tests' + command: 'phpunit tests' coverage: - file: 'build/logs/clover.xml' + file: '/build/logs/clover.xml' format: 'clover' \ No newline at end of file From 4996635128ce1efcfdbd47403708cec25b768cbf Mon Sep 17 00:00:00 2001 From: coderius Date: Sat, 29 Aug 2020 10:50:28 +0300 Subject: [PATCH 11/23] Update scrutinizer.yml --- .scrutinizer.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.scrutinizer.yml b/.scrutinizer.yml index d86851e..ecd7517 100644 --- a/.scrutinizer.yml +++ b/.scrutinizer.yml @@ -38,7 +38,7 @@ build: tests: override: - - command: 'phpunit tests' + command: './vendor/bin/phpunit tests' coverage: - file: '/build/logs/clover.xml' + file: './build/logs/clover.xml' format: 'clover' \ No newline at end of file From b17b229042b4ef3dee5df53768a5bee95f6c20c9 Mon Sep 17 00:00:00 2001 From: coderius Date: Sun, 30 Aug 2020 10:17:21 +0300 Subject: [PATCH 12/23] Update scrutinizer.yml --- .scrutinizer.yml | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/.scrutinizer.yml b/.scrutinizer.yml index ecd7517..115ec13 100644 --- a/.scrutinizer.yml +++ b/.scrutinizer.yml @@ -22,7 +22,8 @@ tools: # runs: 3 php_analyzer: true # php_code_coverage: false - php_code_coverage: true + php_code_coverage: + enabled: true php_code_sniffer: config: standard: PSR2 @@ -34,11 +35,3 @@ tools: php_cpd: enabled: true excluded_dirs: [vendor, tests] -build: - tests: - override: - - - command: './vendor/bin/phpunit tests' - coverage: - file: './build/logs/clover.xml' - format: 'clover' \ No newline at end of file From 0f291223a1f4b10fbe6cc81a98b3e9e4eca8e4f9 Mon Sep 17 00:00:00 2001 From: coderius Date: Sun, 30 Aug 2020 10:28:58 +0300 Subject: [PATCH 13/23] Update scrutinizer.yml --- .scrutinizer.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.scrutinizer.yml b/.scrutinizer.yml index 115ec13..1efe30f 100644 --- a/.scrutinizer.yml +++ b/.scrutinizer.yml @@ -1,3 +1,11 @@ +build: + # environment: + # php: "7.4" + nodes: + analysis: + tests: + override: + - php-scrutinizer-run filter: excluded_paths: [tests/*] checks: From ef8b1a16f93d2d076d93e0b3aa4f9d1d0f4bd50c Mon Sep 17 00:00:00 2001 From: coderius Date: Sun, 30 Aug 2020 10:45:23 +0300 Subject: [PATCH 14/23] Update scrutinizer.yml --- .scrutinizer.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.scrutinizer.yml b/.scrutinizer.yml index 1efe30f..449b0ff 100644 --- a/.scrutinizer.yml +++ b/.scrutinizer.yml @@ -1,11 +1,11 @@ build: - # environment: - # php: "7.4" - nodes: - analysis: - tests: - override: - - php-scrutinizer-run + tests: + override: + - + command: 'phpunit tests --coverage-clover tests/clover.xml --configuration tests/phpunit.xml' + coverage: + file: 'tests/clover.xml' + format: 'clover' filter: excluded_paths: [tests/*] checks: From e86ba3149b4c115bf2f7bd459b3a5b8660cd54ad Mon Sep 17 00:00:00 2001 From: coderius Date: Sun, 30 Aug 2020 10:57:59 +0300 Subject: [PATCH 15/23] Update scrutinizer.yml --- .scrutinizer.yml | 4 ++-- src/UploadFileBehavior.php | 21 +++++++++++---------- 2 files changed, 13 insertions(+), 12 deletions(-) diff --git a/.scrutinizer.yml b/.scrutinizer.yml index 449b0ff..022fe27 100644 --- a/.scrutinizer.yml +++ b/.scrutinizer.yml @@ -2,9 +2,9 @@ build: tests: override: - - command: 'phpunit tests --coverage-clover tests/clover.xml --configuration tests/phpunit.xml' + command: './vendor/bin/phpunit tests --configuration phpunit.xml.dist' coverage: - file: 'tests/clover.xml' + file: 'build/logs/clover.xml' format: 'clover' filter: excluded_paths: [tests/*] diff --git a/src/UploadFileBehavior.php b/src/UploadFileBehavior.php index 029f41b..ee17632 100644 --- a/src/UploadFileBehavior.php +++ b/src/UploadFileBehavior.php @@ -110,7 +110,7 @@ class UploadFileBehavior extends Behavior /** * Name of attribute for recording file from form to ActiveRecord. DEfault name of attribute is `file` * - * @var [string] + * @var string */ public $nameOfAttributeFile = 'file'; @@ -122,7 +122,7 @@ class UploadFileBehavior extends Behavior /** * Image name for renaming file and in next saving in file system and db * - * @var [string] + * @var string */ public $newFileName = false; @@ -140,7 +140,7 @@ class UploadFileBehavior extends Behavior * } * ], * - * @var [array] + * @var array */ public $targets; @@ -168,7 +168,7 @@ class UploadFileBehavior extends Behavior /** * Undocumented variable * - * @var [boolean | int] + * @var boolean|int */ private $time = false; @@ -229,8 +229,7 @@ protected static function supportedFileTypes(){ /** * Undocumented function * - * @param [type] $event - * @return void + * @return void */ public function loadFile() { @@ -243,7 +242,6 @@ public function loadFile() /** * Undocumented function * - * @param [type] $event * @return void */ public function afterInsertHendler($event) @@ -254,7 +252,6 @@ public function afterInsertHendler($event) /** * Undocumented function * - * @param [type] $event * @return void */ public function afterUpdateHendler($event) @@ -265,7 +262,7 @@ public function afterUpdateHendler($event) /** * Undocumented function * - * @param [type] $event + * @param Event $event * @return void */ public function afterDelete($event) @@ -283,7 +280,7 @@ public function afterDelete($event) /** * Undocumented function * - * @param [type] $insert + * @param boolean $insert * @return void */ protected function hendlersReducer($insert) @@ -308,6 +305,10 @@ protected function hendlersReducer($insert) return false; } + /** + * @param string $path + * @return string $dirPath + */ protected function getPath($path){ if(is_string($path)){ $path = rtrim($path, '/') . '/'; From e674ad4029bd5faa42d69a62762e018c450cd62b Mon Sep 17 00:00:00 2001 From: coderius Date: Mon, 31 Aug 2020 16:40:33 +0300 Subject: [PATCH 16/23] Update scrutinizer.yml --- .scrutinizer.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.scrutinizer.yml b/.scrutinizer.yml index 022fe27..a6be396 100644 --- a/.scrutinizer.yml +++ b/.scrutinizer.yml @@ -2,7 +2,7 @@ build: tests: override: - - command: './vendor/bin/phpunit tests --configuration phpunit.xml.dist' + command: 'vendor/bin/phpunit tests --configuration phpunit.xml.dist' coverage: file: 'build/logs/clover.xml' format: 'clover' From 75d62acf8df6ddb4ead9e5d9a13bcf0b2081673e Mon Sep 17 00:00:00 2001 From: coderius Date: Mon, 31 Aug 2020 17:00:26 +0300 Subject: [PATCH 17/23] Update scrutinizer.yml --- .scrutinizer.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.scrutinizer.yml b/.scrutinizer.yml index a6be396..6312ca0 100644 --- a/.scrutinizer.yml +++ b/.scrutinizer.yml @@ -1,4 +1,10 @@ build: + nodes: + analysis: + tests: + override: + - php-scrutinizer-run +tests-and-coverage: tests: override: - From 0b31d87175af90ce1aeeb8429dd2ef813e0484fd Mon Sep 17 00:00:00 2001 From: coderius Date: Mon, 31 Aug 2020 17:03:58 +0300 Subject: [PATCH 18/23] Update scrutinizer.yml --- .scrutinizer.yml | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/.scrutinizer.yml b/.scrutinizer.yml index 6312ca0..cd08106 100644 --- a/.scrutinizer.yml +++ b/.scrutinizer.yml @@ -1,17 +1,18 @@ build: nodes: - analysis: - tests: - override: - - php-scrutinizer-run -tests-and-coverage: - tests: - override: - - - command: 'vendor/bin/phpunit tests --configuration phpunit.xml.dist' - coverage: - file: 'build/logs/clover.xml' - format: 'clover' + analysis: + tests: + override: + - php-scrutinizer-run + + tests-and-coverage: + tests: + override: + - + command: 'vendor/bin/phpunit tests --configuration phpunit.xml.dist' + coverage: + file: 'build/logs/clover.xml' + format: 'clover' filter: excluded_paths: [tests/*] checks: From 80cff05ef3184f82e3f2a0bfc0d5c265fb4bafe5 Mon Sep 17 00:00:00 2001 From: coderius Date: Mon, 31 Aug 2020 17:06:26 +0300 Subject: [PATCH 19/23] Update scrutinizer.yml --- .scrutinizer.yml | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/.scrutinizer.yml b/.scrutinizer.yml index cd08106..1b6dfa1 100644 --- a/.scrutinizer.yml +++ b/.scrutinizer.yml @@ -1,14 +1,7 @@ -build: - nodes: - analysis: - tests: - override: - - php-scrutinizer-run - - tests-and-coverage: +tests-and-coverage: tests: override: - - + - php-scrutinizer-run command: 'vendor/bin/phpunit tests --configuration phpunit.xml.dist' coverage: file: 'build/logs/clover.xml' From 0069456a48c88116249efcdb24be125eb451c607 Mon Sep 17 00:00:00 2001 From: coderius Date: Mon, 31 Aug 2020 17:07:24 +0300 Subject: [PATCH 20/23] Update scrutinizer.yml --- .scrutinizer.yml | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/.scrutinizer.yml b/.scrutinizer.yml index 1b6dfa1..1352f66 100644 --- a/.scrutinizer.yml +++ b/.scrutinizer.yml @@ -1,11 +1,17 @@ -tests-and-coverage: - tests: - override: - - php-scrutinizer-run - command: 'vendor/bin/phpunit tests --configuration phpunit.xml.dist' - coverage: - file: 'build/logs/clover.xml' - format: 'clover' +build: + nodes: + analysis: + tests: + override: + - php-scrutinizer-run + tests-and-coverage: + tests: + override: + - php-scrutinizer-run + command: 'vendor/bin/phpunit tests --configuration phpunit.xml.dist' + coverage: + file: 'build/logs/clover.xml' + format: 'clover' filter: excluded_paths: [tests/*] checks: From 68150241c528a3d7240b68ae0ad566413bd45af3 Mon Sep 17 00:00:00 2001 From: coderius Date: Mon, 31 Aug 2020 17:08:24 +0300 Subject: [PATCH 21/23] Update scrutinizer.yml --- .scrutinizer.yml | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/.scrutinizer.yml b/.scrutinizer.yml index 1352f66..6320cd4 100644 --- a/.scrutinizer.yml +++ b/.scrutinizer.yml @@ -1,17 +1,11 @@ build: - nodes: - analysis: - tests: - override: + tests: + override: - php-scrutinizer-run - tests-and-coverage: - tests: - override: - - php-scrutinizer-run - command: 'vendor/bin/phpunit tests --configuration phpunit.xml.dist' - coverage: - file: 'build/logs/clover.xml' - format: 'clover' + command: 'vendor/bin/phpunit tests --configuration phpunit.xml.dist' + coverage: + file: 'build/logs/clover.xml' + format: 'clover' filter: excluded_paths: [tests/*] checks: From 719f940542965d625f6dae5ea0bebe7f351eaa10 Mon Sep 17 00:00:00 2001 From: coderius Date: Mon, 31 Aug 2020 17:18:36 +0300 Subject: [PATCH 22/23] Update scrutinizer.yml --- .scrutinizer.yml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/.scrutinizer.yml b/.scrutinizer.yml index 6320cd4..0855a35 100644 --- a/.scrutinizer.yml +++ b/.scrutinizer.yml @@ -2,10 +2,6 @@ build: tests: override: - php-scrutinizer-run - command: 'vendor/bin/phpunit tests --configuration phpunit.xml.dist' - coverage: - file: 'build/logs/clover.xml' - format: 'clover' filter: excluded_paths: [tests/*] checks: From b2b5344d998823165113f8017ac9850921cfb2ce Mon Sep 17 00:00:00 2001 From: coderius Date: Mon, 31 Aug 2020 18:07:19 +0300 Subject: [PATCH 23/23] Update scrutinizer.yml --- .scrutinizer.yml | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/.scrutinizer.yml b/.scrutinizer.yml index 0855a35..23662dc 100644 --- a/.scrutinizer.yml +++ b/.scrutinizer.yml @@ -21,13 +21,11 @@ checks: fix_identation_4spaces: true fix_doc_comments: true tools: - # external_code_coverage: - # timeout: 600 - # runs: 3 + external_code_coverage: + timeout: 600 + runs: 3 php_analyzer: true - # php_code_coverage: false - php_code_coverage: - enabled: true + php_code_coverage: false php_code_sniffer: config: standard: PSR2 @@ -38,4 +36,4 @@ tools: excluded_dirs: [vendor, tests] php_cpd: enabled: true - excluded_dirs: [vendor, tests] + excluded_dirs: [vendor, tests] \ No newline at end of file