Passed
Push — master ( 15bb13...8f441f )
by Orkhan
02:25
created
src/CBAR.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -138,11 +138,11 @@  discard block
 block discarded – undo
138 138
      *
139 139
      * @return $this
140 140
      */
141
-    public function for(string $date)
141
+    public function for (string $date)
142 142
     {
143 143
         $this->date = $date;
144 144
 
145
-        if (! isset($this->rates[$this->date])) {
145
+        if (!isset($this->rates[$this->date])) {
146 146
             $this->getRatesFromCBAR();
147 147
         }
148 148
 
@@ -161,11 +161,11 @@  discard block
 block discarded – undo
161 161
      */
162 162
     public function __get(string $currency)
163 163
     {
164
-        if (! isset($this->rates[$this->date])) {
164
+        if (!isset($this->rates[$this->date])) {
165 165
             $this->getRatesFromCBAR();
166 166
         }
167 167
 
168
-        if (! isset($this->rates[$this->date][$currency])) {
168
+        if (!isset($this->rates[$this->date][$currency])) {
169 169
             throw new CurrencyException('Currency with '.$currency.' code is not available');
170 170
         }
171 171
 
@@ -192,11 +192,11 @@  discard block
 block discarded – undo
192 192
      */
193 193
     public function __call(string $currency, array $arguments)
194 194
     {
195
-        if (! isset($this->rates[$this->date])) {
195
+        if (!isset($this->rates[$this->date])) {
196 196
             $this->getRatesFromCBAR();
197 197
         }
198 198
 
199
-        if (! isset($this->rates[$this->date][$currency])) {
199
+        if (!isset($this->rates[$this->date][$currency])) {
200 200
             throw new CurrencyException('Currency with '.$currency.' code is not available');
201 201
         }
202 202
 
@@ -224,7 +224,7 @@  discard block
 block discarded – undo
224 224
      */
225 225
     private function getRatesFromCBAR()
226 226
     {
227
-        if (! $validatedDate = strtotime($this->date)) {
227
+        if (!$validatedDate = strtotime($this->date)) {
228 228
             throw new DateException($this->date.' is not a valid date.');
229 229
         }
230 230
         $this->date = date('d.m.Y', $validatedDate);
Please login to merge, or discard this patch.
src/functions.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,7 @@
 block discarded – undo
2 2
 
3 3
 use Orkhanahmadov\CBARCurrency\CBAR;
4 4
 
5
-if (! function_exists('cbar')) {
5
+if (!function_exists('cbar')) {
6 6
     /**
7 7
      * Helper function.
8 8
      *
Please login to merge, or discard this patch.