@@ -48,7 +48,7 @@ |
||
| 48 | 48 | 'form' => [ |
| 49 | 49 | 'default' => BookTranslationType::class, |
| 50 | 50 | ], |
| 51 | - ], |
|
| 51 | + ], |
|
| 52 | 52 | ], |
| 53 | 53 | ], |
| 54 | 54 | ], |
@@ -51,13 +51,13 @@ |
||
| 51 | 51 | |
| 52 | 52 | foreach ($securityRoles as $securityRole) { |
| 53 | 53 | if (!$user->hasRole($securityRole)) { |
| 54 | - $output->writeln(sprintf('<error>User "%s" didn\'t have "%s" Security role.</error>', (string)$user, $securityRole)); |
|
| 54 | + $output->writeln(sprintf('<error>User "%s" didn\'t have "%s" Security role.</error>', (string) $user, $securityRole)); |
|
| 55 | 55 | $error = true; |
| 56 | 56 | continue; |
| 57 | 57 | } |
| 58 | 58 | |
| 59 | 59 | $user->removeRole($securityRole); |
| 60 | - $output->writeln(sprintf('Security role <comment>%s</comment> has been removed from user <comment>%s</comment>', $securityRole, (string)$user)); |
|
| 60 | + $output->writeln(sprintf('Security role <comment>%s</comment> has been removed from user <comment>%s</comment>', $securityRole, (string) $user)); |
|
| 61 | 61 | } |
| 62 | 62 | |
| 63 | 63 | if (!$error) { |
@@ -30,7 +30,7 @@ |
||
| 30 | 30 | ->setDescription('Initialize default permissions & roles in the application.') |
| 31 | 31 | ->setHelp(<<<EOT |
| 32 | 32 | The <info>%command.name%</info> command initializes default RBAC setup. |
| 33 | -EOT |
|
| 33 | +eot |
|
| 34 | 34 | ) |
| 35 | 35 | ; |
| 36 | 36 | } |
@@ -232,7 +232,7 @@ |
||
| 232 | 232 | Assert::eq( |
| 233 | 233 | 1, |
| 234 | 234 | $this->updatePage->countMembers(), |
| 235 | - sprintf('Zone %s should have only %s zone member',$zone->getName(), $zoneMember->getCode()) |
|
| 235 | + sprintf('Zone %s should have only %s zone member', $zone->getName(), $zoneMember->getCode()) |
|
| 236 | 236 | ); |
| 237 | 237 | } |
| 238 | 238 | |
@@ -200,7 +200,7 @@ |
||
| 200 | 200 | */ |
| 201 | 201 | public function iChangeExchangeRateTo($exchangeRate) |
| 202 | 202 | { |
| 203 | - $this->updatePage->changeExchangeRate($exchangeRate); |
|
| 203 | + $this->updatePage->changeExchangeRate($exchangeRate); |
|
| 204 | 204 | } |
| 205 | 205 | |
| 206 | 206 | /** |
@@ -69,7 +69,7 @@ |
||
| 69 | 69 | $translatable = $parent->getData(); |
| 70 | 70 | |
| 71 | 71 | foreach ($data as $locale => $translation) { |
| 72 | - if(null === $translation) { |
|
| 72 | + if (null === $translation) { |
|
| 73 | 73 | unset($data[$locale]); |
| 74 | 74 | continue; |
| 75 | 75 | } |
@@ -37,7 +37,7 @@ |
||
| 37 | 37 | public function getFunctions() |
| 38 | 38 | { |
| 39 | 39 | return [ |
| 40 | - new \Twig_SimpleFunction('sylius_settings', [$this->helper, 'getSettings']), |
|
| 40 | + new \Twig_SimpleFunction('sylius_settings', [$this->helper, 'getSettings']), |
|
| 41 | 41 | ]; |
| 42 | 42 | } |
| 43 | 43 | |
@@ -42,7 +42,7 @@ |
||
| 42 | 42 | */ |
| 43 | 43 | protected function getCodeElement() |
| 44 | 44 | { |
| 45 | - return $this->getElement('code'); |
|
| 45 | + return $this->getElement('code'); |
|
| 46 | 46 | } |
| 47 | 47 | |
| 48 | 48 | /** |
@@ -163,7 +163,7 @@ |
||
| 163 | 163 | */ |
| 164 | 164 | public function orderBy($field, $direction) |
| 165 | 165 | { |
| 166 | - $this->orderBys = [ $field => $direction ]; |
|
| 166 | + $this->orderBys = [$field => $direction]; |
|
| 167 | 167 | } |
| 168 | 168 | |
| 169 | 169 | /** |
@@ -32,7 +32,7 @@ |
||
| 32 | 32 | function it_is_initializable() |
| 33 | 33 | { |
| 34 | 34 | $this->shouldHaveType('Sylius\Component\Inventory\Operator\BackordersHandler'); |
| 35 | - } |
|
| 35 | + } |
|
| 36 | 36 | |
| 37 | 37 | function it_implements_Sylius_inventory_backorders_handler_interface() |
| 38 | 38 | { |
@@ -11,13 +11,11 @@ |
||
| 11 | 11 | |
| 12 | 12 | namespace Sylius\Bundle\GridBundle\Doctrine\PHPCRODM; |
| 13 | 13 | |
| 14 | -use Pagerfanta\Adapter\DoctrineORMAdapter; |
|
| 14 | +use Doctrine\ODM\PHPCR\Query\Builder\QueryBuilder; |
|
| 15 | +use Pagerfanta\Adapter\DoctrineODMPhpcrAdapter; |
|
| 15 | 16 | use Pagerfanta\Pagerfanta; |
| 16 | 17 | use Sylius\Component\Grid\Data\DataSourceInterface; |
| 17 | -use Sylius\Component\Grid\Data\ExpressionBuilderInterface; |
|
| 18 | 18 | use Sylius\Component\Grid\Parameters; |
| 19 | -use Doctrine\ODM\PHPCR\Query\Builder\QueryBuilder; |
|
| 20 | -use Pagerfanta\Adapter\DoctrineODMPhpcrAdapter; |
|
| 21 | 19 | |
| 22 | 20 | class DataSource implements DataSourceInterface |
| 23 | 21 | { |