Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Apply coding standard fixes
  • Loading branch information
pamil committed Jun 7, 2018
1 parent 61e2d4f commit f507fb5
Show file tree
Hide file tree
Showing 7 changed files with 34 additions and 6 deletions.
Expand Up @@ -33,7 +33,7 @@ public function __construct(string $className, TranslationLocaleProviderInterfac
public function createCustom(): Book
{
/** @var Book $book */
$book = new $this->className;
$book = new $this->className();

$book->setCurrentLocale($this->localeProvider->getDefaultLocaleCode());
$book->setFallbackLocale($this->localeProvider->getDefaultLocaleCode());
Expand Down
@@ -1,5 +1,14 @@
<?php

/*
* This file is part of the Sylius package.
*
* (c) Paweł Jędrzejewski
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

declare(strict_types=1);

namespace AppBundle\Repository;
Expand Down
Expand Up @@ -129,6 +129,7 @@ private function processShipmentUnits(BaseOrderInterface $order, ShipmentInterfa
}
}
}

/**
* @param OrderInterface $order
*
Expand Down
Expand Up @@ -22,7 +22,7 @@
use Sylius\Component\Shipping\Resolver\DefaultShippingMethodResolverInterface;
use Webmozart\Assert\Assert;

@trigger_error('This class is deprecated since Sylius 1.2 and will be removed in 2.0. "'.sprintf("%s", EligibleDefaultShippingMethodResolver::class).'" should be used instead.', E_USER_DEPRECATED);
@trigger_error(sprintf('This class is deprecated since Sylius 1.2 and will be removed in 2.0. "%s" should be used instead.', EligibleDefaultShippingMethodResolver::class), E_USER_DEPRECATED);

class DefaultShippingMethodResolver implements DefaultShippingMethodResolverInterface
{
Expand Down
@@ -1,5 +1,16 @@
<?php

/*
* This file is part of the Sylius package.
*
* (c) Paweł Jędrzejewski
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

declare(strict_types=1);

/*
* This file is part of the Sylius package.
*
Expand Down
Expand Up @@ -14,10 +14,6 @@
namespace spec\Sylius\Component\Core\Resolver;

use PhpSpec\ObjectBehavior;
use Prophecy\Argument;
use Sylius\Component\Addressing\Matcher\ZoneMatcherInterface;
use Sylius\Component\Addressing\Model\ZoneInterface;
use Sylius\Component\Core\Model\AddressInterface;
use Sylius\Component\Core\Model\ChannelInterface;
use Sylius\Component\Core\Model\OrderInterface;
use Sylius\Component\Core\Model\ShipmentInterface;
Expand Down
@@ -1,5 +1,16 @@
<?php

/*
* This file is part of the Sylius package.
*
* (c) Paweł Jędrzejewski
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

declare(strict_types=1);

/*
* This file is part of the Sylius package.
*
Expand Down

0 comments on commit f507fb5

Please sign in to comment.