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

Commit

Permalink
Merge pull request #36 from codeigniter4/develop
Browse files Browse the repository at this point in the history
Composer 2 update
  • Loading branch information
louisl authored Mar 4, 2021
2 parents db3d7d7 + 113687c commit b7c6fe4
Show file tree
Hide file tree
Showing 26 changed files with 476 additions and 2,669 deletions.
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

0 comments on commit b7c6fe4

Please sign in to comment.