diff --git a/src/PostInstall.php b/src/PostInstall.php index 59567b1..a9590f9 100644 --- a/src/PostInstall.php +++ b/src/PostInstall.php @@ -27,7 +27,6 @@ public static function apply_text_domain( Event $event ) { $output = $event->getIO(); $composer = $event->getComposer(); $extra = $composer->getPackage()->getExtra(); - $error_message = 'Post-package installation script failed.'; if ( ! isset( $extra['plugin_domain'] ) ) { $output->writeError( self::colorize( 'Plugin domain is not set in the composer extra configuration.', 'red' ) ); @@ -82,7 +81,7 @@ public static function apply_text_domain( Event $event ) { * @param string $color Color on the console. * @return string */ - private static function colorize(string $message, string $color): string { + private static function colorize( string $message, string $color ): string { $colors = [ 'red' => "\033[31m", 'green' => "\033[32m",