Skip to content

Commit 4fa582e

Browse files
committed
Renamed class and directories
1 parent 77f5531 commit 4fa582e

File tree

2 files changed

+15
-5
lines changed

2 files changed

+15
-5
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
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+
}

dev/scripts/Devel.php renamed to dev/scripts/composer/SetupPhpCs.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<?php
22

3-
namespace OpenMage\Scripts;
3+
namespace OpenMage\Scripts\Composer;
44

55
use 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;

0 commit comments

Comments
 (0)