@@ -144,7 +144,7 @@ discard block |
||
144 | 144 | /** |
145 | 145 | * Gets the decorated flag. |
146 | 146 | * |
147 | - * @return bool true if the output will decorate messages, false otherwise |
|
147 | + * @return integer true if the output will decorate messages, false otherwise |
|
148 | 148 | * @api |
149 | 149 | */ |
150 | 150 | public function isDecorated() |
@@ -166,7 +166,7 @@ discard block |
||
166 | 166 | /** |
167 | 167 | * Returns whether verbosity is quiet (-q). |
168 | 168 | * |
169 | - * @return bool true if verbosity is set to VERBOSITY_QUIET, false otherwise |
|
169 | + * @return boolean|null true if verbosity is set to VERBOSITY_QUIET, false otherwise |
|
170 | 170 | */ |
171 | 171 | public function isQuiet() |
172 | 172 | { |
@@ -42,11 +42,11 @@ discard block |
||
42 | 42 | protected function configure() |
43 | 43 | { |
44 | 44 | $this->setName("parseCfPs") |
45 | - ->setDescription("Retrieve CfPs and parse them") |
|
46 | - ->setDefinition(array( |
|
47 | - new InputOption('start', 's', InputOption::VALUE_OPTIONAL, 'What should be the first date to be taken into account?', ''), |
|
48 | - )) |
|
49 | - ->setHelp(<<<EOT |
|
45 | + ->setDescription("Retrieve CfPs and parse them") |
|
46 | + ->setDefinition(array( |
|
47 | + new InputOption('start', 's', InputOption::VALUE_OPTIONAL, 'What should be the first date to be taken into account?', ''), |
|
48 | + )) |
|
49 | + ->setHelp(<<<EOT |
|
50 | 50 | Get details about CfPs from different sources |
51 | 51 | |
52 | 52 | Usage: |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | If you ommit the date the current date will be used instead |
57 | 57 | <info>callingallpapers parseCfPs<env></info> |
58 | 58 | EOT |
59 | - ); |
|
59 | + ); |
|
60 | 60 | } |
61 | 61 | |
62 | 62 | protected function execute(InputInterface $input, OutputInterface $output) |
@@ -32,6 +32,10 @@ |
||
32 | 32 | class EventName |
33 | 33 | { |
34 | 34 | |
35 | + /** |
|
36 | + * @param \DOMDocument $dom |
|
37 | + * @param \DOMXPath $xpath |
|
38 | + */ |
|
35 | 39 | public function parse($dom, $xpath) |
36 | 40 | { |
37 | 41 | $confPath = $xpath->query("//h3/a[contains(@class, 'summary')]"); |
@@ -32,6 +32,10 @@ |
||
32 | 32 | class Location |
33 | 33 | { |
34 | 34 | |
35 | + /** |
|
36 | + * @param \DOMDocument $dom |
|
37 | + * @param \DOMXPath $xpath |
|
38 | + */ |
|
35 | 39 | public function parse($dom, $xpath) |
36 | 40 | { |
37 | 41 | $locations = $xpath->query("//div[contains(@class, 'vevent')]/p[contains(@class, 'location')]/a"); ///a/abbr[class='dtstart'] |
@@ -32,6 +32,10 @@ |
||
32 | 32 | class Tags |
33 | 33 | { |
34 | 34 | |
35 | + /** |
|
36 | + * @param \DOMDocument $dom |
|
37 | + * @param \DOMXPath $xpath |
|
38 | + */ |
|
35 | 39 | public function parse($dom, $xpath) |
36 | 40 | { |
37 | 41 | $tags = $xpath->query( |
@@ -32,6 +32,10 @@ |
||
32 | 32 | class Uri |
33 | 33 | { |
34 | 34 | |
35 | + /** |
|
36 | + * @param \DOMDocument $dom |
|
37 | + * @param \DOMXPath $xpath |
|
38 | + */ |
|
35 | 39 | public function parse($dom, $xpath) |
36 | 40 | { |
37 | 41 | $uri = $xpath->query( |
@@ -114,6 +114,9 @@ discard block |
||
114 | 114 | } |
115 | 115 | } |
116 | 116 | |
117 | + /** |
|
118 | + * @param string $location |
|
119 | + */ |
|
117 | 120 | protected function getLatLonForLocation($location) |
118 | 121 | { |
119 | 122 | $result = $this->client->get(sprintf( |
@@ -131,6 +134,9 @@ discard block |
||
131 | 134 | return [$location->lat, $location->lon]; |
132 | 135 | } |
133 | 136 | |
137 | + /** |
|
138 | + * @param \DOMXPath $xpath |
|
139 | + */ |
|
134 | 140 | public function getEventPage($xpath) |
135 | 141 | { |
136 | 142 | $confPath = $xpath->query("//h3/a[contains(@class, 'summary')]"); |
@@ -45,18 +45,18 @@ |
||
45 | 45 | protected function configure() |
46 | 46 | { |
47 | 47 | $this->setName("notifyClosingCfps") |
48 | - ->setDescription("Notify about CfPs that close within 24 hours") |
|
49 | - ->setDefinition(array( |
|
50 | - new InputOption('start', 's', InputOption::VALUE_OPTIONAL, 'What should be the first date to be taken into account?', ''), |
|
51 | - )) |
|
52 | - ->setHelp(<<<EOT |
|
48 | + ->setDescription("Notify about CfPs that close within 24 hours") |
|
49 | + ->setDefinition(array( |
|
50 | + new InputOption('start', 's', InputOption::VALUE_OPTIONAL, 'What should be the first date to be taken into account?', ''), |
|
51 | + )) |
|
52 | + ->setHelp(<<<EOT |
|
53 | 53 | Notify about CfPs that are closing within 24 hours |
54 | 54 | |
55 | 55 | Usage: |
56 | 56 | |
57 | 57 | <info>callingallpapers notifyClosingCfp</info> |
58 | 58 | EOT |
59 | - ); |
|
59 | + ); |
|
60 | 60 | } |
61 | 61 | |
62 | 62 | protected function execute(InputInterface $input, OutputInterface $output) |
@@ -38,6 +38,10 @@ |
||
38 | 38 | $this->timezone = new \DateTimezone($timezone); |
39 | 39 | } |
40 | 40 | |
41 | + /** |
|
42 | + * @param \DOMDocument $dom |
|
43 | + * @param \DOMXPath $xpath |
|
44 | + */ |
|
41 | 45 | public function parse($dom, $xpath) |
42 | 46 | { |
43 | 47 | $closingDate = $xpath->query("//span[text()='Closes on:']/following-sibling::strong"); |