@@ -71,7 +71,7 @@ |
||
71 | 71 | } |
72 | 72 | |
73 | 73 | /** |
74 | - * @param object $table |
|
74 | + * @param Table $table |
|
75 | 75 | */ |
76 | 76 | protected function setTableLayout($table) |
77 | 77 | { |
@@ -52,7 +52,7 @@ |
||
52 | 52 | protected function execute(InputInterface $input, OutputInterface $output) |
53 | 53 | { |
54 | 54 | if (!Uuid::isValid($input->getArgument('uuid'))) { |
55 | - throw new Exception('Invalid UUID (' . $input->getArgument('uuid') . ')'); |
|
55 | + throw new Exception('Invalid UUID ('.$input->getArgument('uuid').')'); |
|
56 | 56 | } |
57 | 57 | |
58 | 58 | $uuid = Uuid::fromString($input->getArgument('uuid')); |
@@ -21,7 +21,6 @@ |
||
21 | 21 | use Ramsey\Uuid\Console\Exception; |
22 | 22 | use Ramsey\Uuid\Uuid; |
23 | 23 | use Ramsey\Uuid\Generator\CombGenerator; |
24 | -use Ramsey\Uuid\Codec\GuidStringCodec; |
|
25 | 24 | use Ramsey\Uuid\FeatureSet; |
26 | 25 | use Ramsey\Uuid\UuidFactory; |
27 | 26 |
@@ -13,7 +13,6 @@ |
||
13 | 13 | |
14 | 14 | namespace Ramsey\Uuid\Console\Util\Formatter; |
15 | 15 | |
16 | -use Ramsey\Uuid\Console\Util\UuidFormatter; |
|
17 | 16 | use Ramsey\Uuid\UuidInterface; |
18 | 17 | use Ramsey\Uuid\Console\Util\UuidContentFormatterInterface; |
19 | 18 |
@@ -22,9 +22,9 @@ |
||
22 | 22 | public function getContent(UuidInterface $uuid) |
23 | 23 | { |
24 | 24 | return array( |
25 | - array('', 'content:', 'time: ' . $uuid->getDateTime()->format('c')), |
|
26 | - array('', '', 'clock: ' . $uuid->getClockSequence() . ' (usually random)'), |
|
27 | - array('', '', 'node: ' . substr(chunk_split($uuid->getNodeHex(), 2, ':'), 0, -1)), |
|
25 | + array('', 'content:', 'time: '.$uuid->getDateTime()->format('c')), |
|
26 | + array('', '', 'clock: '.$uuid->getClockSequence().' (usually random)'), |
|
27 | + array('', '', 'node: '.substr(chunk_split($uuid->getNodeHex(), 2, ':'), 0, -1)), |
|
28 | 28 | ); |
29 | 29 | } |
30 | 30 | } |
@@ -59,13 +59,13 @@ |
||
59 | 59 | { |
60 | 60 | $table->addRows(array( |
61 | 61 | array('encode:', 'STR:', (string) $uuid), |
62 | - array('', 'INT:', (string) $uuid->getInteger()), |
|
62 | + array('', 'INT:', (string) $uuid->getInteger()), |
|
63 | 63 | )); |
64 | 64 | |
65 | 65 | if ($uuid->getVariant() == Uuid::RFC_4122) { |
66 | 66 | $table->addRows(array( |
67 | - array('decode:', 'variant:',$this->getFormattedVariant($uuid)), |
|
68 | - array('', 'version:', $this->getFormattedVersion($uuid)), |
|
67 | + array('decode:', 'variant:', $this->getFormattedVariant($uuid)), |
|
68 | + array('', 'version:', $this->getFormattedVersion($uuid)), |
|
69 | 69 | )); |
70 | 70 | |
71 | 71 | $table->addRows($this->getContent($uuid)); |