@@ -57,7 +57,7 @@ |
||
57 | 57 | public function __toString() |
58 | 58 | { |
59 | 59 | /** @noinspection HtmlUnknownTag */ |
60 | - return $this->parser ? (string)$this->parser : '<undefined>'; |
|
60 | + return $this->parser ? (string) $this->parser : '<undefined>'; |
|
61 | 61 | } |
62 | 62 | |
63 | 63 | } |
@@ -38,7 +38,7 @@ |
||
38 | 38 | } |
39 | 39 | |
40 | 40 | $this->set = count_chars($set, 3); |
41 | - $this->include = (bool)$include; |
|
41 | + $this->include = (bool) $include; |
|
42 | 42 | } |
43 | 43 | |
44 | 44 | protected function parse(&$input, $offset, Context $context) |
@@ -27,7 +27,7 @@ |
||
27 | 27 | |
28 | 28 | $this->first = $first === null ? null : self::parseCharacter($first); |
29 | 29 | $this->last = $last === null ? null : self::parseCharacter($last); |
30 | - $this->in = (bool)$in; |
|
30 | + $this->in = (bool) $in; |
|
31 | 31 | } |
32 | 32 | |
33 | 33 | protected function parse(&$input, $offset, Context $context) |
@@ -50,7 +50,7 @@ |
||
50 | 50 | |
51 | 51 | public function __toString() |
52 | 52 | { |
53 | - return (string)$this->pattern; |
|
53 | + return (string) $this->pattern; |
|
54 | 54 | } |
55 | 55 | |
56 | 56 | } |
@@ -32,7 +32,7 @@ |
||
32 | 32 | $total = 0; |
33 | 33 | /** @var Parser $parser */ |
34 | 34 | foreach ($this->parsers as $parser) { |
35 | - if ($total > 0) { |
|
35 | + if ($total > 0) { |
|
36 | 36 | $skip = $context->skipSpacing($input, $offset + $total); |
37 | 37 | if ($skip === false) { |
38 | 38 | return $this->failure($input, $offset, $total); |
@@ -32,7 +32,7 @@ discard block |
||
32 | 32 | */ |
33 | 33 | public function setResult($key = null, $value = null) |
34 | 34 | { |
35 | - $this->resultCallbacks[] = function (&$results, $text) use (&$key, &$value) { |
|
35 | + $this->resultCallbacks[] = function(&$results, $text) use (&$key, &$value) { |
|
36 | 36 | if (is_callable($value)) { |
37 | 37 | $text = $value($text); |
38 | 38 | } elseif ($value !== null) { |
@@ -55,7 +55,7 @@ discard block |
||
55 | 55 | */ |
56 | 56 | public function concatResult($key = null, $value = null) |
57 | 57 | { |
58 | - $this->resultCallbacks[] = function (&$results, $text) use (&$key, &$value) { |
|
58 | + $this->resultCallbacks[] = function(&$results, $text) use (&$key, &$value) { |
|
59 | 59 | if (is_callable($value)) { |
60 | 60 | $text = $value($text); |
61 | 61 | } elseif ($value !== null) { |
@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | } |
64 | 64 | |
65 | 65 | if (!isset($results[$key])) { |
66 | - $results[$key] = (string)$text; |
|
66 | + $results[$key] = (string) $text; |
|
67 | 67 | } elseif (is_array($results[$key])) { |
68 | 68 | $results[$key][] = array_pop($results[$key]) . $text; |
69 | 69 | } else { |
@@ -83,7 +83,7 @@ discard block |
||
83 | 83 | */ |
84 | 84 | public function pushResult($key = null, $value = null) |
85 | 85 | { |
86 | - $this->resultCallbacks[] = function (&$results, $text) use (&$key, &$value) { |
|
86 | + $this->resultCallbacks[] = function(&$results, $text) use (&$key, &$value) { |
|
87 | 87 | if (is_callable($value)) { |
88 | 88 | $text = $value($text); |
89 | 89 | } elseif ($value !== null) { |
@@ -36,7 +36,7 @@ |
||
36 | 36 | */ |
37 | 37 | public function assignTo(&$variable) |
38 | 38 | { |
39 | - $this->assignCallbacks[] = function ($text) use (&$variable) { |
|
39 | + $this->assignCallbacks[] = function($text) use (&$variable) { |
|
40 | 40 | $variable = $text; |
41 | 41 | }; |
42 | 42 |
@@ -69,7 +69,7 @@ |
||
69 | 69 | * @param mixed $default |
70 | 70 | * @return mixed |
71 | 71 | */ |
72 | - public function getResult($name = null, $default = null) |
|
72 | + public function getResult($name = null, $default = null) |
|
73 | 73 | { |
74 | 74 | return $default; |
75 | 75 | } |
@@ -8,7 +8,7 @@ |
||
8 | 8 | |
9 | 9 | public function pushCaseSensitivity($case_sensitive = true) |
10 | 10 | { |
11 | - array_push($this->case_sensitivity, (bool)$case_sensitive); |
|
11 | + array_push($this->case_sensitivity, (bool) $case_sensitive); |
|
12 | 12 | } |
13 | 13 | |
14 | 14 | public function popCaseSensitivity() |