mirror of
https://github.com/PHPOffice/PhpSpreadsheet.git
synced 2026-09-11 18:46:49 +00:00
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:
@@ -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
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user