-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fix performance issue and remove use statements from localconf
- Loading branch information
Showing
15 changed files
with
118 additions
and
144 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -74,57 +74,28 @@ jobs: | |
- "8.0" | ||
- "8.1" | ||
- "8.2" | ||
php-qs: | ||
name: "PHP QS" | ||
|
||
php-cs-fixer: | ||
name: PHP-CS-Fixer | ||
runs-on: ubuntu-latest | ||
|
||
needs: php-lint | ||
|
||
strategy: | ||
matrix: | ||
command: | ||
- "test:phpcs" | ||
# - "test:phpmd" | ||
# - "test:phpstan" | ||
php-version: | ||
- "7.4" | ||
steps: | ||
- name: "Checkout" | ||
uses: "actions/checkout@v2" | ||
|
||
- uses: actions/checkout@master | ||
with: | ||
ref: ${{ github.ref }} | ||
- name: Setup PHP | ||
uses: shivammathur/setup-php@master | ||
with: | ||
php-version: "${{ matrix.php-version }}" | ||
extensions: "${{ env.PHP_EXTENSIONS }}" | ||
- | ||
name: "Determine composer cache directory" | ||
id: "determine-composer-cache-directory" | ||
run: "echo \"::set-output name=directory::$(composer config cache-dir)\"" | ||
- | ||
name: "Cache dependencies installed with composer" | ||
uses: "actions/[email protected]" | ||
with: | ||
path: "${{ steps.determine-composer-cache-directory.outputs.directory }}" | ||
key: "php-${{ matrix.php-version }}-composer-${{ hashFiles('composer.lock') }}" | ||
restore-keys: "php-${{ matrix.php-version }}-composer-" | ||
- | ||
name: "Install composer dependencies" | ||
run: "composer install --no-interaction --no-progress --no-suggest" | ||
- | ||
name: "Run command" | ||
run: "composer ${{ matrix.command }}" | ||
|
||
# - run: composer require friendsofphp/php-cs-fixer | ||
# - run: .Build/bin/php-cs-fixer fix --diff --dry-run | ||
php-version: 8.1 | ||
- run: "composer install --no-interaction --no-progress --no-suggest" | ||
# - run: composer require friendsofphp/php-cs-fixer:3.35.1 | ||
- run: .Build/bin/php-cs-fixer fix --diff --dry-run | ||
|
||
php-unit: | ||
name: "PHP Unit" | ||
|
||
runs-on: "ubuntu-latest" | ||
|
||
needs: ["php-lint", "php-qs"] | ||
needs: ["php-lint", "php-cs-fixer"] | ||
|
||
strategy: | ||
fail-fast: false | ||
|
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 |
---|---|---|
|
@@ -16,7 +16,7 @@ | |
/*************************************************************** | ||
* Copyright notice | ||
* | ||
* (c) 2008-2022 Rene Nitzsche ([email protected]) | ||
* (c) 2008-2024 Rene Nitzsche ([email protected]) | ||
* All rights reserved | ||
* | ||
* This script is part of the TYPO3 project. The TYPO3 project is | ||
|
@@ -422,7 +422,7 @@ public function setCurrentRound($round) | |
*/ | ||
public function getClubIdsOfRunningMatches() | ||
{ | ||
if (!$this->clubIdsOfRunningMatches) { | ||
if (null === $this->clubIdsOfRunningMatches) { | ||
$values = []; | ||
|
||
foreach ($this->getRounds() as $round) { | ||
|
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 |
---|---|---|
|
@@ -7,7 +7,11 @@ | |
/*************************************************************** | ||
* Copyright notice | ||
* | ||
<<<<<<< HEAD | ||
* (c) 2011-2024 Rene Nitzsche ([email protected]) | ||
======= | ||
* (c) 2011-2023 Rene Nitzsche ([email protected]) | ||
>>>>>>> master | ||
* All rights reserved | ||
* | ||
* This script is part of the TYPO3 project. The TYPO3 project is | ||
|
@@ -45,10 +49,10 @@ public function setTeamData(array &$teamdata) | |
public function compare($t1, $t2) | ||
{ | ||
// Zwangsabstieg prüfen | ||
if ($t1['static_position'] ?? false) { | ||
if (-1 == ($t1['static_position'] ?? 0)) { | ||
return 1; | ||
} | ||
if ($t2['static_position'] ?? false) { | ||
if (-1 == ($t2['static_position'] ?? 0)) { | ||
return -1; | ||
} | ||
|
||
|
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
Oops, something went wrong.