Code Duplication    Length = 8-8 lines in 4 locations

src/Core/Model/Common/Attribute.php 4 locations

@@ 441-448 (lines=8) @@
438
        return is_numeric($value) ? static::API_NUMBER : null;
439
    }
440
441
    protected function guessEnum($value)
442
    {
443
        if ($this->hasKeys($value, [static::PROP_KEY, static::PROP_LABEL]) && is_string($value[static::PROP_LABEL])) {
444
            return static::API_ENUM;
445
        }
446
447
        return null;
448
    }
449
450
    protected function guessLocalizedEnum($value)
451
    {
@@ 450-457 (lines=8) @@
447
        return null;
448
    }
449
450
    protected function guessLocalizedEnum($value)
451
    {
452
        if ($this->hasKeys($value, [static::PROP_KEY, static::PROP_LABEL]) && is_array($value[static::PROP_LABEL])) {
453
            return static::API_LENUM;
454
        }
455
456
        return null;
457
    }
458
459
    protected function guessMoney($value)
460
    {
@@ 459-466 (lines=8) @@
456
        return null;
457
    }
458
459
    protected function guessMoney($value)
460
    {
461
        if ($this->hasKeys($value, [static::PROP_CENT_AMOUNT, static::PROP_CURRENCY_CODE])) {
462
            return static::API_MONEY;
463
        }
464
465
        return null;
466
    }
467
468
    protected function guessReference($value)
469
    {
@@ 468-475 (lines=8) @@
465
        return null;
466
    }
467
468
    protected function guessReference($value)
469
    {
470
        if ($this->hasKeys($value, [static::PROP_TYPE_ID, static::PROP_ID])) {
471
            return static::API_REFERENCE;
472
        }
473
474
        return null;
475
    }
476
477
    protected function guessLocalizedText($value)
478
    {