Passed
Push — master ( 0b7a94...36846f )
by Dominik
02:37
created
src/DoctrineCacheServiceProvider.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
      */
45 45
     private function getOrmCacheLocatorDefinition(Container $container): callable
46 46
     {
47
-        return $container->protect(function (string $key, array $options) use ($container) {
47
+        return $container->protect(function(string $key, array $options) use ($container) {
48 48
             $cacheInstanceKey = 'orm.cache.instances.'.$key;
49 49
             if (isset($container[$cacheInstanceKey])) {
50 50
                 return $container[$cacheInstanceKey];
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
      */
75 75
     private function getOrmCacheFactoryDefinition(Container $container): callable
76 76
     {
77
-        return $container->protect(function (string $driver, array $options) use ($container) {
77
+        return $container->protect(function(string $driver, array $options) use ($container) {
78 78
             $cacheFactoryKey = 'doctrine.cache.provider.factory.'.$driver;
79 79
             if (!isset($container[$cacheFactoryKey])) {
80 80
                 throw new \RuntimeException(
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
      */
94 94
     private function getOrmCacheFactoryApcuDefinition(Container $container): callable
95 95
     {
96
-        return $container->protect(function () use ($container) {
96
+        return $container->protect(function() use ($container) {
97 97
             return new ApcuCache();
98 98
         });
99 99
     }
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
      */
106 106
     private function getOrmCacheFactoryArrayDefinition(Container $container): callable
107 107
     {
108
-        return $container->protect(function () use ($container) {
108
+        return $container->protect(function() use ($container) {
109 109
             return new ArrayCache();
110 110
         });
111 111
     }
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
      */
118 118
     private function getOrmCacheFactoryFilesystemDefinition(Container $container): callable
119 119
     {
120
-        return $container->protect(function (array $options) {
120
+        return $container->protect(function(array $options) {
121 121
             if (empty($options['path'])) {
122 122
                 throw new \RuntimeException('FilesystemCache path not defined');
123 123
             }
@@ -138,7 +138,7 @@  discard block
 block discarded – undo
138 138
      */
139 139
     private function getOrmCacheFactoryMemcachedDefinition(Container $container): callable
140 140
     {
141
-        return $container->protect(function (array $options) use ($container) {
141
+        return $container->protect(function(array $options) use ($container) {
142 142
             if (empty($options['host']) || empty($options['port'])) {
143 143
                 throw new \RuntimeException('Host and port options need to be specified for memcached cache');
144 144
             }
@@ -160,7 +160,7 @@  discard block
 block discarded – undo
160 160
      */
161 161
     private function getOrmCacheFactoryRedisDefinition(Container $container): callable
162 162
     {
163
-        return $container->protect(function (array $options) use ($container) {
163
+        return $container->protect(function(array $options) use ($container) {
164 164
             if (empty($options['host']) || empty($options['port'])) {
165 165
                 throw new \RuntimeException('Host and port options need to be specified for redis cache');
166 166
             }
@@ -186,7 +186,7 @@  discard block
 block discarded – undo
186 186
      */
187 187
     private function getOrmCacheFactoryXCacheDefinition(Container $container): callable
188 188
     {
189
-        return $container->protect(function () use ($container) {
189
+        return $container->protect(function() use ($container) {
190 190
             return new XcacheCache();
191 191
         });
192 192
     }
Please login to merge, or discard this patch.