Completed
Branch master (5ab691)
by Nikola
02:48 queued 38s
created
RunOpenCode/ExchangeRate/Source/NationalBankOfSerbiaDomCrawlerSource.php 2 patches
Doc Comments   +11 added lines patch added patch discarded remove patch
@@ -74,6 +74,9 @@  discard block
 block discarded – undo
74 74
         throw new ConfigurationException(sprintf('Source "%s" does not provide currency code "%s" for rate type "%s".', $this->getName(), $currencyCode, $rateType));
75 75
     }
76 76
 
77
+    /**
78
+     * @param string $rateType
79
+     */
77 80
     protected function validateRateType($rateType)
78 81
     {
79 82
         $knownTypes = array(
@@ -91,6 +94,10 @@  discard block
 block discarded – undo
91 94
         return $this;
92 95
     }
93 96
 
97
+    /**
98
+     * @param string $currencyCode
99
+     * @param string $rateType
100
+     */
94 101
     protected function validateCurrencyCode($currencyCode, $rateType)
95 102
     {
96 103
         $supports = array(
@@ -112,6 +119,7 @@  discard block
 block discarded – undo
112 119
 
113 120
     /**
114 121
      * @param \DateTime $date
122
+     * @param string $rateType
115 123
      * @return RateInterface[]
116 124
      * @throws SourceNotAvailableException
117 125
      */
@@ -137,6 +145,9 @@  discard block
 block discarded – undo
137 145
         }
138 146
     }
139 147
 
148
+    /**
149
+     * @param string $xml
150
+     */
140 151
     protected function parseXml($xml, $rateType)
141 152
     {
142 153
         $rates = array();
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,6 @@
 block discarded – undo
5 5
 use GuzzleHttp\Client as GuzzleClient;
6 6
 use GuzzleHttp\Cookie\CookieJar;
7 7
 use Psr\Log\LoggerAwareTrait;
8
-use Psr\Log\LoggerInterface;
9 8
 use RunOpenCode\ExchangeRate\Contract\RateInterface;
10 9
 use RunOpenCode\ExchangeRate\Contract\SourceInterface;
11 10
 use RunOpenCode\ExchangeRate\Exception\ConfigurationException;
Please login to merge, or discard this patch.