fix phpstan/phpcs

This commit is contained in:
Dennis Eichhorn 2021-06-26 14:38:08 +02:00
parent 853959f978
commit a64dfa367e
3 changed files with 15 additions and 8 deletions

View File

@ -249,6 +249,13 @@ class KanbanCard implements \JsonSerializable
$this->ref = $ref; $this->ref = $ref;
} }
/**
* Count the amount of comments in a card
*
* @return int
*
* @since 1.0.0
*/
public function getCommentCount() : int public function getCommentCount() : int
{ {
return \count($this->comments); return \count($this->comments);

View File

@ -1,11 +1,11 @@
{ {
"version": "", "version": "",
"board": { "board": {
"dashboard_background": "", "dashboard_background": "",
"board_background": "", "board_background": "",
}, },
"cards": [ "cards": [
], ],
} }

View File

@ -9,7 +9,7 @@
], ],
"require-dev": { "require-dev": {
"phpunit/phpunit": ">=9.4", "phpunit/phpunit": ">=9.4",
"friendsofphp/php-cs-fixer": ">=2.18", "friendsofphp/php-cs-fixer": ">=3.0",
"squizlabs/php_codesniffer": ">=3.5", "squizlabs/php_codesniffer": ">=3.5",
"phpmd/phpmd": ">=2.9", "phpmd/phpmd": ">=2.9",
"phpstan/phpstan": ">=0.12.58", "phpstan/phpstan": ">=0.12.58",