| Conditions | 3 |
| Paths | 7 |
| Total Lines | 14 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| 1 | #!/usr/bin/php |
||
| 10 | public function execute(array $args) |
||
| 11 | { |
||
| 12 | $quran = new Quran; |
||
| 13 | |||
| 14 | try { |
||
| 15 | if(isset($args[2])) $quran->translation($args[2]); |
||
| 16 | $ayah = $quran->get($args[1]); |
||
| 17 | |||
| 18 | return $this->parseResult($ayah) . "\n"; |
||
| 19 | |||
| 20 | } catch(Exception $e) { |
||
| 21 | return "Error: " . $e->getMessage() . "\n"; |
||
| 22 | } |
||
| 23 | } |
||
| 24 | |||
| 63 |