Skip to content
Snippets Groups Projects
Commit a25a7c50 authored by jurgenhaas's avatar jurgenhaas
Browse files

#7 Rename static script functions

parent 76d93d62
No related branches found
No related tags found
No related merge requests found
...@@ -59,7 +59,8 @@ class Plugin implements PluginInterface, EventSubscriberInterface ...@@ -59,7 +59,8 @@ class Plugin implements PluginInterface, EventSubscriberInterface
*/ */
public function updateThemeEvent($event) public function updateThemeEvent($event)
{ {
$this->handler->updateTheme($event, TRUE); $this->handler->setUpdate(TRUE);
$this->handler->updateTheme($event);
} }
/** /**
...@@ -70,7 +71,7 @@ class Plugin implements PluginInterface, EventSubscriberInterface ...@@ -70,7 +71,7 @@ class Plugin implements PluginInterface, EventSubscriberInterface
* @param bool $reset * @param bool $reset
* @param bool $overwrite * @param bool $overwrite
*/ */
public static function initTheme($event, $update = FALSE, $reset = FALSE, $overwrite = FALSE) public static function init($event, $update = FALSE, $reset = FALSE, $overwrite = FALSE)
{ {
$handler = new Handler($event->getComposer(), $event->getIO(), $update, $reset, $overwrite); $handler = new Handler($event->getComposer(), $event->getIO(), $update, $reset, $overwrite);
$handler->updateTheme($event); $handler->updateTheme($event);
...@@ -81,9 +82,9 @@ class Plugin implements PluginInterface, EventSubscriberInterface ...@@ -81,9 +82,9 @@ class Plugin implements PluginInterface, EventSubscriberInterface
* *
* @param \Composer\Script\Event $event * @param \Composer\Script\Event $event
*/ */
public static function updateTheme($event) public static function update($event)
{ {
self::initTheme($event, TRUE); self::init($event, TRUE);
} }
/** /**
...@@ -91,9 +92,9 @@ class Plugin implements PluginInterface, EventSubscriberInterface ...@@ -91,9 +92,9 @@ class Plugin implements PluginInterface, EventSubscriberInterface
* *
* @param \Composer\Script\Event $event * @param \Composer\Script\Event $event
*/ */
public static function resetTheme($event) public static function reset($event)
{ {
self::initTheme($event, FALSE, TRUE); self::init($event, FALSE, TRUE);
} }
/** /**
...@@ -101,9 +102,9 @@ class Plugin implements PluginInterface, EventSubscriberInterface ...@@ -101,9 +102,9 @@ class Plugin implements PluginInterface, EventSubscriberInterface
* *
* @param \Composer\Script\Event $event * @param \Composer\Script\Event $event
*/ */
public static function overwriteTheme($event) public static function overwrite($event)
{ {
self::initTheme($event, FALSE, FALSE, TRUE); self::init($event, FALSE, FALSE, TRUE);
} }
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment