@@ -48,7 +48,7 @@ discard block |
||
48 | 48 | ); |
49 | 49 | |
50 | 50 | $app['arangodbs.options.initializer'] = $app->protect( |
51 | - function () use ($app) { |
|
51 | + function() use ($app) { |
|
52 | 52 | static $initialized = false; |
53 | 53 | |
54 | 54 | if ($initialized) { |
@@ -77,7 +77,7 @@ discard block |
||
77 | 77 | ); |
78 | 78 | |
79 | 79 | $app['arangodbs'] = $app->share( |
80 | - function ($app) { |
|
80 | + function($app) { |
|
81 | 81 | $app['arangodbs.options.initializer'](); |
82 | 82 | |
83 | 83 | $dbs = new \Pimple(); |
@@ -90,7 +90,7 @@ discard block |
||
90 | 90 | } |
91 | 91 | |
92 | 92 | $dbs[$name] = $dbs->share( |
93 | - function () use ($config) { |
|
93 | + function() use ($config) { |
|
94 | 94 | return new Connection($config->getAll()); |
95 | 95 | } |
96 | 96 | ); |
@@ -101,7 +101,7 @@ discard block |
||
101 | 101 | ); |
102 | 102 | |
103 | 103 | $app['arangodb'] = $app->share( |
104 | - function ($app) { |
|
104 | + function($app) { |
|
105 | 105 | $dbs = $app['arangodbs']; |
106 | 106 | |
107 | 107 | return $dbs[$app['arangodbs.default']]; |
@@ -109,7 +109,7 @@ discard block |
||
109 | 109 | ); |
110 | 110 | |
111 | 111 | $app['arangodbs.config'] = $app->share( |
112 | - function ($app) { |
|
112 | + function($app) { |
|
113 | 113 | $app['arangodbs.options.initializer'](); |
114 | 114 | |
115 | 115 | $configs = new \Pimple(); |
@@ -122,7 +122,7 @@ discard block |
||
122 | 122 | ); |
123 | 123 | |
124 | 124 | $app['arangodb.config'] = $app->share( |
125 | - function ($app) { |
|
125 | + function($app) { |
|
126 | 126 | $dbs = $app['arangodbs.config']; |
127 | 127 | |
128 | 128 | return $dbs[$app['arangodbs.default']]; |
@@ -146,7 +146,7 @@ discard block |
||
146 | 146 | protected function collectionManagement(Application $app) |
147 | 147 | { |
148 | 148 | $app['arangodb.collection'] = $app->protect( |
149 | - function (array $data = []) use ($app) { |
|
149 | + function(array $data = []) use ($app) { |
|
150 | 150 | if (!empty($data)) { |
151 | 151 | return Collection::createFromArray($data); |
152 | 152 | } |
@@ -156,7 +156,7 @@ discard block |
||
156 | 156 | ); |
157 | 157 | |
158 | 158 | $app['arangodb.collection_handler'] = $app->share( |
159 | - function ($app) { |
|
159 | + function($app) { |
|
160 | 160 | $db = $app['arangodb']; |
161 | 161 | |
162 | 162 | return new CollectionHandler($db); |
@@ -164,7 +164,7 @@ discard block |
||
164 | 164 | ); |
165 | 165 | |
166 | 166 | $app['arangodbs.collection_handler'] = $app->share( |
167 | - function ($app) { |
|
167 | + function($app) { |
|
168 | 168 | $app['arangodbs.options.initializer'](); |
169 | 169 | |
170 | 170 | $handlers = new \Pimple(); |
@@ -180,7 +180,7 @@ discard block |
||
180 | 180 | protected function documentManagement(Application $app) |
181 | 181 | { |
182 | 182 | $app['arangodb.document'] = $app->protect( |
183 | - function (array $data = []) use ($app) { |
|
183 | + function(array $data = []) use ($app) { |
|
184 | 184 | if (!empty($data)) { |
185 | 185 | return Document::createFromArray($data); |
186 | 186 | } |
@@ -189,7 +189,7 @@ discard block |
||
189 | 189 | ); |
190 | 190 | |
191 | 191 | $app['arangodb.document_handler'] = $app->share( |
192 | - function ($app) { |
|
192 | + function($app) { |
|
193 | 193 | $db = $app['arangodb']; |
194 | 194 | |
195 | 195 | return new DocumentHandler($db); |
@@ -197,7 +197,7 @@ discard block |
||
197 | 197 | ); |
198 | 198 | |
199 | 199 | $app['arangodbs.document_handler'] = $app->share( |
200 | - function ($app) { |
|
200 | + function($app) { |
|
201 | 201 | $app['arangodbs.options.initializer'](); |
202 | 202 | |
203 | 203 | $handlers = new \Pimple(); |
@@ -213,7 +213,7 @@ discard block |
||
213 | 213 | protected function edgeManagement(Application $app) |
214 | 214 | { |
215 | 215 | $app['arangodb.edge'] = $app->protect( |
216 | - function (array $data = []) use ($app) { |
|
216 | + function(array $data = []) use ($app) { |
|
217 | 217 | if (!empty($data)) { |
218 | 218 | return Edge::createFromArray($data); |
219 | 219 | } |
@@ -223,7 +223,7 @@ discard block |
||
223 | 223 | ); |
224 | 224 | |
225 | 225 | $app['arangodb.edge_handler'] = $app->share( |
226 | - function ($app) { |
|
226 | + function($app) { |
|
227 | 227 | $db = $app['arangodb']; |
228 | 228 | |
229 | 229 | return new EdgeHandler($db); |
@@ -231,7 +231,7 @@ discard block |
||
231 | 231 | ); |
232 | 232 | |
233 | 233 | $app['arangodbs.edge_handler'] = $app->share( |
234 | - function ($app) { |
|
234 | + function($app) { |
|
235 | 235 | $app['arangodbs.options.initializer'](); |
236 | 236 | |
237 | 237 | $handlers = new \Pimple(); |
@@ -247,7 +247,7 @@ discard block |
||
247 | 247 | protected function graphManagement(Application $app) |
248 | 248 | { |
249 | 249 | $app['arangodb.graph'] = $app->protect( |
250 | - function (array $data = []) use ($app) { |
|
250 | + function(array $data = []) use ($app) { |
|
251 | 251 | if (!empty($data)) { |
252 | 252 | return Graph::createFromArray($data); |
253 | 253 | } |
@@ -257,7 +257,7 @@ discard block |
||
257 | 257 | ); |
258 | 258 | |
259 | 259 | $app['arangodb.graph_handler'] = $app->share( |
260 | - function ($app) { |
|
260 | + function($app) { |
|
261 | 261 | $db = $app['arangodb']; |
262 | 262 | |
263 | 263 | return new GraphHandler($db); |
@@ -265,7 +265,7 @@ discard block |
||
265 | 265 | ); |
266 | 266 | |
267 | 267 | $app['arangodbs.graph_handler'] = $app->share( |
268 | - function ($app) { |
|
268 | + function($app) { |
|
269 | 269 | $app['arangodbs.options.initializer'](); |
270 | 270 | |
271 | 271 | $handlers = new \Pimple(); |
@@ -281,7 +281,7 @@ discard block |
||
281 | 281 | protected function statementManagement(Application $app) |
282 | 282 | { |
283 | 283 | $app['arangodb.statement'] = $app->protect( |
284 | - function (array $query) use ($app) { |
|
284 | + function(array $query) use ($app) { |
|
285 | 285 | $db = $app['arangodb']; |
286 | 286 | |
287 | 287 | $statement = new Statement($db, $query); |
@@ -291,7 +291,7 @@ discard block |
||
291 | 291 | ); |
292 | 292 | |
293 | 293 | $app['arangodbs.statement'] = $app->protect( |
294 | - function (array $query) use ($app) { |
|
294 | + function(array $query) use ($app) { |
|
295 | 295 | $app['arangodbs.options.initializer'](); |
296 | 296 | |
297 | 297 | $handlers = new \Pimple(); |