Skip to content

Commit

Permalink
Format and remove useless variable
Browse files Browse the repository at this point in the history
  • Loading branch information
jeawhanlee committed Nov 27, 2024
1 parent 4222932 commit 69af193
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/PostInstall.php
Original file line number Diff line number Diff line change
Expand Up @@ -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' ) );
Expand Down Expand Up @@ -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",
Expand Down

0 comments on commit 69af193

Please sign in to comment.