@@ -109,7 +109,7 @@ |
||
109 | 109 | { |
110 | 110 | $cacheDriver = static::getCacheDriver( |
111 | 111 | $options['cache_driver'], |
112 | - $options['cache_namespace'] ?: 'orm_dc2_' . sha1($options['proxy_path'] ?: sys_get_temp_dir()) . '_' |
|
112 | + $options['cache_namespace'] ?: 'orm_dc2_'.sha1($options['proxy_path'] ?: sys_get_temp_dir()).'_' |
|
113 | 113 | ); |
114 | 114 | |
115 | 115 | $config = new Configuration(); |
@@ -96,7 +96,7 @@ discard block |
||
96 | 96 | { |
97 | 97 | $cacheDriver = static::getCacheDriver( |
98 | 98 | $options['cache_driver'], |
99 | - $options['cache_namespace'] ?: 'odm_dc2_' . sha1($options['proxy_path'] ?: sys_get_temp_dir()) . '_' |
|
99 | + $options['cache_namespace'] ?: 'odm_dc2_'.sha1($options['proxy_path'] ?: sys_get_temp_dir()).'_' |
|
100 | 100 | ); |
101 | 101 | |
102 | 102 | $config = new Configuration(); |
@@ -221,7 +221,7 @@ discard block |
||
221 | 221 | break; |
222 | 222 | |
223 | 223 | default: |
224 | - throw new \InvalidArgumentException('Invalid argument: ' . $connection); |
|
224 | + throw new \InvalidArgumentException('Invalid argument: '.$connection); |
|
225 | 225 | } |
226 | 226 | |
227 | 227 | return $connection; |
@@ -60,7 +60,7 @@ |
||
60 | 60 | throw new \InvalidArgumentException('Cache Driver provided is not valid'); |
61 | 61 | } |
62 | 62 | |
63 | - $cacheDriver->setNamespace(trim($cacheNamespace) !== '' ? trim($cacheNamespace) : 'dc2_' . sha1(time()) . '_'); |
|
63 | + $cacheDriver->setNamespace(trim($cacheNamespace) !== '' ? trim($cacheNamespace) : 'dc2_'.sha1(time()).'_'); |
|
64 | 64 | |
65 | 65 | return $cacheDriver; |
66 | 66 | } |
@@ -37,9 +37,9 @@ discard block |
||
37 | 37 | public function testNoMetadata() |
38 | 38 | { |
39 | 39 | $options = [ |
40 | - 'annotation_files' => [dirname(__DIR__) . '/files/fakeAnnotationFile.php'], |
|
40 | + 'annotation_files' => [dirname(__DIR__).'/files/fakeAnnotationFile.php'], |
|
41 | 41 | 'annotation_namespaces' => ['\Jgut\Slim\Doctrine'], |
42 | - 'annotation_autoloaders' => [function () { |
|
42 | + 'annotation_autoloaders' => [function() { |
|
43 | 43 | }], |
44 | 44 | ]; |
45 | 45 | |
@@ -57,7 +57,7 @@ discard block |
||
57 | 57 | 'proxies_namespace' => 'myNamespace\Proxies', |
58 | 58 | 'auto_generate_proxies' => AbstractProxyFactory::AUTOGENERATE_ALWAYS, |
59 | 59 | 'hydrators_namespace' => 'myNamespace\Hydrators', |
60 | - 'logger_callable' => function () { |
|
60 | + 'logger_callable' => function() { |
|
61 | 61 | }, |
62 | 62 | ]; |
63 | 63 | |
@@ -76,7 +76,7 @@ discard block |
||
76 | 76 | 'proxies_namespace' => 'myNamespace\Proxies', |
77 | 77 | 'auto_generate_proxies' => AbstractProxyFactory::AUTOGENERATE_ALWAYS, |
78 | 78 | 'hydrators_namespace' => 'myNamespace\Hydrators', |
79 | - 'logger_callable' => function () { |
|
79 | + 'logger_callable' => function() { |
|
80 | 80 | }, |
81 | 81 | 'event_manager' => new EventManager() |
82 | 82 | ]; |
@@ -100,7 +100,7 @@ discard block |
||
100 | 100 | 'connection' => [ |
101 | 101 | 'server' => 'mongodb://localhost:27017', |
102 | 102 | ], |
103 | - 'xml_paths' => [dirname(__DIR__) . '/files/fakeAnnotationFile.php'], |
|
103 | + 'xml_paths' => [dirname(__DIR__).'/files/fakeAnnotationFile.php'], |
|
104 | 104 | ]; |
105 | 105 | |
106 | 106 | self::assertInstanceOf('\Doctrine\ODM\MongoDB\DocumentManager', DocumentManagerBuilder::build($options)); |
@@ -112,7 +112,7 @@ discard block |
||
112 | 112 | 'connection' => [ |
113 | 113 | 'server' => 'mongodb://localhost:27017', |
114 | 114 | ], |
115 | - 'yaml_paths' => [dirname(__DIR__) . '/files/fakeAnnotationFile.php'], |
|
115 | + 'yaml_paths' => [dirname(__DIR__).'/files/fakeAnnotationFile.php'], |
|
116 | 116 | ]; |
117 | 117 | |
118 | 118 | self::assertInstanceOf('\Doctrine\ODM\MongoDB\DocumentManager', DocumentManagerBuilder::build($options)); |
@@ -124,7 +124,7 @@ discard block |
||
124 | 124 | 'connection' => [ |
125 | 125 | 'server' => 'mongodb://localhost:27017', |
126 | 126 | ], |
127 | - 'php_paths' => [dirname(__DIR__) . '/files/fakeAnnotationFile.php'], |
|
127 | + 'php_paths' => [dirname(__DIR__).'/files/fakeAnnotationFile.php'], |
|
128 | 128 | ]; |
129 | 129 | |
130 | 130 | self::assertInstanceOf('\Doctrine\ODM\MongoDB\DocumentManager', DocumentManagerBuilder::build($options)); |