@@ -26,6 +26,10 @@ |
||
26 | 26 | } |
27 | 27 | } |
28 | 28 | |
29 | + /** |
|
30 | + * @param string $url |
|
31 | + * @param string $destination |
|
32 | + */ |
|
29 | 33 | public function download($url, $destination) |
30 | 34 | { |
31 | 35 | $client = new Client(); |
@@ -67,6 +67,9 @@ discard block |
||
67 | 67 | } |
68 | 68 | } |
69 | 69 | |
70 | + /** |
|
71 | + * @param OutputInterface $output |
|
72 | + */ |
|
70 | 73 | private function chapter($output, $verse) |
71 | 74 | { |
72 | 75 | $surah = $this->quran->getSource()->chapter($verse); |
@@ -92,6 +95,9 @@ discard block |
||
92 | 95 | $table->render(); |
93 | 96 | } |
94 | 97 | |
98 | + /** |
|
99 | + * @param OutputInterface $output |
|
100 | + */ |
|
95 | 101 | private function chapters($output) |
96 | 102 | { |
97 | 103 | $surah = $this->quran->getSource()->chapters(); |
@@ -108,6 +114,9 @@ discard block |
||
108 | 114 | $table->render(); |
109 | 115 | } |
110 | 116 | |
117 | + /** |
|
118 | + * @param integer $columns |
|
119 | + */ |
|
111 | 120 | private function array_chunk_vertical($data, $columns) |
112 | 121 | { |
113 | 122 | $n = count($data); |
@@ -4,11 +4,11 @@ |
||
4 | 4 | |
5 | 5 | use FaizShukri\Quran\Quran; |
6 | 6 | use Symfony\Component\Console\Command\Command; |
7 | +use Symfony\Component\Console\Helper\Table; |
|
7 | 8 | use Symfony\Component\Console\Helper\TableCell; |
8 | 9 | use Symfony\Component\Console\Input\InputArgument; |
9 | 10 | use Symfony\Component\Console\Input\InputInterface; |
10 | 11 | use Symfony\Component\Console\Output\OutputInterface; |
11 | -use Symfony\Component\Console\Helper\Table; |
|
12 | 12 | |
13 | 13 | class SurahCommand extends Command |
14 | 14 | { |