| @@ 144-149 (lines=6) @@ | ||
| 141 | } |
|
| 142 | } |
|
| 143 | ||
| 144 | if ($state !== 3) { |
|
| 145 | $parser->error( |
|
| 146 | __('A rename operation was expected.'), |
|
| 147 | $list->tokens[$list->idx - 1] |
|
| 148 | ); |
|
| 149 | } |
|
| 150 | ||
| 151 | // Last iteration was not saved. |
|
| 152 | if (!empty($expr->old)) { |
|
| @@ 271-276 (lines=6) @@ | ||
| 268 | $ret[] = $expr; |
|
| 269 | } |
|
| 270 | ||
| 271 | if (($state !== 0) && ($state !== 6)) { |
|
| 272 | $parser->error( |
|
| 273 | __('A closing bracket was expected.'), |
|
| 274 | $list->tokens[$list->idx - 1] |
|
| 275 | ); |
|
| 276 | } |
|
| 277 | ||
| 278 | --$list->idx; |
|
| 279 | return $ret; |
|