@@ -24,19 +24,19 @@ discard block |
||
24 | 24 | public function getDefaultConfig() |
25 | 25 | { |
26 | 26 | return [ |
27 | - 'db_path' => __DIR__ . '/../../../../cache/test.sqlite', |
|
27 | + 'db_path' => __DIR__.'/../../../../cache/test.sqlite', |
|
28 | 28 | ]; |
29 | 29 | } |
30 | 30 | |
31 | 31 | public function load(Container $container) |
32 | 32 | { |
33 | - $container->register('entity_manager', function (Container $container) { |
|
33 | + $container->register('entity_manager', function(Container $container) { |
|
34 | 34 | $dbParams = [ |
35 | 35 | 'driver' => 'pdo_sqlite', |
36 | 36 | 'path' => $container->getParameter('db_path'), |
37 | 37 | ]; |
38 | 38 | $paths = [ |
39 | - __DIR__ . '/mappings', |
|
39 | + __DIR__.'/mappings', |
|
40 | 40 | ]; |
41 | 41 | $config = Setup::createXMLMetadataConfiguration($paths, true); |
42 | 42 | $manager = EntityManager::create($dbParams, $config); |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | return $manager; |
45 | 45 | }); |
46 | 46 | |
47 | - $container->register('psi_object_agent.doctrine_orm', function (Container $container) { |
|
47 | + $container->register('psi_object_agent.doctrine_orm', function(Container $container) { |
|
48 | 48 | return new OrmAgent($container->get('entity_manager')); |
49 | 49 | }); |
50 | 50 | } |
@@ -94,21 +94,21 @@ discard block |
||
94 | 94 | [ |
95 | 95 | 'null', |
96 | 96 | null, |
97 | - function ($expr) { |
|
97 | + function($expr) { |
|
98 | 98 | $this->assertEquals('title IS NULL', $expr); |
99 | 99 | }, |
100 | 100 | ], |
101 | 101 | [ |
102 | 102 | 'not_null', |
103 | 103 | null, |
104 | - function ($expr) { |
|
104 | + function($expr) { |
|
105 | 105 | $this->assertEquals('title IS NOT NULL', $expr); |
106 | 106 | }, |
107 | 107 | ], |
108 | 108 | [ |
109 | 109 | 'in', |
110 | 110 | [1, 2, 3], |
111 | - function ($expr) { |
|
111 | + function($expr) { |
|
112 | 112 | $this->assertInstanceOf(Func::class, $expr); |
113 | 113 | $this->assertEquals('title IN', $expr->getName()); |
114 | 114 | }, |
@@ -116,7 +116,7 @@ discard block |
||
116 | 116 | [ |
117 | 117 | 'nin', |
118 | 118 | [1, 2, 3], |
119 | - function ($expr) { |
|
119 | + function($expr) { |
|
120 | 120 | $this->assertInstanceOf(Func::class, $expr); |
121 | 121 | $this->assertEquals('title NOT IN', $expr->getName()); |
122 | 122 | }, |