Completed
Push — master ( 129fa7...24baaf )
by sabaku
05:59
created
src/Upyun/Util.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -3,7 +3,7 @@  discard block
 block discarded – undo
3 3
 class Util {
4 4
 
5 5
     public static function trim($str) {
6
-        if(is_array($str)) {
6
+        if (is_array($str)) {
7 7
             return array_map(array('Util', 'trim'), $str);
8 8
         } else {
9 9
             return trim($str);
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
14 14
         $params = [];
15 15
         foreach ($headers as $header => $value) {
16 16
             $header = strtolower($header);
17
-            if(strpos($header, 'x-upyun-') !== false) {
17
+            if (strpos($header, 'x-upyun-') !== false) {
18 18
                 $params[$header] = $value[0];
19 19
             }
20 20
         }
@@ -23,12 +23,12 @@  discard block
 block discarded – undo
23 23
 
24 24
     public static function parseDir($body) {
25 25
         $files = array();
26
-        if(!$body) {
26
+        if (!$body) {
27 27
             return array();
28 28
         }
29 29
 
30 30
         $lines = explode("\n", $body);
31
-        foreach($lines as $line) {
31
+        foreach ($lines as $line) {
32 32
             $file = [];
33 33
             list($file['name'], $file['type'], $file['size'], $file['time']) = explode("\t", $line, 4);
34 34
             $files[] = $file;
Please login to merge, or discard this patch.