@@ -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'; |
|
@@ -157,7 +157,7 @@ discard block |
||
| 157 | 157 | * |
| 158 | 158 | * @throws \InvalidArgumentException |
| 159 | 159 | */ |
| 160 | - protected static function setupNamingStrategy(Configuration &$config, array $options) |
|
| 160 | + protected static function setupNamingStrategy(Configuration&$config, array $options) |
|
| 161 | 161 | { |
| 162 | 162 | $namingStrategy = $options['naming_strategy'] ?: new UnderscoreNamingStrategy(CASE_LOWER); |
| 163 | 163 | if (!$namingStrategy instanceof NamingStrategy) { |
@@ -173,7 +173,7 @@ discard block |
||
| 173 | 173 | * @param \Doctrine\ORM\Configuration $config |
| 174 | 174 | * @param array $options |
| 175 | 175 | */ |
| 176 | - protected static function setupProxy(Configuration &$config, array $options) |
|
| 176 | + protected static function setupProxy(Configuration&$config, array $options) |
|
| 177 | 177 | { |
| 178 | 178 | if ($options['proxies_namespace']) { |
| 179 | 179 | $config->setProxyNamespace($options['proxies_namespace']); |
@@ -188,7 +188,7 @@ discard block |
||
| 188 | 188 | * @param \Doctrine\ORM\Configuration $config |
| 189 | 189 | * @param array $options |
| 190 | 190 | */ |
| 191 | - protected static function setupSQLLogger(Configuration &$config, array $options) |
|
| 191 | + protected static function setupSQLLogger(Configuration&$config, array $options) |
|
| 192 | 192 | { |
| 193 | 193 | if ($options['sql_logger']) { |
| 194 | 194 | $config->setSQLLogger($options['sql_logger']); |
@@ -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 | |
@@ -113,7 +113,7 @@ discard block |
||
| 113 | 113 | 'driver' => 'pdo_sqlite', |
| 114 | 114 | 'memory' => true, |
| 115 | 115 | ], |
| 116 | - 'xml_paths' => [dirname(__DIR__) . '/files/fakeAnnotationFile.php'], |
|
| 116 | + 'xml_paths' => [dirname(__DIR__).'/files/fakeAnnotationFile.php'], |
|
| 117 | 117 | ]; |
| 118 | 118 | |
| 119 | 119 | $this->assertInstanceOf('\Doctrine\ORM\EntityManager', EntityManagerBuilder::build($options)); |
@@ -130,7 +130,7 @@ discard block |
||
| 130 | 130 | 'driver' => 'pdo_sqlite', |
| 131 | 131 | 'memory' => true, |
| 132 | 132 | ], |
| 133 | - 'yaml_paths' => [dirname(__DIR__) . '/files/fakeAnnotationFile.php'], |
|
| 133 | + 'yaml_paths' => [dirname(__DIR__).'/files/fakeAnnotationFile.php'], |
|
| 134 | 134 | ]; |
| 135 | 135 | |
| 136 | 136 | $this->assertInstanceOf('\Doctrine\ORM\EntityManager', EntityManagerBuilder::build($options)); |
@@ -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']); |