@@ -9,14 +9,14 @@ |
||
9 | 9 | |
10 | 10 | class Bytes extends BaseImplementation |
11 | 11 | { |
12 | - /** {@inheritdoc} */ |
|
13 | - protected $maxValue = 255; |
|
12 | + /** {@inheritdoc} */ |
|
13 | + protected $maxValue = 255; |
|
14 | 14 | |
15 | - /** |
|
16 | - * {@inheritdoc} |
|
17 | - */ |
|
18 | - protected function outputValidValue($value) |
|
19 | - { |
|
20 | - return chr($value); |
|
21 | - } |
|
15 | + /** |
|
16 | + * {@inheritdoc} |
|
17 | + */ |
|
18 | + protected function outputValidValue($value) |
|
19 | + { |
|
20 | + return chr($value); |
|
21 | + } |
|
22 | 22 | } |
23 | 23 | \ No newline at end of file |
@@ -9,14 +9,14 @@ |
||
9 | 9 | |
10 | 10 | class PHP extends PrintableAscii |
11 | 11 | { |
12 | - /** {@inheritdoc} */ |
|
13 | - protected $maxValue = 0x10FFFF; |
|
12 | + /** {@inheritdoc} */ |
|
13 | + protected $maxValue = 0x10FFFF; |
|
14 | 14 | |
15 | - /** |
|
16 | - * {@inheritdoc} |
|
17 | - */ |
|
18 | - protected function escapeUnicode($cp) |
|
19 | - { |
|
20 | - return sprintf('\\x{%04X}', $cp); |
|
21 | - } |
|
15 | + /** |
|
16 | + * {@inheritdoc} |
|
17 | + */ |
|
18 | + protected function escapeUnicode($cp) |
|
19 | + { |
|
20 | + return sprintf('\\x{%04X}', $cp); |
|
21 | + } |
|
22 | 22 | } |
23 | 23 | \ No newline at end of file |
@@ -11,34 +11,34 @@ |
||
11 | 11 | |
12 | 12 | abstract class BaseImplementation implements OutputInterface |
13 | 13 | { |
14 | - /** |
|
15 | - * @var integer |
|
16 | - */ |
|
17 | - protected $maxValue = 0; |
|
14 | + /** |
|
15 | + * @var integer |
|
16 | + */ |
|
17 | + protected $maxValue = 0; |
|
18 | 18 | |
19 | - /** |
|
20 | - * @var integer |
|
21 | - */ |
|
22 | - protected $minValue = 0; |
|
19 | + /** |
|
20 | + * @var integer |
|
21 | + */ |
|
22 | + protected $minValue = 0; |
|
23 | 23 | |
24 | - /** |
|
25 | - * {@inheritdoc} |
|
26 | - */ |
|
27 | - public function output($value) |
|
28 | - { |
|
29 | - if ($value < $this->minValue || $value > $this->maxValue) |
|
30 | - { |
|
31 | - throw new InvalidArgumentException('Value ' . $value . ' is out of bounds (' . $this->minValue . '..' . $this->maxValue . ')'); |
|
32 | - } |
|
24 | + /** |
|
25 | + * {@inheritdoc} |
|
26 | + */ |
|
27 | + public function output($value) |
|
28 | + { |
|
29 | + if ($value < $this->minValue || $value > $this->maxValue) |
|
30 | + { |
|
31 | + throw new InvalidArgumentException('Value ' . $value . ' is out of bounds (' . $this->minValue . '..' . $this->maxValue . ')'); |
|
32 | + } |
|
33 | 33 | |
34 | - return $this->outputValidValue($value); |
|
35 | - } |
|
34 | + return $this->outputValidValue($value); |
|
35 | + } |
|
36 | 36 | |
37 | - /** |
|
38 | - * Serialize a valid value into a character |
|
39 | - * |
|
40 | - * @param integer $value |
|
41 | - * @return string |
|
42 | - */ |
|
43 | - abstract protected function outputValidValue($value); |
|
37 | + /** |
|
38 | + * Serialize a valid value into a character |
|
39 | + * |
|
40 | + * @param integer $value |
|
41 | + * @return string |
|
42 | + */ |
|
43 | + abstract protected function outputValidValue($value); |
|
44 | 44 | } |
45 | 45 | \ No newline at end of file |