Skip to content

Commit 14d2946

Browse files
committed
minor #276 Add a wizard emoji (tgalopin)
This PR was squashed before being merged into the 1.0-dev branch (closes #276). Discussion ---------- Add a wizard emoji 🧙 Commits ------- c31e80d Add a wizard emoji
2 parents 7185097 + c31e80d commit 14d2946

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/Maker/MakeEntity.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,6 +379,12 @@ private function printAvailableTypes(ConsoleStyle $io)
379379
{
380380
$allTypes = Type::getTypesMap();
381381

382+
if ('Hyper' === getenv('TERM_PROGRAM')) {
383+
$wizard = 'wizard 🧙';
384+
} else {
385+
$wizard = '\\' === \DIRECTORY_SEPARATOR ? 'wizard' : 'wizard 🧙';
386+
}
387+
382388
$typesTable = [
383389
'main' => [
384390
'string' => [],
@@ -388,7 +394,7 @@ private function printAvailableTypes(ConsoleStyle $io)
388394
'float' => [],
389395
],
390396
'relation' => [
391-
'relation' => 'a wizard will help you build the relation',
397+
'relation' => 'a '.$wizard.' will help you build the relation',
392398
EntityRelation::MANY_TO_ONE => [],
393399
EntityRelation::ONE_TO_MANY => [],
394400
EntityRelation::MANY_TO_MANY => [],

0 commit comments

Comments
 (0)