File tree Expand file tree Collapse file tree 2 files changed +15
-5
lines changed Expand file tree Collapse file tree 2 files changed +15
-5
lines changed Original file line number Diff line number Diff line change 1+ <?php
2+
3+ namespace OpenMage \Scripts \Composer ;
4+
5+ use Composer \Script \Event ;
6+
7+ interface ScriptInterface
8+ {
9+ public static function run (Event $ event );
10+ }
Original file line number Diff line number Diff line change 11<?php
22
3- namespace OpenMage \Scripts ;
3+ namespace OpenMage \Scripts \ Composer ;
44
55use Composer \Script \Event ;
66
7- class Devel
7+ class SetupPhpCs implements ScriptInterface
88{
99 /** @var Composer\Composer $composer */
1010 static $ composer ;
@@ -15,7 +15,7 @@ class Devel
1515 /** @var string $binPath */
1616 static $ binPath ;
1717
18- private static function _init (Event $ event )
18+ private static function init (Event $ event )
1919 {
2020 self ::$ composer = $ event ->getComposer ();
2121 self ::$ vendorPath = self ::$ composer ->getConfig ()->get ('vendor-dir ' );
@@ -27,9 +27,9 @@ private static function _init(Event $event)
2727 *
2828 * @param Event $event
2929 */
30- public static function setupPhpCs (Event $ event )
30+ public static function run (Event $ event )
3131 {
32- self ::_init ($ event );
32+ self ::init ($ event );
3333
3434 if ($ event ->isDevMode () === false ) {
3535 return ;
You can’t perform that action at this time.
0 commit comments