-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5058 from codeigniter4/release-4.1.4
4.1.4 Ready code
- Loading branch information
Showing
828 changed files
with
125,750 additions
and
138,262 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,18 @@ | ||
version: 2 | ||
|
||
updates: | ||
- package-ecosystem: composer | ||
directory: "/" | ||
schedule: | ||
interval: daily | ||
open-pull-requests-limit: 10 | ||
- package-ecosystem: 'composer' | ||
directory: '/' | ||
schedule: | ||
interval: 'daily' | ||
open-pull-requests-limit: 10 | ||
|
||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
schedule: | ||
# Check for updates to GitHub Actions every weekday | ||
interval: "daily" | ||
- package-ecosystem: 'github-actions' | ||
directory: '/' | ||
schedule: | ||
interval: 'daily' | ||
ignore: | ||
- dependency-name: '*' | ||
update-types: | ||
- 'version-update:semver-minor' | ||
- 'version-update:semver-patch' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
name: Coding Standards | ||
|
||
on: | ||
push: | ||
paths: | ||
- '**.php' | ||
- 'spark' | ||
- '.github/workflows/test-coding-standards.yml' | ||
pull_request: | ||
paths: | ||
- '**.php' | ||
- 'spark' | ||
- '.github/workflows/test-coding-standards.yml' | ||
|
||
jobs: | ||
lint: | ||
name: PHP ${{ matrix.php-version }} Lint with PHP CS Fixer | ||
runs-on: ubuntu-20.04 | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
php-version: | ||
- '7.3' | ||
- '7.4' | ||
- '8.0' | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.php-version }} | ||
extensions: tokenizer | ||
coverage: none | ||
|
||
- name: Get composer cache directory | ||
id: composer-cache | ||
run: echo "::set-output name=dir::$(composer config cache-files-dir)" | ||
|
||
- name: Cache dependencies | ||
uses: actions/cache@v2 | ||
with: | ||
path: ${{ steps.composer-cache.outputs.dir }} | ||
key: ${{ runner.os }}-${{ matrix.php-version }}-${{ hashFiles('**/composer.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-${{ matrix.php-version }}- | ||
${{ runner.os }}- | ||
- name: Install dependencies | ||
run: composer update --ansi --no-interaction | ||
|
||
- name: Run lint on `app/`, `admin/`, `public/` | ||
run: vendor/bin/php-cs-fixer fix --verbose --ansi --dry-run --config=.no-header.php-cs-fixer.dist.php --using-cache=no --diff | ||
|
||
- name: Run lint on `system/`, `tests`, `utils/`, and root PHP files | ||
run: vendor/bin/php-cs-fixer fix --verbose --ansi --dry-run --using-cache=no --diff |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# When a PR is opened or a push is made, check code | ||
# for duplication with PHP Copy/Paste Detector. | ||
name: PHPCPD | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- 'develop' | ||
- '4.*' | ||
paths: | ||
- 'app/**' | ||
- 'public/**' | ||
- 'system/**' | ||
- '.github/workflows/test-phpcpd.yml' | ||
push: | ||
branches: | ||
- 'develop' | ||
- '4.*' | ||
paths: | ||
- 'app/**' | ||
- 'public/**' | ||
- 'system/**' | ||
- '.github/workflows/test-phpcpd.yml' | ||
|
||
jobs: | ||
build: | ||
name: Duplicate Code Detection | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: '8.0' | ||
tools: phive | ||
extensions: intl, json, mbstring, xml | ||
|
||
- name: Detect code duplication | ||
run: | | ||
sudo phive --no-progress install --global --trust-gpg-keys 4AA394086372C20A phpcpd | ||
phpcpd --exclude system/Test --exclude system/ThirdParty --exclude system/Database/SQLSRV/Builder.php app/ public/ system/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -126,3 +126,5 @@ nb-configuration.xml | |
/results/ | ||
/phpunit*.xml | ||
/.phpunit.*.cache | ||
|
||
/.php-cs-fixer.php |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
/** | ||
* This file is part of CodeIgniter 4 framework. | ||
* | ||
* (c) CodeIgniter Foundation <[email protected]> | ||
* | ||
* For the full copyright and license information, please view | ||
* the LICENSE file that was distributed with this source code. | ||
*/ | ||
|
||
use CodeIgniter\CodingStandard\CodeIgniter4; | ||
use Nexus\CsConfig\Factory; | ||
use Nexus\CsConfig\Fixer\Comment\NoCodeSeparatorCommentFixer; | ||
use Nexus\CsConfig\Fixer\Comment\SpaceAfterCommentStartFixer; | ||
use Nexus\CsConfig\FixerGenerator; | ||
use PhpCsFixer\Finder; | ||
|
||
$finder = Finder::create() | ||
->files() | ||
->in([ | ||
__DIR__ . '/admin', | ||
__DIR__ . '/app', | ||
__DIR__ . '/public', | ||
]) | ||
->notName('#Logger\.php$#'); | ||
|
||
$overrides = []; | ||
|
||
$options = [ | ||
'cacheFile' => 'build/.no-header.php-cs-fixer.cache', | ||
'finder' => $finder, | ||
'customFixers' => FixerGenerator::create('vendor/nexusphp/cs-config/src/Fixer', 'Nexus\\CsConfig\\Fixer'), | ||
'customRules' => [ | ||
NoCodeSeparatorCommentFixer::name() => true, | ||
SpaceAfterCommentStartFixer::name() => true, | ||
], | ||
]; | ||
|
||
return Factory::create(new CodeIgniter4(), $overrides, $options)->forProjects(); |
Oops, something went wrong.