From c46710437e51e39adbed19377a17701bea48e9de Mon Sep 17 00:00:00 2001 From: Titouan Galopin Date: Fri, 21 Sep 2018 16:55:37 +0200 Subject: [PATCH 1/3] Add a wizard emoji --- src/Maker/MakeEntity.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Maker/MakeEntity.php b/src/Maker/MakeEntity.php index 47d426fc4..bef3e06bd 100644 --- a/src/Maker/MakeEntity.php +++ b/src/Maker/MakeEntity.php @@ -388,7 +388,7 @@ private function printAvailableTypes(ConsoleStyle $io) 'float' => [], ], 'relation' => [ - 'relation' => 'a wizard will help you build the relation', + 'relation' => 'a wizard 🧙 will help you build the relation', EntityRelation::MANY_TO_ONE => [], EntityRelation::ONE_TO_MANY => [], EntityRelation::MANY_TO_MANY => [], From cd77d5af63a6f62a15657131b08d98add88ddaa3 Mon Sep 17 00:00:00 2001 From: Titouan Galopin Date: Fri, 21 Sep 2018 17:45:12 +0200 Subject: [PATCH 2/3] Update MakeEntity.php --- src/Maker/MakeEntity.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/Maker/MakeEntity.php b/src/Maker/MakeEntity.php index bef3e06bd..2842e1df9 100644 --- a/src/Maker/MakeEntity.php +++ b/src/Maker/MakeEntity.php @@ -378,6 +378,12 @@ private function askForNextField(ConsoleStyle $io, array $fields, string $entity private function printAvailableTypes(ConsoleStyle $io) { $allTypes = Type::getTypesMap(); + + if ('Hyper' === getenv('TERM_PROGRAM')) { + $wizard = 'wizard 🧙'; + } else { + $wizard = '\\' === \DIRECTORY_SEPARATOR ? 'wizard' : 'wizard 🧙'; + } $typesTable = [ 'main' => [ @@ -388,7 +394,7 @@ private function printAvailableTypes(ConsoleStyle $io) 'float' => [], ], 'relation' => [ - 'relation' => 'a wizard 🧙 will help you build the relation', + 'relation' => 'a '.$wizard.' will help you build the relation', EntityRelation::MANY_TO_ONE => [], EntityRelation::ONE_TO_MANY => [], EntityRelation::MANY_TO_MANY => [], From eb0587f9951b55e377d90495640673bc21042dd5 Mon Sep 17 00:00:00 2001 From: Titouan Galopin Date: Fri, 21 Sep 2018 17:54:55 +0200 Subject: [PATCH 3/3] Fix CS --- src/Maker/MakeEntity.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Maker/MakeEntity.php b/src/Maker/MakeEntity.php index 2842e1df9..7454a5245 100644 --- a/src/Maker/MakeEntity.php +++ b/src/Maker/MakeEntity.php @@ -378,7 +378,7 @@ private function askForNextField(ConsoleStyle $io, array $fields, string $entity private function printAvailableTypes(ConsoleStyle $io) { $allTypes = Type::getTypesMap(); - + if ('Hyper' === getenv('TERM_PROGRAM')) { $wizard = 'wizard 🧙'; } else {