Commit Graph

4419 Commits

Author SHA1 Message Date
oleibman d50b8b5de7 Merge pull request #3856 from oleibman/issue3687
Use Less Space When Inserting Rows and Columns
2024-01-13 16:41:10 +00:00
oleibman 57c6d12e19 Update CHANGELOG.md 2024-01-13 08:38:23 -08:00
oleibman bcd55ef1d3 Merge branch 'master' into issue3687 2024-01-13 07:48:53 -08:00
oleibman bd68ec71ef Merge pull request #3865 from oleibman/issue3863
Excel Omits `Between` Operator for Data Validation
2024-01-12 07:55:23 +00:00
oleibman 3bf77c48df Update CHANGELOG.md 2024-01-11 23:25:44 -08:00
oleibman 3b7c1f6205 Merge branch 'master' into issue3863 2024-01-11 23:22:56 -08:00
oleibman 9e89c36c97 Excel Omits Between Operator for Data Validation
Fix #3863. Data Validation default operator is `between`. When Excel writes out a data validation item, it may omit the operator. Xlsx reader will therefore initialize operator to null string. Issue indicates that user wants `between` returned for `getOperator`. A more serious problem is that `isValid` method does not handle this situation correctly. Data Validation is changed to set Operator to the default value if an attempt is made to set it to null string.
2024-01-11 23:03:55 -08:00
oleibman 6f36db8945 Merge pull request #3855 from oleibman/issue3847
Partial Support of Fill Handles
2024-01-10 18:01:54 +00:00
oleibman 656efb97bf Merge branch 'master' into issue3847 2024-01-10 09:35:10 -08:00
oleibman 085e4435f6 Merge pull request #3862 from oleibman/issue3861
Advanced Value Binder False Positive Looking for Fractions
2024-01-10 05:04:00 +00:00
oleibman 31473ef34b Update CHANGELOG.md 2024-01-09 20:04:56 -08:00
oleibman c88327f749 Merge branch 'master' into issue3861 2024-01-09 19:52:04 -08:00
oleibman 5f232348d7 Advanced Value Binder False Positive Looking for Fractions
Fix #3861. Strings ending in `/` were inappropriately identifed as fractions. Fix regexp accordingly.
2024-01-09 19:29:00 -08:00
Adrien Crivelli 55fea562eb Merge pull request #3860 from PHPOffice/powerkiki
Remove a few mixed type
2024-01-08 07:38:25 +00:00
Adrien Crivelli 637672d783 Remove a few mixed type 2024-01-08 15:36:00 +08:00
oleibman ae72efe43a Merge pull request #3859 from oleibman/mixedtests2
Better Typing in Test Members
2024-01-05 14:57:24 +00:00
oleibman 3eedf9e2f0 Better Typing in Test Members
Change "mixed" declarations to more accurate types in test members; in particular, change those that would be flagged if we were to run Phpstan at level 9 (we currently run level 8). I may or may not follow up with source code (over 700 level-9 problems remain for src), but, as with strict typing, there is no reason to avoid the effort for test members.

It was necessary to update some doc blocks in src to accommodate this change. However, no executable code is touched.
2024-01-05 01:43:50 -08:00
oleibman 77f794cb34 Merge branch 'master' into issue3687 2024-01-04 07:40:39 -08:00
Adrien Crivelli 43481c9deb Merge pull request #3857 from PHPOffice/powerkiki
Restore PSR-16 Simple Cache v1 compatibility
2024-01-04 05:48:27 +00:00
Adrien Crivelli 63b9b974a3 Restore PSR-16 Simple Cache v1 compatibility 2024-01-04 13:45:05 +08:00
Adrien Crivelli a75022a7da Merge pull request #3793 from PHPOffice/powerkiki
Add all missing native types
2024-01-04 05:17:54 +00:00
Adrien Crivelli 76c5b98b8f Drop commented code 2024-01-04 13:08:26 +08:00
Adrien Crivelli b22fde2281 Upgrade QA tools 2024-01-04 13:06:59 +08:00
Adrien Crivelli 332f6418e4 Allow usage of getters before setters 2024-01-04 12:50:52 +08:00
Adrien Crivelli 83f71298ad Also forbid PHPDoc without a variable name 2024-01-04 12:34:47 +08:00
Adrien Crivelli a3c2ca978e Drop redundant PHPDoc 2024-01-04 12:33:06 +08:00
Adrien Crivelli 5cc1ece805 PhpStan 2024-01-04 11:56:46 +08:00
Adrien Crivelli c01abbce09 Merge branch 'master' into powerkiki 2024-01-04 11:51:54 +08:00
oleibman 9c279679aa Use Less Space When Inserting Rows and Columns
Fix #3687. Worksheet methods insertNewRowBefore and insertNewColumnBefore call ReferenceHelper insertNewBefore. That function fills in "missing" cells with null values. However, for boundaries, it uses getHighestRow and getHighestColumn. It should be sufficient to use getHighestDataRow and getHighestDataColumn. When there is a big gap between getHighest... and getHighestData..., this can result in a big increase in memory usage, and in file space when saving the spreadsheet. New test InsertTest demonstrates the problem by populating a worksheet with cells A1:D5 (so highestDataRow is 5), but also setting row 1000 to invisible (so highestRow is 1000).

