| Total Complexity | 3 |
| Total Lines | 52 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | class PaypalExpressControllerProvider extends AbstractYvesControllerProvider |
||
| 14 | { |
||
| 15 | public const ROUTE_PAYPAL_EXPRESS_SUCCESS_RESPONSE = 'paypal-express-success'; |
||
| 16 | public const ROUTE_PAYPAL_EXPRESS_SHIPMENT_ADD = 'paypal-express-shipment-add'; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @param \Silex\Application $app |
||
| 20 | * |
||
| 21 | * @return $this |
||
| 22 | */ |
||
| 23 | protected function defineControllers(Application $app) |
||
| 29 | } |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @uses \SprykerEco\Yves\Braintree\Controller\PaypalExpressController::successAction() |
||
| 33 | * |
||
| 34 | * @return $this |
||
| 35 | */ |
||
| 36 | protected function addPaypalExpressSuccessResponseRoute() |
||
| 47 | } |
||
| 48 | |||
| 49 | /** |
||
| 50 | * @uses \SprykerEco\Yves\Braintree\Controller\PaypalExpressController::successAction() |
||
| 51 | * |
||
| 52 | * @return $this |
||
| 53 | */ |
||
| 54 | protected function addPaypalExpressAddShipmentRoute() |
||
| 67 |
In the issue above, the returned value is violating the contract defined by the mentioned interface.
Let's take a look at an example: