Code Duplication    Length = 13-13 lines in 6 locations

src/RSSFeed/simplepie/simplepie_1.3.1.mini.php 6 locations

@@ 13237-13249 (lines=13) @@
13234
            $this->state = false;
13235
        }
13236
    }
13237
    public function version_name()
13238
    {
13239
        if (substr($this->data, $this->position, 7) === 'version')
13240
        {
13241
            $this->position += 7;
13242
            $this->skip_whitespace();
13243
            $this->state = 'version_equals';
13244
        }
13245
        else
13246
        {
13247
            $this->state = false;
13248
        }
13249
    }
13250
    public function version_equals()
13251
    {
13252
        if (substr($this->data, $this->position, 1) === '=')
@@ 13250-13262 (lines=13) @@
13247
            $this->state = false;
13248
        }
13249
    }
13250
    public function version_equals()
13251
    {
13252
        if (substr($this->data, $this->position, 1) === '=')
13253
        {
13254
            $this->position++;
13255
            $this->skip_whitespace();
13256
            $this->state = 'version_value';
13257
        }
13258
        else
13259
        {
13260
            $this->state = false;
13261
        }
13262
    }
13263
    public function version_value()
13264
    {
13265
        if ($this->version = $this->get_value())
@@ 13282-13294 (lines=13) @@
13279
            $this->state = false;
13280
        }
13281
    }
13282
    public function encoding_name()
13283
    {
13284
        if (substr($this->data, $this->position, 8) === 'encoding')
13285
        {
13286
            $this->position += 8;
13287
            $this->skip_whitespace();
13288
            $this->state = 'encoding_equals';
13289
        }
13290
        else
13291
        {
13292
            $this->state = 'standalone_name';
13293
        }
13294
    }
13295
    public function encoding_equals()
13296
    {
13297
        if (substr($this->data, $this->position, 1) === '=')
@@ 13295-13307 (lines=13) @@
13292
            $this->state = 'standalone_name';
13293
        }
13294
    }
13295
    public function encoding_equals()
13296
    {
13297
        if (substr($this->data, $this->position, 1) === '=')
13298
        {
13299
            $this->position++;
13300
            $this->skip_whitespace();
13301
            $this->state = 'encoding_value';
13302
        }
13303
        else
13304
        {
13305
            $this->state = false;
13306
        }
13307
    }
13308
    public function encoding_value()
13309
    {
13310
        if ($this->encoding = $this->get_value())
@@ 13327-13339 (lines=13) @@
13324
            $this->state = false;
13325
        }
13326
    }
13327
    public function standalone_name()
13328
    {
13329
        if (substr($this->data, $this->position, 10) === 'standalone')
13330
        {
13331
            $this->position += 10;
13332
            $this->skip_whitespace();
13333
            $this->state = 'standalone_equals';
13334
        }
13335
        else
13336
        {
13337
            $this->state = false;
13338
        }
13339
    }
13340
    public function standalone_equals()
13341
    {
13342
        if (substr($this->data, $this->position, 1) === '=')
@@ 13340-13352 (lines=13) @@
13337
            $this->state = false;
13338
        }
13339
    }
13340
    public function standalone_equals()
13341
    {
13342
        if (substr($this->data, $this->position, 1) === '=')
13343
        {
13344
            $this->position++;
13345
            $this->skip_whitespace();
13346
            $this->state = 'standalone_value';
13347
        }
13348
        else
13349
        {
13350
            $this->state = false;
13351
        }
13352
    }
13353
    public function standalone_value()
13354
    {
13355
        if ($standalone = $this->get_value())