Skip to content

Commit 09e0ff6

Browse files
committed
Merge pull request #148 from afoeder/1.2
[TASK] Add type hints to ScriptHandler
2 parents 86a3ade + 9c2afcf commit 09e0ff6

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Composer/ScriptHandler.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
*/
1111

1212
namespace Symfony\Cmf\Bundle\CreateBundle\Composer;
13+
use Composer\Script\Event;
1314

1415
use Symfony\Component\Process\Process;
1516

@@ -26,13 +27,13 @@ class ScriptHandler
2627

2728
const CKEDITOR_COMMIT_ID = '0fb9d534634a06af386027bd7dea2c9dcfb8bb99';
2829

29-
public static function downloadCreateAndCkeditor($event)
30+
public static function downloadCreateAndCkeditor(Event $event)
3031
{
3132
ScriptHandler::downloadCreate($event);
3233
ScriptHandler::downloadCkeditor($event);
3334
}
3435

35-
public static function downloadCreate($event)
36+
public static function downloadCreate(Event $event)
3637
{
3738
$extra = $event->getComposer()->getPackage()->getExtra();
3839
$event->getIO()->write("<info>Download or update create</info>");
@@ -61,7 +62,7 @@ public static function downloadCreate($event)
6162
ScriptHandler::gitSynchronize($directory, $repository, $commit);
6263
}
6364

64-
public static function downloadCkeditor($event)
65+
public static function downloadCkeditor(Event $event)
6566
{
6667
$extra = $event->getComposer()->getPackage()->getExtra();
6768
$event->getIO()->write("<info>Download or update ckeditor</info>");

0 commit comments

Comments
 (0)