Completed
Push — master ( a0c9a9...39a50b )
by Julián
02:54
created
src/EntityManagerBuilder.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -186,7 +186,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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);
Please login to merge, or discard this patch.
tests/Doctrine/EntityManagerBuilderTest.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -40,9 +40,9 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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));
Please login to merge, or discard this patch.