Completed
Push — master ( 1d2070...0d420b )
by Julián
02:41
created
tests/bootstrap.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,4 +6,4 @@
 block discarded – undo
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';
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.
src/EntityManagerBuilder.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -109,7 +109,7 @@
 block discarded – undo
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();
Please login to merge, or discard this patch.
Unused Use Statements   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,11 +18,11 @@
 block discarded – undo
18 18
 use Doctrine\ORM\EntityManager;
19 19
 use Doctrine\ORM\Mapping\DefaultQuoteStrategy;
20 20
 use Doctrine\ORM\Mapping\Driver\AnnotationDriver;
21
+use Doctrine\ORM\Mapping\Driver\XmlDriver;
22
+use Doctrine\ORM\Mapping\Driver\YamlDriver;
21 23
 use Doctrine\ORM\Mapping\NamingStrategy;
22 24
 use Doctrine\ORM\Mapping\QuoteStrategy;
23 25
 use Doctrine\ORM\Mapping\UnderscoreNamingStrategy;
24
-use Doctrine\ORM\Mapping\Driver\XmlDriver;
25
-use Doctrine\ORM\Mapping\Driver\YamlDriver;
26 26
 
27 27
 /**
28 28
  * Doctrine Entity Manager service builder
Please login to merge, or discard this patch.
src/DocumentManagerBuilder.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/ObjectManagerTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
tests/Doctrine/DocumentManagerBuilderTest.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -37,9 +37,9 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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));
Please login to merge, or discard this patch.