| Conditions | 3 | 
| Paths | 4 | 
| Total Lines | 26 | 
| Code Lines | 13 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Tests | 12 | 
| CRAP Score | 3 | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php  | 
            ||
| 12 | 16 | public function decrypt ($dlc)  | 
            |
| 13 | 	{ | 
            ||
| 14 | 16 | 		$this->log('Started file decrypting', Logger::INFO); | 
            |
| 15 | |||
| 16 | 16 | if (@file_exists(realpath($dlc)))  | 
            |
| 17 | 		{ | 
            ||
| 18 | 7 | $dlc = realpath($dlc);  | 
            |
| 19 | 7 | $fs = new Local(dirname($dlc));  | 
            |
| 20 | 7 | $content = $fs->read($fs->removePathPrefix($dlc))['contents'];  | 
            |
| 21 | }  | 
            ||
| 22 | else  | 
            ||
| 23 | 		{ | 
            ||
| 24 | 9 | $content = $dlc;  | 
            |
| 25 | }  | 
            ||
| 26 | |||
| 27 | 16 | if (! $content)  | 
            |
| 28 | 		{ | 
            ||
| 29 | 3 | 			throw new \RuntimeException('Empty content.'); | 
            |
| 30 | }  | 
            ||
| 31 | |||
| 32 | 13 | $links = $this->getLinks($content);  | 
            |
| 33 | |||
| 34 | 7 | 		$this->log('Finished file decrypting', Logger::INFO); | 
            |
| 35 | |||
| 36 | 7 | return $links;  | 
            |
| 37 | }  | 
            ||
| 38 | |||
| 40 | }  |