Completed
Pull Request — 4.0 (#4889)
by
unknown
05:22
created
src/Eccube/Controller/Admin/Content/FileController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -180,7 +180,7 @@  discard block
 block discarded – undo
180 180
                 : $topDir;
181 181
             $newFilePath = $nowDir.'/'.$filename;
182 182
             if (file_exists($newFilePath)) {
183
-                throw new IOException(trans('admin.content.file.dir_exists', [ '%file_name%' => $filename, ]));
183
+                throw new IOException(trans('admin.content.file.dir_exists', ['%file_name%' => $filename, ]));
184 184
             }
185 185
             $fs->mkdir($newFilePath);
186 186
 
@@ -288,7 +288,7 @@  discard block
 block discarded – undo
288 288
             $filename = $this->convertStrToServer($file->getClientOriginalName());
289 289
             try {
290 290
                 $file->move($nowDir, $filename);
291
-                $successCount ++;
291
+                $successCount++;
292 292
             } catch (FileException $e) {
293 293
                 $this->errors[] = ['message' => trans('admin.content.file.upload_error', [
294 294
                     '%file_name%' => $filename,
Please login to merge, or discard this patch.