@@ -109,7 +109,7 @@ |
||
| 109 | 109 | /** |
| 110 | 110 | * @param string $parameter |
| 111 | 111 | * @param mixed $defaultValue |
| 112 | - * @return mixed |
|
| 112 | + * @return double |
|
| 113 | 113 | */ |
| 114 | 114 | private function getValue($parameter, $defaultValue = null) |
| 115 | 115 | { |
@@ -87,7 +87,7 @@ |
||
| 87 | 87 | } |
| 88 | 88 | |
| 89 | 89 | /** |
| 90 | - * @param $url |
|
| 90 | + * @param string $url |
|
| 91 | 91 | * @param $apiKey |
| 92 | 92 | */ |
| 93 | 93 | private function setPollUrl($url, $apiKey) |
@@ -10,7 +10,7 @@ |
||
| 10 | 10 | const FILE = 'file'; |
| 11 | 11 | const FROM = 'from'; |
| 12 | 12 | const TO = 'to'; |
| 13 | - const DEPARTURE_DATE= 'departure'; |
|
| 13 | + const DEPARTURE_DATE = 'departure'; |
|
| 14 | 14 | const RETURN_DATE = 'arrival'; |
| 15 | 15 | const MAX_PRICE = 'max-price'; |
| 16 | 16 | const API_KEY = 'api-key'; |
@@ -73,6 +73,6 @@ |
||
| 73 | 73 | |
| 74 | 74 | private function format($message, $color = self::COLOR_GREEN) |
| 75 | 75 | { |
| 76 | - return chr(27) . "$color$message" . chr(27). self::COLOR_NONE; |
|
| 76 | + return chr(27) . "$color$message" . chr(27) . self::COLOR_NONE; |
|
| 77 | 77 | } |
| 78 | 78 | } |
@@ -93,7 +93,7 @@ |
||
| 93 | 93 | $deals = []; |
| 94 | 94 | $resultCount = 1; |
| 95 | 95 | foreach ($cheaperItineraries as $itinerary) { |
| 96 | - $this->logger->debug('Verifying itinerary #'. $resultCount++); |
|
| 96 | + $this->logger->debug('Verifying itinerary #' . $resultCount++); |
|
| 97 | 97 | |
| 98 | 98 | if (!isset($itinerary->PricingOptions[0])) { |
| 99 | 99 | $this->logger->debug('No PricingOptions found.'); |
@@ -63,7 +63,7 @@ |
||
| 63 | 63 | foreach ($deals as $deal) { |
| 64 | 64 | $deal = (object) $deal; |
| 65 | 65 | $message .= '_' . $deal->agent . '_ '; |
| 66 | - $message .= '*' . $parameters->currency . ' ' . number_format($deal->price) . '* '; |
|
| 66 | + $message .= '*' . $parameters->currency . ' ' . number_format($deal->price) . '* '; |
|
| 67 | 67 | |
| 68 | 68 | if ($deal->deepLinkUrl) { |
| 69 | 69 | $message .= "<$deal->deepLinkUrl|buy>" . PHP_EOL; |
@@ -9,6 +9,9 @@ |
||
| 9 | 9 | |
| 10 | 10 | interface NotifiableInterface |
| 11 | 11 | { |
| 12 | + /** |
|
| 13 | + * @return void |
|
| 14 | + */ |
|
| 12 | 15 | public function notify(array $deals, SessionParameters $sessionParameters); |
| 13 | 16 | |
| 14 | 17 | public function createNotification(array $deals, SessionParameters $parameters); |
@@ -8,13 +8,14 @@ |
||
| 8 | 8 | interface ValidatorInterface |
| 9 | 9 | { |
| 10 | 10 | /** |
| 11 | - * @param $instance |
|
| 11 | + * @param \Symfony\Component\Console\Input\InputInterface $instance |
|
| 12 | 12 | * @return $this |
| 13 | 13 | */ |
| 14 | 14 | public function setTarget($instance); |
| 15 | 15 | |
| 16 | 16 | /** |
| 17 | 17 | * @throw ValidationException |
| 18 | + * @return void |
|
| 18 | 19 | */ |
| 19 | 20 | public function validate(); |
| 20 | 21 | } |