File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -147,16 +147,16 @@ function START($id, array $options = array()) {
147
147
}
148
148
149
149
$ options += array ("name " => "mongod " , "id " => $ id );
150
- $ opts = [
151
- "http " => [
150
+ $ opts = array (
151
+ "http " => array (
152
152
"timeout " => 30 ,
153
153
"method " => "PUT " ,
154
154
"header " => "Accept: application/json \r\n" .
155
155
"Content-type: application/x-www-form-urlencoded " ,
156
156
"content " => json_encode ($ options ),
157
157
"ignore_errors " => true ,
158
- ] ,
159
- ] ;
158
+ ) ,
159
+ ) ;
160
160
$ ctx = stream_context_create ($ opts );
161
161
$ json = file_get_contents (getMOUri () . "/servers/ $ id " , false , $ ctx );
162
162
$ result = json_decode ($ json , true );
@@ -176,14 +176,14 @@ function START($id, array $options = array()) {
176
176
}
177
177
}
178
178
function DELETE ($ id ) {
179
- $ opts = [
180
- "http " => [
179
+ $ opts = array (
180
+ "http " => array (
181
181
"timeout " => 30 ,
182
182
"method " => "DELETE " ,
183
183
"header " => "Accept: application/json \r\n" ,
184
184
"ignore_errors " => true ,
185
- ] ,
186
- ] ;
185
+ ) ,
186
+ ) ;
187
187
$ ctx = stream_context_create ($ opts );
188
188
$ json = file_get_contents (getMOUri () . "/servers/ $ id " , false , $ ctx );
189
189
$ FILENAME = sys_get_temp_dir () . "/PHONGO-SERVERS.json " ;
You can’t perform that action at this time.
0 commit comments