SSergei MorozovMade all patches part of the PHPBrew source tree
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
Made all patches part of the PHPBrew source tree As of now, all patches should be included in the source tree to guarantee integrity. The checksum functionality is removed as no longer needed. The patch sources are stored alongside the classes they are used by for better cohesion. Additionally, storing them as separate files would require creating a copy before applying anyways because the `patch` command wouldn't be able to use a file from within a PHAR. This issue is avoided by passing the patch to the CLI command via STDIN. | 6 年前 | |
PHPUnit 7 1. `DiffPatchRule::backup()` was mistakenly removed by #1087 and has been restored. The missing `implements PatchRule` statement has been added for clarity. 2. The logic of `InstallCommandTest::testKnownCommand()` was moved under `::testInstallCommand()`, so the dependency is no longer relevant. 3. `PathCommandTest::testPathCommand()` depended on `::testUseLatestPHP()` which would set the PHPBREW_PHP environment variable but was removed since it was not in fact used. 4. The expectation of `--with-apxs2=` is replaced with `--with-apxs2` for the same reason as in #1070. 5. The `PHPUnit_Framework_TestCase` class alias is declared conditionally since it may or may not be needed depending on the actually used PHPUnit version. | 6 年前 | |
Added PHP_CodeSniffer configuration with PSR-12 as the target Additionally: 1. All class FQNs are replaced with imports. 2. Unused imports are removed. 3. Remaining imports are alphabetically sorted. 4. Expressions like `return $this->logger->error()` replaced with `$this->logger->error(); return` since most of the methods with such a combination do not return any value. 5. Removed doc-blocks autogenerated by PhpStorm. | 6 年前 | |
Removed more unused code | 6 年前 |