@@ -177,7 +177,7 @@ public function __construct($file, $name = null, $type = null, $size = null, $er
177
177
public function getStream ()
178
178
{
179
179
if ($ this ->moved ) {
180
- throw new \RuntimeException (sprintf ('Uploaded file %1s has already been moved ' , $ this ->name ));
180
+ throw new \RuntimeException (sprintf ('Uploaded file %s has already been moved ' , $ this ->name ));
181
181
}
182
182
if ($ this ->stream === null ) {
183
183
$ this ->stream = new Stream (fopen ($ this ->file , 'r ' ));
@@ -233,22 +233,22 @@ public function moveTo($targetPath)
233
233
234
234
if ($ targetIsStream ) {
235
235
if (!copy ($ this ->file , $ targetPath )) {
236
- throw new RuntimeException (sprintf ('Error moving uploaded file %1s to %2s ' , $ this ->name , $ targetPath ));
236
+ throw new RuntimeException (sprintf ('Error moving uploaded file %s to %s ' , $ this ->name , $ targetPath ));
237
237
}
238
238
if (!unlink ($ this ->file )) {
239
- throw new RuntimeException (sprintf ('Error removing uploaded file %1s ' , $ this ->name ));
239
+ throw new RuntimeException (sprintf ('Error removing uploaded file %s ' , $ this ->name ));
240
240
}
241
241
} elseif ($ this ->sapi ) {
242
242
if (!is_uploaded_file ($ this ->file )) {
243
243
throw new RuntimeException (sprintf ('%1s is not a valid uploaded file ' , $ this ->file ));
244
244
}
245
245
246
246
if (!move_uploaded_file ($ this ->file , $ targetPath )) {
247
- throw new RuntimeException (sprintf ('Error moving uploaded file %1s to %2s ' , $ this ->name , $ targetPath ));
247
+ throw new RuntimeException (sprintf ('Error moving uploaded file %s to %s ' , $ this ->name , $ targetPath ));
248
248
}
249
249
} else {
250
250
if (!rename ($ this ->file , $ targetPath )) {
251
- throw new RuntimeException (sprintf ('Error moving uploaded file %1s to %2s ' , $ this ->name , $ targetPath ));
251
+ throw new RuntimeException (sprintf ('Error moving uploaded file %s to %s ' , $ this ->name , $ targetPath ));
252
252
}
253
253
}
254
254
0 commit comments