Php-cs-fixer Command Change

PR #3852 was a bit strange. Php-cs-fixer complained about a problem that I could not reproduce on my local system, and it didn't really produce sufficient output to correct whatever the problem was. I was able to guess it eventually, but I need to see if there's a way to get it to be more forthcoming.
This commit is contained in:
oleibman
2024-01-01 23:02:44 -08:00
parent c770f692b8
commit 4b655ea5a8
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -112,7 +112,7 @@ jobs:
run: composer install --no-progress --prefer-dist --optimize-autoloader
- name: Code style with PHP-CS-Fixer
run: ./vendor/bin/php-cs-fixer fix --format=checkstyle | cs2pr
run: ./vendor/bin/php-cs-fixer fix --format=checkstyle --diff --dry-run | cs2pr
phpcs:
runs-on: ubuntu-latest
+1 -1
View File
@@ -24,7 +24,7 @@ class CellReferenceHelper
$this->numberOfRows = $numberOfRows;
// Get coordinate of $beforeCellAddress
[$beforeColumn, $beforeRow] = Coordinate::coordinateFromString($beforeCellAddress);
[$beforeColumn, $beforeRow] = \PhpOffice\PhpSpreadsheet\Cell\Coordinate::coordinateFromString($beforeCellAddress);
$this->beforeColumn = Coordinate::columnIndexFromString($beforeColumn);
$this->beforeRow = (int) $beforeRow;
}