@@ -183,7 +183,7 @@ public function __construct($file, $name = null, $type = null, $size = null, $er
183
183
public function getStream ()
184
184
{
185
185
if ($ this ->moved ) {
186
- throw new \RuntimeException (sprintf ('Uploaded file %1s has already been moved ' , $ this ->name ));
186
+ throw new \RuntimeException (sprintf ('Uploaded file %s has already been moved ' , $ this ->name ));
187
187
}
188
188
if ($ this ->stream === null ) {
189
189
$ this ->stream = new Stream (fopen ($ this ->file , 'r ' ));
@@ -239,22 +239,22 @@ public function moveTo($targetPath)
239
239
240
240
if ($ targetIsStream ) {
241
241
if (!copy ($ this ->file , $ targetPath )) {
242
- throw new RuntimeException (sprintf ('Error moving uploaded file %1s to %2s ' , $ this ->name , $ targetPath ));
242
+ throw new RuntimeException (sprintf ('Error moving uploaded file %s to %s ' , $ this ->name , $ targetPath ));
243
243
}
244
244
if (!unlink ($ this ->file )) {
245
- throw new RuntimeException (sprintf ('Error removing uploaded file %1s ' , $ this ->name ));
245
+ throw new RuntimeException (sprintf ('Error removing uploaded file %s ' , $ this ->name ));
246
246
}
247
247
} elseif ($ this ->sapi ) {
248
248
if (!is_uploaded_file ($ this ->file )) {
249
- throw new RuntimeException (sprintf ('%1s is not a valid uploaded file ' , $ this ->file ));
249
+ throw new RuntimeException (sprintf ('%s is not a valid uploaded file ' , $ this ->file ));
250
250
}
251
251
252
252
if (!move_uploaded_file ($ this ->file , $ targetPath )) {
253
- throw new RuntimeException (sprintf ('Error moving uploaded file %1s to %2s ' , $ this ->name , $ targetPath ));
253
+ throw new RuntimeException (sprintf ('Error moving uploaded file %s to %s ' , $ this ->name , $ targetPath ));
254
254
}
255
255
} else {
256
256
if (!rename ($ this ->file , $ targetPath )) {
257
- throw new RuntimeException (sprintf ('Error moving uploaded file %1s to %2s ' , $ this ->name , $ targetPath ));
257
+ throw new RuntimeException (sprintf ('Error moving uploaded file %s to %s ' , $ this ->name , $ targetPath ));
258
258
}
259
259
}
260
260
0 commit comments