| Conditions | 1 | 
| Paths | 1 | 
| Total Lines | 9 | 
| Code Lines | 6 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 2 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php  | 
            ||
| 56 | public function uploadString($index, $filename, $string)  | 
            ||
| 57 |     { | 
            ||
| 58 |         $targetDir = "{$this->url}/config/$index"; | 
            ||
| 59 | |||
| 60 | file_get_contents($targetDir . '/' . $filename, false, stream_context_create([  | 
            ||
| 61 | 'http' => [  | 
            ||
| 62 | 'method' => 'POST',  | 
            ||
| 63 | 'header' => 'Content-type: application/octet-stream',  | 
            ||
| 64 | 'content' => (string) $string  | 
            ||
| 65 | ]  | 
            ||
| 78 |