-
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 #8948 from codeigniter4/develop
4.5.2 Ready code
- Loading branch information
Showing
539 changed files
with
2,857 additions
and
3,271 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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: Check File Permissions | ||
|
||
on: | ||
pull_request: | ||
push: | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | ||
cancel-in-progress: true | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
permission-check: | ||
name: Check File Permission | ||
runs-on: ubuntu-22.04 | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Detect unnecessary execution permissions | ||
run: php utils/check_permission_x.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
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 |
---|---|---|
|
@@ -36,27 +36,29 @@ | |
__DIR__ . '/.php-cs-fixer.no-header.php', | ||
__DIR__ . '/.php-cs-fixer.tests.php', | ||
__DIR__ . '/.php-cs-fixer.user-guide.php', | ||
__DIR__ . '/preload.php', | ||
__DIR__ . '/rector.php', | ||
__DIR__ . '/spark', | ||
]); | ||
|
||
$overrides = []; | ||
$overrides = [ | ||
// for updating to coding-standard | ||
'modernize_strpos' => true, | ||
'ordered_attributes' => ['order' => [], 'sort_algorithm' => 'alpha'], | ||
'php_unit_attributes' => true, | ||
]; | ||
|
||
$options = [ | ||
'cacheFile' => 'build/.php-cs-fixer.cache', | ||
'finder' => $finder, | ||
'cacheFile' => 'build/.php-cs-fixer.cache', | ||
'finder' => $finder, | ||
'customFixers' => FixerGenerator::create('vendor/nexusphp/cs-config/src/Fixer', 'Nexus\\CsConfig\\Fixer'), | ||
'customRules' => [ | ||
NoCodeSeparatorCommentFixer::name() => true, | ||
], | ||
]; | ||
|
||
$config = Factory::create(new CodeIgniter4(), $overrides, $options)->forLibrary( | ||
return Factory::create(new CodeIgniter4(), $overrides, $options)->forLibrary( | ||
'CodeIgniter 4 framework', | ||
'CodeIgniter Foundation', | ||
'[email protected]' | ||
); | ||
|
||
$config | ||
->registerCustomFixers(FixerGenerator::create('vendor/nexusphp/cs-config/src/Fixer', 'Nexus\\CsConfig\\Fixer')) | ||
->setRules(array_merge($config->getRules(), [ | ||
NoCodeSeparatorCommentFixer::name() => true, | ||
])); | ||
|
||
return $config; |
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 |
---|---|---|
|
@@ -35,23 +35,23 @@ | |
|
||
$overrides = [ | ||
'void_return' => true, | ||
// for updating to coding-standard | ||
'modernize_strpos' => true, | ||
'ordered_attributes' => ['order' => [], 'sort_algorithm' => 'alpha'], | ||
'php_unit_attributes' => true, | ||
]; | ||
|
||
$options = [ | ||
'cacheFile' => 'build/.php-cs-fixer.tests.cache', | ||
'finder' => $finder, | ||
'cacheFile' => 'build/.php-cs-fixer.tests.cache', | ||
'finder' => $finder, | ||
'customFixers' => FixerGenerator::create('vendor/nexusphp/cs-config/src/Fixer', 'Nexus\\CsConfig\\Fixer'), | ||
'customRules' => [ | ||
NoCodeSeparatorCommentFixer::name() => true, | ||
], | ||
]; | ||
|
||
$config = Factory::create(new CodeIgniter4(), $overrides, $options)->forLibrary( | ||
return Factory::create(new CodeIgniter4(), $overrides, $options)->forLibrary( | ||
'CodeIgniter 4 framework', | ||
'CodeIgniter Foundation', | ||
'[email protected]' | ||
); | ||
|
||
$config | ||
->registerCustomFixers(FixerGenerator::create('vendor/nexusphp/cs-config/src/Fixer', 'Nexus\\CsConfig\\Fixer')) | ||
->setRules(array_merge($config->getRules(), [ | ||
NoCodeSeparatorCommentFixer::name() => true, | ||
])); | ||
|
||
return $config; |
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
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
Empty file.
Empty file.
This file was deleted.
Oops, something went wrong.
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,23 @@ | ||
#!/bin/sh -e | ||
|
||
# Deploys the User Guide to the production | ||
# website. Triggered by updates to the GitHub | ||
# codeigniter4/userguide repo's master branch. | ||
# See https://github.com/codeigniter4/userguide/blob/master/.github/workflows/deploy.yml | ||
|
||
REPO="/opt/userguide" | ||
SITE="/home/public_html/userguides/userguide4" | ||
|
||
if [ "$(id -u)" = "0" ]; then | ||
echo "Cannot be run as root. Please run as the user for deployment." | ||
exit 1 | ||
fi | ||
|
||
cd "$REPO" | ||
git switch master | ||
git pull | ||
|
||
cp -R "$REPO/docs" "$SITE.new" | ||
mv "$SITE" "$SITE.old" | ||
mv "$SITE.new" "$SITE" | ||
rm -rf "$SITE.old" |
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
Empty file.
Oops, something went wrong.