@@ -39,7 +39,7 @@ |
||
| 39 | 39 | return null; |
| 40 | 40 | } |
| 41 | 41 | |
| 42 | - $methodName = (string) $node->name; |
|
| 42 | + $methodName = (string)$node->name; |
|
| 43 | 43 | if (!\in_array($methodName, ['addChild', 'setLabel'], true)) { |
| 44 | 44 | return null; |
| 45 | 45 | } |
@@ -38,7 +38,7 @@ |
||
| 38 | 38 | return null; |
| 39 | 39 | } |
| 40 | 40 | |
| 41 | - $methodName = (string) $node->name; |
|
| 41 | + $methodName = (string)$node->name; |
|
| 42 | 42 | if ('setLinkAttribute' !== $methodName) { |
| 43 | 43 | return null; |
| 44 | 44 | } |
@@ -60,7 +60,7 @@ |
||
| 60 | 60 | return null; |
| 61 | 61 | } |
| 62 | 62 | |
| 63 | - $methodName = (string) $node->name; |
|
| 63 | + $methodName = (string)$node->name; |
|
| 64 | 64 | if ('setExtra' !== $methodName) { |
| 65 | 65 | return null; |
| 66 | 66 | } |
@@ -80,7 +80,7 @@ |
||
| 80 | 80 | } |
| 81 | 81 | |
| 82 | 82 | // set class for the messages |
| 83 | - $class = !empty($params['class']) ? $params['class'] : "alert alert-${bootstrapClass}"; |
|
| 83 | + $class = !empty($params['class']) ? $params['class'] : "alert alert-${bootstrapclass}"; |
|
| 84 | 84 | $totalMessages += $messages; |
| 85 | 85 | // build output of the messages |
| 86 | 86 | if (empty($params['tag']) || ('span' !== $params['tag'])) { |
@@ -140,6 +140,6 @@ |
||
| 140 | 140 | } |
| 141 | 141 | |
| 142 | 142 | $class = get_class($this); |
| 143 | - throw new RuntimeException("Entity \"${class}\" does not have a setter for property \"${name}\". Please add ${setMethod}()."); |
|
| 143 | + throw new RuntimeException("Entity \"${class}\" does not have a setter for property \"${name}\". Please add ${setmethod}()."); |
|
| 144 | 144 | } |
| 145 | 145 | } |
@@ -141,7 +141,7 @@ |
||
| 141 | 141 | // added due to https://github.com/symfony/symfony/issues/28577 |
| 142 | 142 | session_destroy(); |
| 143 | 143 | |
| 144 | - ini_set('session.cookie_lifetime', (string) $lifetime); |
|
| 144 | + ini_set('session.cookie_lifetime', (string)$lifetime); |
|
| 145 | 145 | |
| 146 | 146 | // added due to https://github.com/symfony/symfony/issues/28577 |
| 147 | 147 | session_start(); |
@@ -34,8 +34,8 @@ |
||
| 34 | 34 | { |
| 35 | 35 | $this->tokenParser = new SwitchTokenParser(); |
| 36 | 36 | $this->twigParser = $this->getMockBuilder(Parser::class) |
| 37 | - ->disableOriginalConstructor() |
|
| 38 | - ->getMock(); |
|
| 37 | + ->disableOriginalConstructor() |
|
| 38 | + ->getMock(); |
|
| 39 | 39 | $this->tokenParser->setParser($this->twigParser); |
| 40 | 40 | } |
| 41 | 41 | |
@@ -71,7 +71,7 @@ discard block |
||
| 71 | 71 | echo "case 0"; |
| 72 | 72 | default: |
| 73 | 73 | } |
| 74 | -EOF |
|
| 74 | +eof |
|
| 75 | 75 | ]; |
| 76 | 76 | |
| 77 | 77 | // #2 switch with two cases, second with break |
@@ -98,7 +98,7 @@ discard block |
||
| 98 | 98 | break; |
| 99 | 99 | default: |
| 100 | 100 | } |
| 101 | -EOF |
|
| 101 | +eof |
|
| 102 | 102 | ]; |
| 103 | 103 | |
| 104 | 104 | // #3 switch with two cases (second with break) and default |
@@ -126,7 +126,7 @@ discard block |
||
| 126 | 126 | default: |
| 127 | 127 | echo "default case"; |
| 128 | 128 | } |
| 129 | -EOF |
|
| 129 | +eof |
|
| 130 | 130 | ]; |
| 131 | 131 | |
| 132 | 132 | // #4 switch with two cases (first without body, second with break) and default |
@@ -153,7 +153,7 @@ discard block |
||
| 153 | 153 | default: |
| 154 | 154 | echo "default case"; |
| 155 | 155 | } |
| 156 | -EOF |
|
| 156 | +eof |
|
| 157 | 157 | ]; |
| 158 | 158 | |
| 159 | 159 | return $tests; |
@@ -118,7 +118,7 @@ |
||
| 118 | 118 | } |
| 119 | 119 | } |
| 120 | 120 | } |
| 121 | -EOF |
|
| 121 | +eof |
|
| 122 | 122 | ; |
| 123 | 123 | |
| 124 | 124 | return json_decode($json, true); |