From 9c2afcfa3608e78bec77de084c0a78e5169e78d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20F=C3=B6der?= Date: Fri, 11 Mar 2016 08:35:05 +0100 Subject: [PATCH] [TASK] Add type hints to ScriptHandler --- Composer/ScriptHandler.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Composer/ScriptHandler.php b/Composer/ScriptHandler.php index 79a867b..db1881a 100644 --- a/Composer/ScriptHandler.php +++ b/Composer/ScriptHandler.php @@ -10,6 +10,7 @@ */ namespace Symfony\Cmf\Bundle\CreateBundle\Composer; +use Composer\Script\Event; use Symfony\Component\Process\Process; @@ -26,13 +27,13 @@ class ScriptHandler const CKEDITOR_COMMIT_ID = '0fb9d534634a06af386027bd7dea2c9dcfb8bb99'; - public static function downloadCreateAndCkeditor($event) + public static function downloadCreateAndCkeditor(Event $event) { ScriptHandler::downloadCreate($event); ScriptHandler::downloadCkeditor($event); } - public static function downloadCreate($event) + public static function downloadCreate(Event $event) { $extra = $event->getComposer()->getPackage()->getExtra(); $event->getIO()->write("Download or update create"); @@ -61,7 +62,7 @@ public static function downloadCreate($event) ScriptHandler::gitSynchronize($directory, $repository, $commit); } - public static function downloadCkeditor($event) + public static function downloadCkeditor(Event $event) { $extra = $event->getComposer()->getPackage()->getExtra(); $event->getIO()->write("Download or update ckeditor");