Code Duplication    Length = 10-10 lines in 2 locations

src/Eccube/Service/PurchaseFlow/Processor/PointProcessor.php 2 locations

@@ 121-130 (lines=10) @@
118
    /**
119
     * {@inheritdoc}
120
     */
121
    public function prepare(ItemHolderInterface $itemHolder, PurchaseContext $context)
122
    {
123
        if (!$this->supports($itemHolder)) {
124
            return;
125
        }
126
127
        // ユーザの保有ポイントを減算
128
        $Customer = $itemHolder->getCustomer();
129
        $Customer->setPoint($Customer->getPoint() - $itemHolder->getUsePoint());
130
    }
131
132
    /**
133
     * {@inheritdoc
@@ 143-152 (lines=10) @@
140
    /**
141
     * {@inheritdoc
142
     */
143
    public function rollback(ItemHolderInterface $itemHolder, PurchaseContext $context)
144
    {
145
        // 利用したポイントをユーザに戻す.
146
        if (!$this->supports($itemHolder)) {
147
            return;
148
        }
149
150
        $Customer = $itemHolder->getCustomer();
151
        $Customer->setPoint($Customer->getPoint() + $itemHolder->getUsePoint());
152
    }
153
154
    /*
155
     * Helper methods