Passed
Push — master ( e0ef62...90fcea )
by Rodrigo
01:56
created
src/CittaApi.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -208,7 +208,7 @@
 block discarded – undo
208 208
             throw new CittaException(strtr('HTTP Status {code} Error: {error}', [ 
209 209
                     '{error}' => \yii\helpers\ArrayHelper::getValue(\yii\helpers\Json::decode($result->response, true), 'message', null),
210 210
                     '{code}' => $result->http_status_code
211
-                 ])
211
+                    ])
212 212
             );
213 213
         }
214 214
 
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
             throw new CittaException('URL Base Not Set');
58 58
         }
59 59
 
60
-        if (!is_string(self::$url_base)){
60
+        if (!is_string(self::$url_base)) {
61 61
             throw new CittaException('URL Base Type Error');
62 62
         }
63 63
 
@@ -77,12 +77,12 @@  discard block
 block discarded – undo
77 77
     public static function getUrlTo($uri)
78 78
     {
79 79
         if (is_array($uri)) {
80
-            return strtr("{base_url}{uri}",[
80
+            return strtr("{base_url}{uri}", [
81 81
                 "{base_url}" => self::getUrlBase(),
82 82
                 "{uri}" => \yii\helpers\Url::to($uri)
83 83
             ]);
84 84
         } else if (is_string($uri)) {
85
-            return strtr("{base_url}/{uri}",[
85
+            return strtr("{base_url}/{uri}", [
86 86
                 "{base_url}" => self::getUrlBase(),
87 87
                 "{uri}" => $uri
88 88
             ]);
@@ -177,7 +177,7 @@  discard block
 block discarded – undo
177 177
     {
178 178
         $key = base64_encode($uri);
179 179
 
180
-        if (!Yii::$app->cache->exists($key)){
180
+        if (!Yii::$app->cache->exists($key)) {
181 181
             Yii::$app->cache->set($key, self::findAll($uri, $dataProviderParams), $cacheParams);
182 182
         }
183 183
 
Please login to merge, or discard this patch.