Code Duplication    Length = 46-46 lines in 2 locations

src/Parser.php 2 locations

@@ 145-190 (lines=46) @@
142
        $_value14 = array();
143
        $_cut15 = $this->cut;
144
145
        while (true) {
146
            $_position13 = $this->position;
147
148
            $this->cut = false;
149
            $_value12 = array();
150
151
            $_position10 = $this->position;
152
            $_cut11 = $this->cut;
153
154
            $this->cut = false;
155
            $_success = $this->parseEOL();
156
157
            if (!$_success) {
158
                $_success = true;
159
                $this->value = null;
160
            } else {
161
                $_success = false;
162
            }
163
164
            $this->position = $_position10;
165
            $this->cut = $_cut11;
166
167
            if ($_success) {
168
                $_value12[] = $this->value;
169
170
                if ($this->position < strlen($this->string)) {
171
                    $_success = true;
172
                    $this->value = substr($this->string, $this->position, 1);
173
                    $this->position += 1;
174
                } else {
175
                    $_success = false;
176
                }
177
            }
178
179
            if ($_success) {
180
                $_value12[] = $this->value;
181
182
                $this->value = $_value12;
183
            }
184
185
            if (!$_success) {
186
                break;
187
            }
188
189
            $_value14[] = $this->value;
190
        }
191
192
        if (!$this->cut) {
193
            $_success = true;
@@ 1316-1361 (lines=46) @@
1313
            $_value63 = array();
1314
            $_cut64 = $this->cut;
1315
1316
            while (true) {
1317
                $_position62 = $this->position;
1318
1319
                $this->cut = false;
1320
                $_value61 = array();
1321
1322
                $_position59 = $this->position;
1323
                $_cut60 = $this->cut;
1324
1325
                $this->cut = false;
1326
                $_success = $this->parseCODE_END();
1327
1328
                if (!$_success) {
1329
                    $_success = true;
1330
                    $this->value = null;
1331
                } else {
1332
                    $_success = false;
1333
                }
1334
1335
                $this->position = $_position59;
1336
                $this->cut = $_cut60;
1337
1338
                if ($_success) {
1339
                    $_value61[] = $this->value;
1340
1341
                    if ($this->position < strlen($this->string)) {
1342
                        $_success = true;
1343
                        $this->value = substr($this->string, $this->position, 1);
1344
                        $this->position += 1;
1345
                    } else {
1346
                        $_success = false;
1347
                    }
1348
                }
1349
1350
                if ($_success) {
1351
                    $_value61[] = $this->value;
1352
1353
                    $this->value = $_value61;
1354
                }
1355
1356
                if (!$_success) {
1357
                    break;
1358
                }
1359
1360
                $_value63[] = $this->value;
1361
            }
1362
1363
            if (!$this->cut) {
1364
                $_success = true;