Code Duplication    Length = 8-8 lines in 2 locations

src/Eccube/Entity/AbstractEntity.php 2 locations

@@ 82-89 (lines=8) @@
79
            $objReflect = new \ReflectionClass($this);
80
        }
81
        $arrProperties = $objReflect->getProperties();
82
        foreach ($arrProperties as $objProperty) {
83
            $objProperty->setAccessible(true);
84
            $name = $objProperty->getName();
85
            if (in_array($name, $excludeAttribute) || !array_key_exists($name, $arrProps)) {
86
                continue;
87
            }
88
            $objProperty->setValue($this, $arrProps[$name]);
89
        }
90
91
        // 親クラスがある場合は再帰的にプロパティを取得
92
        $parentClass = $objReflect->getParentClass();
@@ 119-126 (lines=8) @@
116
        }
117
        $arrProperties = $objReflect->getProperties();
118
        $arrResults = [];
119
        foreach ($arrProperties as $objProperty) {
120
            $objProperty->setAccessible(true);
121
            $name = $objProperty->getName();
122
            if (in_array($name, $excludeAttribute)) {
123
                continue;
124
            }
125
            $arrResults[$name] = $objProperty->getValue($this);
126
        }
127
128
        $parentClass = $objReflect->getParentClass();
129
        if (is_object($parentClass)) {