Completed
Push — master ( fb2978...5f0b7c )
by Julián
09:28 queued 05:22
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.
src/EntityManagerBuilder.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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']);
Please login to merge, or discard this patch.
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,10 +1,10 @@
 block discarded – undo
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';
Please login to merge, or discard this patch.
tests/Doctrine/EntityManagerBuilderTest.php 2 patches
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,10 +1,10 @@
 block discarded – undo
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';
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 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
 
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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));
Please login to merge, or discard this patch.
src/DocumentManagerBuilder.php 4 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
54 54
      *
55 55
      * @throws \InvalidArgumentException
56 56
      *
57
-     * @return \Doctrine\ORM\EntityManager
57
+     * @return DocumentManager
58 58
      */
59 59
     public static function build(array $options)
60 60
     {
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -141,7 +141,7 @@  discard block
 block discarded – undo
141 141
 
142 142
         $cache = static::getCacheDriver($options);
143 143
         if ($cache instanceof CacheProvider) {
144
-            $cache->setNamespace('odm_dc2_' . md5($proxyDir) . '_');
144
+            $cache->setNamespace('odm_dc2_'.md5($proxyDir).'_');
145 145
         }
146 146
 
147 147
         $config = new Configuration();
@@ -205,7 +205,7 @@  discard block
 block discarded – undo
205 205
      * @param \Doctrine\ODM\MongoDB\Configuration $config
206 206
      * @param array                               $options
207 207
      */
208
-    protected static function setupProxy(Configuration &$config, array $options)
208
+    protected static function setupProxy(Configuration&$config, array $options)
209 209
     {
210 210
         if ($options['proxies_namespace']) {
211 211
             $config->setProxyNamespace($options['proxies_namespace']);
@@ -220,7 +220,7 @@  discard block
 block discarded – undo
220 220
      * @param \Doctrine\ODM\MongoDB\Configuration $config
221 221
      * @param array                               $options
222 222
      */
223
-    protected static function setupHydrator(Configuration &$config, array $options)
223
+    protected static function setupHydrator(Configuration&$config, array $options)
224 224
     {
225 225
         if ($options['hydrators_namespace']) {
226 226
             $config->setHydratorNamespace($options['hydrators_namespace']);
@@ -233,7 +233,7 @@  discard block
 block discarded – undo
233 233
      * @param \Doctrine\ODM\MongoDB\Configuration $config
234 234
      * @param array                               $options
235 235
      */
236
-    protected static function setupLogger(Configuration &$config, array $options)
236
+    protected static function setupLogger(Configuration&$config, array $options)
237 237
     {
238 238
         if ($options['logger_callable']) {
239 239
             $config->setLoggerCallable($options['logger_callable']);
Please login to merge, or discard this patch.
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,6 @@  discard block
 block discarded – undo
9 9
 
10 10
 namespace Jgut\Slim\Doctrine;
11 11
 
12
-use InvalidArgumentException;
13 12
 use Doctrine\Common\Annotations\AnnotationRegistry;
14 13
 use Doctrine\Common\Cache\Cache;
15 14
 use Doctrine\Common\Proxy\AbstractProxyFactory;
@@ -19,6 +18,7 @@  discard block
 block discarded – undo
19 18
 use Doctrine\ODM\MongoDB\Mapping\Driver\AnnotationDriver;
20 19
 use Doctrine\ODM\MongoDB\Mapping\Driver\XmlDriver;
21 20
 use Doctrine\ODM\MongoDB\Mapping\Driver\YamlDriver;
21
+use InvalidArgumentException;
22 22
 
23 23
 /**
24 24
  * Doctrine Document Manager service builder.
Please login to merge, or discard this patch.
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,10 +1,10 @@
 block discarded – undo
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';
Please login to merge, or discard this patch.
tests/Doctrine/DocumentManagerBuilderTest.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
 
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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));
Please login to merge, or discard this patch.