|
@@ 54-60 (lines=7) @@
|
| 51 |
|
$status = $connection->createTypes($type); |
| 52 |
|
|
| 53 |
|
switch ($status) { |
| 54 |
|
case 0: |
| 55 |
|
$message = sprintf( |
| 56 |
|
'<info>Manager `</info><comment>%s</comment><info>` does not contain%s type(s) information.</info>', |
| 57 |
|
$manager, |
| 58 |
|
empty($type) ? '' : ' `' . implode('</comment><info>`, `</info><comment>', $type) . '`' |
| 59 |
|
); |
| 60 |
|
break; |
| 61 |
|
case 1: |
| 62 |
|
$message = sprintf( |
| 63 |
|
'<info>Created `</info><comment>%s</comment><info>` type(s) for manager named ' |
|
@@ 61-68 (lines=8) @@
|
| 58 |
|
empty($type) ? '' : ' `' . implode('</comment><info>`, `</info><comment>', $type) . '`' |
| 59 |
|
); |
| 60 |
|
break; |
| 61 |
|
case 1: |
| 62 |
|
$message = sprintf( |
| 63 |
|
'<info>Created `</info><comment>%s</comment><info>` type(s) for manager named ' |
| 64 |
|
. '`</info><comment>%s</comment><info>`.</info>', |
| 65 |
|
empty($type) ? 'all' : implode('</comment><info>`, `</info><comment>', $type), |
| 66 |
|
$manager |
| 67 |
|
); |
| 68 |
|
break; |
| 69 |
|
case -1: |
| 70 |
|
$message = sprintf( |
| 71 |
|
'<error>ATTENTION:</error> type(s) already loaded into `<comment>%s</comment>` manager.', |