@@ -6,4 +6,4 @@ |
||
6 | 6 | * @license https://raw.githubusercontent.com/juliangut/slim-doctrine/master/LICENSE |
7 | 7 | */ |
8 | 8 | |
9 | -require_once __DIR__ . '/../vendor/autoload.php'; |
|
9 | +require_once __DIR__.'/../vendor/autoload.php'; |
@@ -1,10 +1,10 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Slim3 Doctrine integration (https://github.com/juliangut/slim-doctrine) |
|
4 | - * |
|
5 | - * @link https://github.com/juliangut/slim-doctrine for the canonical source repository |
|
6 | - * |
|
7 | - * @license https://raw.githubusercontent.com/juliangut/slim-doctrine/master/LICENSE |
|
8 | - */ |
|
3 | + * Slim3 Doctrine integration (https://github.com/juliangut/slim-doctrine) |
|
4 | + * |
|
5 | + * @link https://github.com/juliangut/slim-doctrine for the canonical source repository |
|
6 | + * |
|
7 | + * @license https://raw.githubusercontent.com/juliangut/slim-doctrine/master/LICENSE |
|
8 | + */ |
|
9 | 9 | |
10 | 10 | require_once __DIR__ . '/../vendor/autoload.php'; |
@@ -1,10 +1,10 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Slim3 Doctrine integration (https://github.com/juliangut/slim-doctrine) |
|
4 | - * |
|
5 | - * @link https://github.com/juliangut/slim-doctrine for the canonical source repository |
|
6 | - * |
|
7 | - * @license https://raw.githubusercontent.com/juliangut/slim-doctrine/master/LICENSE |
|
8 | - */ |
|
3 | + * Slim3 Doctrine integration (https://github.com/juliangut/slim-doctrine) |
|
4 | + * |
|
5 | + * @link https://github.com/juliangut/slim-doctrine for the canonical source repository |
|
6 | + * |
|
7 | + * @license https://raw.githubusercontent.com/juliangut/slim-doctrine/master/LICENSE |
|
8 | + */ |
|
9 | 9 | |
10 | 10 | require_once __DIR__ . '/../vendor/autoload.php'; |
@@ -40,9 +40,9 @@ discard block |
||
40 | 40 | public function testNoMetadata() |
41 | 41 | { |
42 | 42 | $options = [ |
43 | - 'annotation_files' => [dirname(__DIR__) . '/files/fakeAnnotationFile.php'], |
|
43 | + 'annotation_files' => [dirname(__DIR__).'/files/fakeAnnotationFile.php'], |
|
44 | 44 | 'annotation_namespaces' => ['\Jgut\Slim\Doctrine'], |
45 | - 'annotation_autoloaders' => [function () { |
|
45 | + 'annotation_autoloaders' => [function() { |
|
46 | 46 | }], |
47 | 47 | ]; |
48 | 48 | |
@@ -131,7 +131,7 @@ discard block |
||
131 | 131 | 'driver' => 'pdo_sqlite', |
132 | 132 | 'memory' => true, |
133 | 133 | ], |
134 | - 'xml_paths' => [dirname(__DIR__) . '/files/fakeAnnotationFile.php'], |
|
134 | + 'xml_paths' => [dirname(__DIR__).'/files/fakeAnnotationFile.php'], |
|
135 | 135 | ]; |
136 | 136 | |
137 | 137 | $this->assertInstanceOf('\Doctrine\ORM\EntityManager', EntityManagerBuilder::build($options)); |
@@ -148,7 +148,7 @@ discard block |
||
148 | 148 | 'driver' => 'pdo_sqlite', |
149 | 149 | 'memory' => true, |
150 | 150 | ], |
151 | - 'yaml_paths' => [dirname(__DIR__) . '/files/fakeAnnotationFile.php'], |
|
151 | + 'yaml_paths' => [dirname(__DIR__).'/files/fakeAnnotationFile.php'], |
|
152 | 152 | ]; |
153 | 153 | |
154 | 154 | $this->assertInstanceOf('\Doctrine\ORM\EntityManager', EntityManagerBuilder::build($options)); |
@@ -165,7 +165,7 @@ discard block |
||
165 | 165 | 'driver' => 'pdo_sqlite', |
166 | 166 | 'memory' => true, |
167 | 167 | ], |
168 | - 'php_paths' => [dirname(__DIR__) . '/files/fakeAnnotationFile.php'], |
|
168 | + 'php_paths' => [dirname(__DIR__).'/files/fakeAnnotationFile.php'], |
|
169 | 169 | ]; |
170 | 170 | |
171 | 171 | $this->assertInstanceOf('\Doctrine\ORM\EntityManager', EntityManagerBuilder::build($options)); |
@@ -1,10 +1,10 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Slim3 Doctrine integration (https://github.com/juliangut/slim-doctrine) |
|
4 | - * |
|
5 | - * @link https://github.com/juliangut/slim-doctrine for the canonical source repository |
|
6 | - * |
|
7 | - * @license https://raw.githubusercontent.com/juliangut/slim-doctrine/master/LICENSE |
|
8 | - */ |
|
3 | + * Slim3 Doctrine integration (https://github.com/juliangut/slim-doctrine) |
|
4 | + * |
|
5 | + * @link https://github.com/juliangut/slim-doctrine for the canonical source repository |
|
6 | + * |
|
7 | + * @license https://raw.githubusercontent.com/juliangut/slim-doctrine/master/LICENSE |
|
8 | + */ |
|
9 | 9 | |
10 | 10 | require_once __DIR__ . '/../vendor/autoload.php'; |
@@ -186,7 +186,7 @@ discard block |
||
186 | 186 | * |
187 | 187 | * @throws \InvalidArgumentException |
188 | 188 | */ |
189 | - protected static function setupNamingStrategy(Configuration &$config, array $options) |
|
189 | + protected static function setupNamingStrategy(Configuration&$config, array $options) |
|
190 | 190 | { |
191 | 191 | $namingStrategy = $options['naming_strategy'] ?: new UnderscoreNamingStrategy(CASE_LOWER); |
192 | 192 | if (!$namingStrategy instanceof NamingStrategy) { |
@@ -204,7 +204,7 @@ discard block |
||
204 | 204 | * |
205 | 205 | * @throws \InvalidArgumentException |
206 | 206 | */ |
207 | - protected static function setupQuoteStrategy(Configuration &$config, array $options) |
|
207 | + protected static function setupQuoteStrategy(Configuration&$config, array $options) |
|
208 | 208 | { |
209 | 209 | $quoteStrategy = $options['quote_strategy'] ?: new DefaultQuoteStrategy(); |
210 | 210 | if (!$quoteStrategy instanceof QuoteStrategy) { |
@@ -220,7 +220,7 @@ discard block |
||
220 | 220 | * @param \Doctrine\ORM\Configuration $config |
221 | 221 | * @param array $options |
222 | 222 | */ |
223 | - protected static function setupProxy(Configuration &$config, array $options) |
|
223 | + protected static function setupProxy(Configuration&$config, array $options) |
|
224 | 224 | { |
225 | 225 | $proxiesNamespace = $options['proxies_namespace'] ? $options['proxies_namespace'] : 'DoctrineORMProxy'; |
226 | 226 | $config->setProxyNamespace((string) $proxiesNamespace); |
@@ -234,7 +234,7 @@ discard block |
||
234 | 234 | * @param \Doctrine\ORM\Configuration $config |
235 | 235 | * @param array $options |
236 | 236 | */ |
237 | - protected static function setupSQLLogger(Configuration &$config, array $options) |
|
237 | + protected static function setupSQLLogger(Configuration&$config, array $options) |
|
238 | 238 | { |
239 | 239 | if ($options['sql_logger']) { |
240 | 240 | $config->setSQLLogger($options['sql_logger']); |
@@ -247,7 +247,7 @@ discard block |
||
247 | 247 | * @param \Doctrine\ORM\Configuration $config |
248 | 248 | * @param array $options |
249 | 249 | */ |
250 | - protected static function setupCustomDQLFunctions(Configuration &$config, array $options) |
|
250 | + protected static function setupCustomDQLFunctions(Configuration&$config, array $options) |
|
251 | 251 | { |
252 | 252 | $config->setCustomStringFunctions($options['string_functions']); |
253 | 253 | |
@@ -262,7 +262,7 @@ discard block |
||
262 | 262 | * @param \Doctrine\DBAL\Connection $connection |
263 | 263 | * @param array $options |
264 | 264 | */ |
265 | - protected static function setupCustomDBALTypes(Connection &$connection, array $options) |
|
265 | + protected static function setupCustomDBALTypes(Connection&$connection, array $options) |
|
266 | 266 | { |
267 | 267 | foreach ($options['custom_types'] as $name => $class) { |
268 | 268 | Type::addType($name, $class); |
@@ -1,10 +1,10 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Slim3 Doctrine integration (https://github.com/juliangut/slim-doctrine) |
|
4 | - * |
|
5 | - * @link https://github.com/juliangut/slim-doctrine for the canonical source repository |
|
6 | - * |
|
7 | - * @license https://raw.githubusercontent.com/juliangut/slim-doctrine/master/LICENSE |
|
8 | - */ |
|
3 | + * Slim3 Doctrine integration (https://github.com/juliangut/slim-doctrine) |
|
4 | + * |
|
5 | + * @link https://github.com/juliangut/slim-doctrine for the canonical source repository |
|
6 | + * |
|
7 | + * @license https://raw.githubusercontent.com/juliangut/slim-doctrine/master/LICENSE |
|
8 | + */ |
|
9 | 9 | |
10 | 10 | require_once __DIR__ . '/../vendor/autoload.php'; |
@@ -40,9 +40,9 @@ discard block |
||
40 | 40 | public function testNoMetadata() |
41 | 41 | { |
42 | 42 | $options = [ |
43 | - 'annotation_files' => [dirname(__DIR__) . '/files/fakeAnnotationFile.php'], |
|
43 | + 'annotation_files' => [dirname(__DIR__).'/files/fakeAnnotationFile.php'], |
|
44 | 44 | 'annotation_namespaces' => ['\Jgut\Slim\Doctrine'], |
45 | - 'annotation_autoloaders' => [function () { |
|
45 | + 'annotation_autoloaders' => [function() { |
|
46 | 46 | }], |
47 | 47 | ]; |
48 | 48 | |
@@ -64,7 +64,7 @@ discard block |
||
64 | 64 | 'proxies_namespace' => 'myNamespace\Proxies', |
65 | 65 | 'auto_generate_proxies' => AbstractProxyFactory::AUTOGENERATE_ALWAYS, |
66 | 66 | 'hydrators_namespace' => 'myNamespace\Hydrators', |
67 | - 'logger_callable' => function () { |
|
67 | + 'logger_callable' => function() { |
|
68 | 68 | }, |
69 | 69 | ]; |
70 | 70 | |
@@ -97,7 +97,7 @@ discard block |
||
97 | 97 | 'connection' => [ |
98 | 98 | 'server' => 'mongodb://localhost:27017', |
99 | 99 | ], |
100 | - 'xml_paths' => [dirname(__DIR__) . '/files/fakeAnnotationFile.php'], |
|
100 | + 'xml_paths' => [dirname(__DIR__).'/files/fakeAnnotationFile.php'], |
|
101 | 101 | ]; |
102 | 102 | |
103 | 103 | $this->assertInstanceOf('\Doctrine\ODM\MongoDB\DocumentManager', DocumentManagerBuilder::build($options)); |
@@ -113,7 +113,7 @@ discard block |
||
113 | 113 | 'connection' => [ |
114 | 114 | 'server' => 'mongodb://localhost:27017', |
115 | 115 | ], |
116 | - 'yaml_paths' => [dirname(__DIR__) . '/files/fakeAnnotationFile.php'], |
|
116 | + 'yaml_paths' => [dirname(__DIR__).'/files/fakeAnnotationFile.php'], |
|
117 | 117 | ]; |
118 | 118 | |
119 | 119 | $this->assertInstanceOf('\Doctrine\ODM\MongoDB\DocumentManager', DocumentManagerBuilder::build($options)); |
@@ -144,7 +144,7 @@ discard block |
||
144 | 144 | |
145 | 145 | $cache = static::getCacheDriver($options); |
146 | 146 | if ($cache instanceof CacheProvider) { |
147 | - $cache->setNamespace('odm_dc2_' . md5($proxyDir) . '_'); |
|
147 | + $cache->setNamespace('odm_dc2_'.md5($proxyDir).'_'); |
|
148 | 148 | } |
149 | 149 | |
150 | 150 | $config = new Configuration(); |
@@ -208,7 +208,7 @@ discard block |
||
208 | 208 | * @param \Doctrine\ODM\MongoDB\Configuration $config |
209 | 209 | * @param array $options |
210 | 210 | */ |
211 | - protected static function setupDefaultDatabase(Configuration &$config, array $options) |
|
211 | + protected static function setupDefaultDatabase(Configuration&$config, array $options) |
|
212 | 212 | { |
213 | 213 | if ($options['default_database']) { |
214 | 214 | $config->setDefaultDB($options['default_database']); |
@@ -221,7 +221,7 @@ discard block |
||
221 | 221 | * @param \Doctrine\ODM\MongoDB\Configuration $config |
222 | 222 | * @param array $options |
223 | 223 | */ |
224 | - protected static function setupProxy(Configuration &$config, array $options) |
|
224 | + protected static function setupProxy(Configuration&$config, array $options) |
|
225 | 225 | { |
226 | 226 | if ($options['proxies_namespace']) { |
227 | 227 | $config->setProxyNamespace($options['proxies_namespace']); |
@@ -236,7 +236,7 @@ discard block |
||
236 | 236 | * @param \Doctrine\ODM\MongoDB\Configuration $config |
237 | 237 | * @param array $options |
238 | 238 | */ |
239 | - protected static function setupHydrator(Configuration &$config, array $options) |
|
239 | + protected static function setupHydrator(Configuration&$config, array $options) |
|
240 | 240 | { |
241 | 241 | if ($options['hydrators_namespace']) { |
242 | 242 | $config->setHydratorNamespace($options['hydrators_namespace']); |
@@ -249,7 +249,7 @@ discard block |
||
249 | 249 | * @param \Doctrine\ODM\MongoDB\Configuration $config |
250 | 250 | * @param array $options |
251 | 251 | */ |
252 | - protected static function setupLogger(Configuration &$config, array $options) |
|
252 | + protected static function setupLogger(Configuration&$config, array $options) |
|
253 | 253 | { |
254 | 254 | if ($options['logger_callable']) { |
255 | 255 | $config->setLoggerCallable($options['logger_callable']); |