Conditions | 2 |
Paths | 2 |
Total Lines | 10 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
22 | public function getFileContent( string $repoName, string $branchName, string $fileName ): string { |
||
23 | $url = $this->getFileUrl( $repoName, $branchName, $fileName ); |
||
24 | |||
25 | try { |
||
26 | return $this->fileFetcher->fetchFile( $url ); |
||
27 | } |
||
28 | catch ( FileFetchingException $ex ) { |
||
29 | return ''; |
||
30 | } |
||
31 | } |
||
32 | |||
44 |