smalot / pdfparser

PdfParser, a standalone PHP library, provides various tools to extract data from a PDF file.
GNU Lesser General Public License v3.0
2.41k stars 537 forks source link

Simplified Coding Style checks: PSR12 replaces Symfony, risky not allowed anymore #737

Closed k00ni closed 1 month ago

k00ni commented 1 month ago

Type of pull request

About

Coding style checks are a pain in the butt for a while and are interfering with new pull requests frequently. Recent changes even lead to syntax errors because they are not compatible with older PHP versions (example). Investing the time to keep the code up to date with them isn't worth it (at least to me). With this PR a stable and not-ever-changing coding style set is used (PSR12). Its also a standard and well documented (https://www.php-fig.org/psr/psr-12/). I hope this eliminates or at least reduces the number of coding style errors in the future while at the same time guarantees some level of consistent coding styles.