Code Duplication    Length = 16-16 lines in 2 locations

src/Eccube/Service/PurchaseFlow/Processor/PointProcessor.php 1 location

@@ 176-191 (lines=16) @@
173
     *
174
     * @return bool
175
     */
176
    private function supports(ItemHolderInterface $itemHolder)
177
    {
178
        if (!$this->pointHelper->isPointEnabled()) {
179
            return false;
180
        }
181
182
        if (!$itemHolder instanceof Order) {
183
            return false;
184
        }
185
186
        if (!$itemHolder->getCustomer()) {
187
            return false;
188
        }
189
190
        return true;
191
    }
192
}
193

src/Eccube/Service/PurchaseFlow/Processor/AddPointProcessor.php 1 location

@@ 109-124 (lines=16) @@
106
     *
107
     * @return bool
108
     */
109
    private function supports(ItemHolderInterface $itemHolder)
110
    {
111
        if (!$this->BaseInfo->isOptionPoint()) {
112
            return false;
113
        }
114
115
        if (!$itemHolder instanceof Order) {
116
            return false;
117
        }
118
119
        if (!$itemHolder->getCustomer()) {
120
            return false;
121
        }
122
123
        return true;
124
    }
125
}
126