@@ -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'; |
@@ -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']); |
@@ -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 | |
@@ -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)); |