@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | namespace Psi\Bridge\ObjectAgent\Doctrine\PhpcrOdm; |
| 6 | 6 | |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | namespace Psi\Bridge\ObjectAgent\Doctrine\PhpcrOdm; |
| 6 | 6 | |
@@ -1,6 +1,6 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | namespace Psi\Bridge\ObjectAgent\Doctrine\Orm\Tests\Functional; |
| 6 | 6 | |
@@ -15,19 +15,19 @@ discard block |
||
| 15 | 15 | public function getDefaultConfig() |
| 16 | 16 | { |
| 17 | 17 | return [ |
| 18 | - 'db_path' => __DIR__ . '/../../../../cache/test.sqlite', |
|
| 18 | + 'db_path' => __DIR__.'/../../../../cache/test.sqlite', |
|
| 19 | 19 | ]; |
| 20 | 20 | } |
| 21 | 21 | |
| 22 | 22 | public function load(Container $container) |
| 23 | 23 | { |
| 24 | - $container->register('entity_manager', function (Container $container) { |
|
| 24 | + $container->register('entity_manager', function(Container $container) { |
|
| 25 | 25 | $dbParams = [ |
| 26 | 26 | 'driver' => 'pdo_sqlite', |
| 27 | 27 | 'path' => $container->getParameter('db_path'), |
| 28 | 28 | ]; |
| 29 | 29 | $paths = [ |
| 30 | - __DIR__ . '/mappings', |
|
| 30 | + __DIR__.'/mappings', |
|
| 31 | 31 | ]; |
| 32 | 32 | $config = Setup::createXMLMetadataConfiguration($paths, true); |
| 33 | 33 | $manager = EntityManager::create($dbParams, $config); |
@@ -35,7 +35,7 @@ discard block |
||
| 35 | 35 | return $manager; |
| 36 | 36 | }); |
| 37 | 37 | |
| 38 | - $container->register('psi_object_agent.doctrine_orm', function (Container $container) { |
|
| 38 | + $container->register('psi_object_agent.doctrine_orm', function(Container $container) { |
|
| 39 | 39 | return new OrmAgent($container->get('entity_manager')); |
| 40 | 40 | }); |
| 41 | 41 | } |
@@ -1,6 +1,6 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | namespace Psi\Bridge\ObjectAgent\Doctrine\Orm\Tests\Functional; |
| 6 | 6 | |
@@ -96,21 +96,21 @@ discard block |
||
| 96 | 96 | [ |
| 97 | 97 | 'null', |
| 98 | 98 | null, |
| 99 | - function ($expr) { |
|
| 99 | + function($expr) { |
|
| 100 | 100 | $this->assertEquals('a.title IS NULL', $expr); |
| 101 | 101 | }, |
| 102 | 102 | ], |
| 103 | 103 | [ |
| 104 | 104 | 'not_null', |
| 105 | 105 | null, |
| 106 | - function ($expr) { |
|
| 106 | + function($expr) { |
|
| 107 | 107 | $this->assertEquals('a.title IS NOT NULL', $expr); |
| 108 | 108 | }, |
| 109 | 109 | ], |
| 110 | 110 | [ |
| 111 | 111 | 'in', |
| 112 | 112 | [1, 2, 3], |
| 113 | - function ($expr) { |
|
| 113 | + function($expr) { |
|
| 114 | 114 | $this->assertInstanceOf(Func::class, $expr); |
| 115 | 115 | $this->assertEquals('a.title IN', $expr->getName()); |
| 116 | 116 | }, |
@@ -118,7 +118,7 @@ discard block |
||
| 118 | 118 | [ |
| 119 | 119 | 'nin', |
| 120 | 120 | [1, 2, 3], |
| 121 | - function ($expr) { |
|
| 121 | + function($expr) { |
|
| 122 | 122 | $this->assertInstanceOf(Func::class, $expr); |
| 123 | 123 | $this->assertEquals('a.title NOT IN', $expr->getName()); |
| 124 | 124 | }, |