Skip to content
This repository was archived by the owner on Nov 5, 2022. It is now read-only.

Update composer packages #34

Merged
merged 14 commits into from
Mar 4, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
composer.phar
/vendor/
/build
phpunit.xml
10 changes: 8 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ env:
- STANDARD="CodeIgniter4"
# Upload covarage to coveralls.
- COVERALLS="1"
# Xdebug3 needs this.
- XDEBUG_MODE=coverage

matrix:
fast_finish: true
Expand All @@ -27,7 +29,11 @@ matrix:
# aliased to a recent 7.x version
# - php: '7.0'
# aliased to a recent 7.x version
- php: '7.1'
# - php: '7.1'
- php: '7.2'
- php: '7.3'
- php: '7.4'
# - php: '8.0'
# aliased to a recent hhvm version
# - php: 'hhvm'
# php nightly
Expand Down Expand Up @@ -64,4 +70,4 @@ script:
- ./vendor/bin/phpunit --debug --filter $STANDARD

after_success:
- if [[ "$COVERALLS" == "1" ]]; then ./vendor/bin/coveralls -v -x ./build/logs/coverage/clover/clover.xml; fi
- if [[ "$COVERALLS" == "1" && "$TRAVIS_PHP_VERSION" == "7.4" ]]; then ./vendor/bin/coveralls -v -x ./build/logs/coverage/clover/clover.xml; fi
189 changes: 94 additions & 95 deletions CodeIgniter4/Sniffs/Arrays/ArrayDeclarationSniff.php

Large diffs are not rendered by default.

102 changes: 51 additions & 51 deletions CodeIgniter4/Sniffs/Commenting/ClassCommentSniff.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,52 +30,52 @@ class ClassCommentSniff extends FileCommentSniff
*
* @var array
*/
protected $tags = array(
'@package' => array(
'required' => true,
'allow_multiple' => false,
),
'@subpackage' => array(
'required' => false,
'allow_multiple' => false,
),
'@category' => array(
'required' => false,
'allow_multiple' => false,
),
'@author' => array(
'required' => false,
'allow_multiple' => true,
),
'@copyright' => array(
'required' => false,
'allow_multiple' => true,
),
'@license' => array(
'required' => false,
'allow_multiple' => false,
),
'@link' => array(
'required' => false,
'allow_multiple' => true,
),
'@since' => array(
'required' => false,
'allow_multiple' => false,
),
'@version' => array(
'required' => false,
'allow_multiple' => false,
),
'@see' => array(
'required' => false,
'allow_multiple' => true,
),
'@deprecated' => array(
'required' => false,
'allow_multiple' => false,
),
);
protected $tags = [
'@package' => [
'required' => true,
'allow_multiple' => false,
],
'@subpackage' => [
'required' => false,
'allow_multiple' => false,
],
'@category' => [
'required' => false,
'allow_multiple' => false,
],
'@author' => [
'required' => false,
'allow_multiple' => true,
],
'@copyright' => [
'required' => false,
'allow_multiple' => true,
],
'@license' => [
'required' => false,
'allow_multiple' => false,
],
'@link' => [
'required' => false,
'allow_multiple' => true,
],
'@since' => [
'required' => false,
'allow_multiple' => false,
],
'@version' => [
'required' => false,
'allow_multiple' => false,
],
'@see' => [
'required' => false,
'allow_multiple' => true,
],
'@deprecated' => [
'required' => false,
'allow_multiple' => false,
],
];


/**
Expand All @@ -85,10 +85,10 @@ class ClassCommentSniff extends FileCommentSniff
*/
public function register()
{
return array(
T_CLASS,
T_INTERFACE,
);
return [
T_CLASS,
T_INTERFACE,
];

}//end register()

Expand All @@ -108,7 +108,7 @@ public function process(File $phpcsFile, $stackPtr)

$tokens = $phpcsFile->getTokens();
$type = strtolower($tokens[$stackPtr]['content']);
$errorData = array($type);
$errorData = [$type];

$find = Tokens::$methodPrefixes;
$find[] = T_WHITESPACE;
Expand Down
Loading