The major part of the change is in ReferenceHelper::insertNewBefore, which will now use getHighestData... for its boundaries when filling in the missing cells. Changes of less impact are made to duplicateStylesByColumn and duplicateStylesByRow so that cells which don't yet exist are not created unless the style that will be applied is not the workbook default style.

As for reducing the file size, Writer/Xlsx/Worksheet is changed so that cells whose value is null or null-string and which use the workbook default style are not written to the output spreadsheet. This requires some changes to existing test ReadBlankCellsTest; I don't think the difference should matter to the end-user.
2024-01-03 18:03:28 -08:00
Adrien Crivelli 50f6afc6ce Drop redundant property initialyzer 2024-01-03 21:52:50 +08:00
Adrien Crivelli 5c6c8e2e1d Sync most PHPDoc with actual code 2024-01-03 21:38:26 +08:00
Adrien Crivelli aefde297df More cleanup PHPDoc according to PhpStorm 2024-01-03 21:12:55 +08:00
Adrien Crivelli c1eafc5336 Cleanup PHPDoc according to PhpStorm 2024-01-03 20:51:53 +08:00
Adrien Crivelli a68a54e4b9 Last native param types 2024-01-03 13:05:09 +08:00
oleibman 04d6b1897d Partial Support of Fill Handles
Fix #3847. Person posing the question calls this behavior "pull formulas", and wants equivalent handling to be available in PhpSpreadsheet. I can do this for formulas in a single cell; I can go horizontal or vertical or (unlike Excel) both. Nevertheless, I call this "partial support" because I cannot think how I can do something similar that Excel does, e.g. putting 2 in cell A1 and 4 in Cell A2, selecting them both and using the fill handle to extend those to rows below, so that cell A5 will contain 10.
2024-01-02 18:42:56 -08:00
oleibman 2e4b8f80ca Merge pull request #3853 from oleibman/fixertest
Php-cs-fixer Command Change
2024-01-02 08:17:13 +00:00
oleibman fc56282827 Restore CellReferenceHelper.php 2024-01-02 00:09:46 -08:00
oleibman c4b934a91d Update main.yml 2024-01-02 00:03:05 -08:00
oleibman b33d14e858 Update main.yml 2024-01-01 23:33:34 -08:00
oleibman 9de13cd975 Update main.yml 2024-01-01 23:10:20 -08:00
oleibman 4b655ea5a8 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.
2024-01-01 23:02:44 -08:00
oleibman c770f692b8 Merge pull request #3852 from oleibman/updatefixer
Php-cs-fixer Upgrade
2024-01-02 05:53:02 +00:00
oleibman b01031d62b Merge branch 'master' into updatefixer 2024-01-01 21:50:09 -08:00
oleibman 8e1c265d39 Another Theory
Still unable to duplicate php-cs-fixer problem.
2024-01-01 21:29:51 -08:00
oleibman c5f78a4194 Guesswork
Unable to duplicate php-cs-fixer problem. Maybe this will work.
2024-01-01 21:13:18 -08:00
oleibman d164ad2211 Php-cs-fixer Upgrade
It generates a number of new easily-remedied messages.
2024-01-01 20:21:03 -08:00
oleibman 04d125c115 Merge pull request #3851 from PHPOffice/dependabot/composer/phpunit/phpunit-9.6.15
Bump phpunit/phpunit from 9.6.14 to 9.6.15
2024-01-01 20:03:19 +00:00
oleibman 461ed440e4 Merge pull request #3849 from PHPOffice/dependabot/composer/squizlabs/php_codesniffer-3.8.0
Bump squizlabs/php_codesniffer from 3.7.2 to 3.8.0
2024-01-01 20:02:11 +00:00
oleibman f35bdc1d36 Merge pull request #3848 from PHPOffice/dependabot/composer/phpstan/phpstan-1.10.50
Bump phpstan/phpstan from 1.10.46 to 1.10.50
2024-01-01 19:49:39 +00:00
dependabot[bot] f84f36706d Bump phpunit/phpunit from 9.6.14 to 9.6.15
Bumps [phpunit/phpunit](https://github.com/sebastianbergmann/phpunit) from 9.6.14 to 9.6.15.
- [Changelog](https://github.com/sebastianbergmann/phpunit/blob/9.6.15/ChangeLog-9.6.md)
- [Commits](https://github.com/sebastianbergmann/phpunit/compare/9.6.14...9.6.15)

---
updated-dependencies:
- dependency-name: phpunit/phpunit
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-01-01 11:09:35 +00:00