| Total Complexity | 4 |
| Total Lines | 32 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 8 | final class IssueFixer |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * @var FileBuilder |
||
| 12 | */ |
||
| 13 | private $fileBuilder; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * @var FixerFactory |
||
| 17 | */ |
||
| 18 | private $fixerFactory; |
||
| 19 | |||
| 20 | public function __construct(FileBuilder $fileBuilder = null, FixerFactory $fixerFactory = null) |
||
| 21 | { |
||
| 22 | $this->fileBuilder = $fileBuilder ?? new FileBuilder(); |
||
| 23 | $this->fixerFactory = $fixerFactory ?? new FixerFactory(); |
||
| 24 | } |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @param string $filePath |
||
| 28 | */ |
||
| 29 | public function fixIssuesForFile(string $filePath): void |
||
| 40 | } |
||
| 41 | } |
||
| 42 |