Skip to content

Commit

Permalink
不要のコードを消す。
Browse files Browse the repository at this point in the history
PHPDocの定義の修正・
  • Loading branch information
sai-gillingham committed Nov 8, 2023
1 parent 6ff2106 commit b1cf074
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/Eccube/Controller/Admin/Setting/System/LogController.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
use Eccube\Event\EventArgs;
use Eccube\Form\Type\Admin\LogType;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template;
use Symfony\Component\Form\Form;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\StreamedResponse;
use Symfony\Component\Routing\Annotation\Route;
Expand All @@ -29,7 +28,7 @@ class LogController extends AbstractController
* @Route("/%eccube_admin_route%/setting/system/log", name="admin_setting_system_log", methods={"GET", "POST"})
* @Template("@admin/Setting/System/log.twig")
*
* @return array<mixed> | StreamedResponse
* @return array<string, mixed> | StreamedResponse
*/
public function index(Request $request)
{
Expand Down Expand Up @@ -68,7 +67,7 @@ public function index(Request $request)
}
$logDir = $this->getParameter('kernel.logs_dir').DIRECTORY_SEPARATOR.$this->getParameter('kernel.environment');
$logFile = $logDir.'/'.$formData['files'];
/** @var Form $form */
/** @var \Symfony\Component\Form\Form $form */
if ($form->getClickedButton() && $form->getClickedButton()->getName() === 'download' && $form->isValid()) {
$bufferSize = 1024 * 50;
$response = new StreamedResponse();
Expand Down

0 comments on commit b1cf074

Please sign in to comment.