@@ -26,7 +26,7 @@ |
||
26 | 26 | * |
27 | 27 | * @param int $chars The number of space characters to display |
28 | 28 | * @param string $kind Determines the kind of space to return. Values: space | escaped |
29 | - */ |
|
29 | + */ |
|
30 | 30 | |
31 | 31 | public function __construct(int $chars = 1, string $kind = 'space') |
32 | 32 | { |
@@ -39,11 +39,11 @@ |
||
39 | 39 | private function generateSpace() |
40 | 40 | { |
41 | 41 | if ('space' == $this->kind) { |
42 | - foreach($this->whitesSpace($this->chars) as $space) { |
|
42 | + foreach ($this->whitesSpace($this->chars) as $space) { |
|
43 | 43 | $this->spaces .= $space; |
44 | 44 | } |
45 | 45 | } elseif ('escaped' == $this->kind) { |
46 | - foreach($this->whitesSpaceEscape($this->chars) as $space) { |
|
46 | + foreach ($this->whitesSpaceEscape($this->chars) as $space) { |
|
47 | 47 | $this->spaces .= $space; |
48 | 48 | } |
49 | 49 | } |
@@ -26,7 +26,7 @@ |
||
26 | 26 | * |
27 | 27 | * @param int $lines The number of newlines to create |
28 | 28 | * @param string $kind Determines the kind of newline to return. Values: linebreak | return | both |
29 | - */ |
|
29 | + */ |
|
30 | 30 | |
31 | 31 | public function __construct(int $lines = 1, string $kind = 'linebreak') |
32 | 32 | { |
@@ -39,15 +39,15 @@ |
||
39 | 39 | private function generateBreak() |
40 | 40 | { |
41 | 41 | if ('linebreak' == $this->kind) { |
42 | - foreach($this->lineBreak($this->lines) as $linebreak) { |
|
42 | + foreach ($this->lineBreak($this->lines) as $linebreak) { |
|
43 | 43 | $this->br .= $linebreak; |
44 | 44 | } |
45 | 45 | } elseif ('return' == $this->kind) { |
46 | - foreach($this->lineReturn($this->lines) as $linebreak) { |
|
46 | + foreach ($this->lineReturn($this->lines) as $linebreak) { |
|
47 | 47 | $this->br .= $linebreak; |
48 | 48 | } |
49 | 49 | } elseif ('both' == $this->kind) { |
50 | - foreach($this->lineBoth($this->lines) as $linebreak) { |
|
50 | + foreach ($this->lineBoth($this->lines) as $linebreak) { |
|
51 | 51 | $this->br .= $linebreak; |
52 | 52 | } |
53 | 53 | } |