@@ -160,7 +160,7 @@ discard block |
||
| 160 | 160 | $ret, new \ArrayObject(), '\JiraRestApi\Issue\Attachment' |
| 161 | 161 | ); |
| 162 | 162 | |
| 163 | - foreach($tmpArr as $t) { |
|
| 163 | + foreach ($tmpArr as $t) { |
|
| 164 | 164 | array_push($attachArr, $t); |
| 165 | 165 | } |
| 166 | 166 | } elseif (is_object($ret)) { |
@@ -786,7 +786,7 @@ discard block |
||
| 786 | 786 | $metas = json_decode($ret, true); |
| 787 | 787 | |
| 788 | 788 | // extract only custom field(startWith customefield_XXXXX) |
| 789 | - $cfs = array_filter($metas['fields'], function ($key) { |
|
| 789 | + $cfs = array_filter($metas['fields'], function($key) { |
|
| 790 | 790 | $pos = strpos($key, 'customfield'); |
| 791 | 791 | |
| 792 | 792 | return $pos !== false; |
@@ -509,7 +509,7 @@ |
||
| 509 | 509 | */ |
| 510 | 510 | public function download($url, $outDir, $file) |
| 511 | 511 | { |
| 512 | - $file = fopen($outDir .DIRECTORY_SEPARATOR.$file, 'w'); |
|
| 512 | + $file = fopen($outDir.DIRECTORY_SEPARATOR.$file, 'w'); |
|
| 513 | 513 | |
| 514 | 514 | $ch = curl_init(); |
| 515 | 515 | curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); |
@@ -41,7 +41,7 @@ |
||
| 41 | 41 | } |
| 42 | 42 | |
| 43 | 43 | // download contents |
| 44 | - if (! file_exists($outDir)) { |
|
| 44 | + if (!file_exists($outDir)) { |
|
| 45 | 45 | mkdir($outDir); |
| 46 | 46 | } |
| 47 | 47 | |