Comments (7)
I agree. Do you know a tool that could do that ?
from phpspreadsheet.
There is a sniff that checks all referenced names are imported via the use
in the Slevomat Coding Standard (SlevomatCodingStandard.Namespaces.ReferenceUsedNamesOnly) but there is no automatic fix for it. I guess it is because there is no way to automatically handle the case when there are two classes with the same name in different namespaces.
from phpspreadsheet.
Hmm, it might be possible to automatically change this, or include it in PHP-CS.
from phpspreadsheet.
Yes, that is true. Okay, so only manually doing this is possible.
So this will change a lot files. How should I proceed to make this lesser painful [to reviewers]? For each "package" (namespace) a separate PR? Or per folder a separate PR (to keep them small)?
from phpspreadsheet.
@Quix0r I just examined the sniff I posted and I think I can make it auto-fixable for non-conflicting cases during this or next weekend if you are willing to wait :-)
from phpspreadsheet.
@jankonas sure, will wait here.
from phpspreadsheet.
Sorry for the delay, I don't have the time to do this right now. But Slevomat released v2.0 of their coding standard which now has the SlevomatCodingStandard.Namespaces.ReferenceUsedNamesOnly sniff auto-fixable. So I suggest using it and keeping it in the project so it checks usage of uses in the future. Of course, many of the other sniffs have to be excluded to pass the checks.
from phpspreadsheet.
Related Issues (20)
- [ERROR] Class "Rector\Core\Rector\AbstractRector" not found HOT 2
- Make voku packages optional HOT 2
- ver 1.29 ) Csv auto_detect_line_endings HOT 4
- Unable to save with setFormatCode in ODS, and getFormatCode from existing documents HOT 4
- mime_content_type() has been removed since PHP ver. 8 HOT 1
- Some methods removed in v2.0 but not mentioned in CHANGELOG file HOT 1
- syntax error in xls.php file HOT 2
- giao dịch đồng thời php HOT 2
- Uncaught TypeError: PhpOffice\PhpSpreadsheet\Writer\Xlsx\Chart::writePlotGroup(): Argument #6 ($plotGroupingType) must be of type string, null given
- Chart: Y axis is no longer displayed after load and save HOT 1
- Microsoft excel files of different version do not read files HOT 1
- Leap year calculation correction HOT 2
- rangeToArray tries to read every possible cell leading to OOM HOT 1
- Error on StringValueBinder `convertFormula` check HOT 2
- Excel does not seem to respect any value used in a table column's setShowFilterButton() method HOT 3
- Record locking in mysqlsever? help!!!!!! HOT 2
- failed to open stream: Permission denied on line 178 of /var/cbi/framework/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/BaseWriter.php
- SET TRANSACTION ISOLATION LEVEL SERIALIZABLE in php?!! help me!!!!!!!!!! HOT 2
- Error: Typed property PhpOffice\PhpSpreadsheet\Worksheet\Worksheet::$parent must not be accessed before initialization HOT 1
- Chart: Not able to use multiple bar types (DataSeries::TYPE_BARCHART) in a single chart.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from phpspreadsheet.