Passed
Pull Request — master (#16)
by CHATARD
11:55
created
src/Factory/MollieGatewayFactory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
     protected function populateConfig(ArrayObject $config): void
24 24
     {
25 25
 
26
-        $environment = true === $config['environment'] ? "api_key_live": "api_key_test";
26
+        $environment = true === $config['environment'] ? "api_key_live" : "api_key_test";
27 27
         $config->defaults([
28 28
             'payum.factory_name' => self::FACTORY_NAME,
29 29
             'payum.factory_title' => 'Mollie',
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
                 $environment,
42 42
             ];
43 43
 
44
-            $config['payum.api'] = function (ArrayObject $config) use ($environment) {
44
+            $config['payum.api'] = function(ArrayObject $config) use ($environment) {
45 45
                 $config->validateNotEmpty($config['payum.required_options']);
46 46
 
47 47
                 /** @var MollieApiClient $mollieApiClient */
Please login to merge, or discard this patch.
src/PartialShip/CreatePartialShipFromMollie.php 1 patch
Spacing   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -31,8 +31,7 @@  discard block
 block discarded – undo
31 31
     /** @var FromMollieToSyliusResolverInterface */
32 32
     private $fromMollieToSyliusResolver;
33 33
 
34
-    public function __construct
35
-    (
34
+    public function __construct(
36 35
         ShipmentFactoryInterface $shipmentFactory,
37 36
         RepositoryInterface $orderRepository,
38 37
         FromMollieToSyliusResolverInterface $fromMollieToSyliusResolver
@@ -52,7 +51,7 @@  discard block
 block discarded – undo
52 51
 
53 52
         /** @var Collection $shipments */
54 53
         $shipments = $order->getShipments();
55
-        $shipmentsToRemove = $shipments->filter(static function (ShipmentInterface $shipment): bool {
54
+        $shipmentsToRemove = $shipments->filter(static function(ShipmentInterface $shipment): bool {
56 55
             return $shipment->getState() === ShipmentInterface::STATE_READY && $shipment->getUnits()->isEmpty();
57 56
         });
58 57
 
Please login to merge, or discard this patch.