Code Duplication    Length = 16-16 lines in 2 locations

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

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

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