| Total Complexity | 4 |
| Total Lines | 32 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 11 | class CommonTestClass extends TestCase |
||
| 12 | { |
||
| 13 | public function sortingPaths(Node $a, Node $b): int |
||
| 14 | { |
||
| 15 | return $this->fullPath($a) <=> $this->fullPath($b); |
||
| 16 | } |
||
| 17 | |||
| 18 | protected function fullPath(Node $node): string |
||
| 21 | } |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @param resource $content |
||
| 25 | * @return string |
||
| 26 | */ |
||
| 27 | protected function streamToString($content): string |
||
| 31 | } |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @param string $content |
||
| 35 | * @return resource |
||
| 36 | */ |
||
| 37 | protected function stringToStream(string $content) |
||
| 45 |