@@ -31,7 +31,7 @@ |
||
31 | 31 | |
32 | 32 | $container->setShared( |
33 | 33 | 'queue', |
34 | - function () { |
|
34 | + function() { |
|
35 | 35 | //Connect to the queue |
36 | 36 | $queue = new Beanstalk([ |
37 | 37 | 'host' => envValue('DATA_API_BEANSTALK_HOST', '127.0.0.1'), |
@@ -19,7 +19,7 @@ |
||
19 | 19 | |
20 | 20 | $container->setShared( |
21 | 21 | 'dispatcher', |
22 | - function () use ($config) { |
|
22 | + function() use ($config) { |
|
23 | 23 | $dispatcher = new Dispatcher(); |
24 | 24 | $dispatcher->setDefaultNamespace(ucfirst($config->app->namespaceName) . '\Cli\Tasks'); |
25 | 25 |
@@ -16,10 +16,10 @@ |
||
16 | 16 | { |
17 | 17 | $container->setShared( |
18 | 18 | 'redis', |
19 | - function () { |
|
19 | + function() { |
|
20 | 20 | //Connect to redis |
21 | 21 | $redis = new Redis(); |
22 | - $redis->connect(envValue('REDIS_HOST', '127.0.0.1'), (int) envValue('REDIS_PORT', 6379)); |
|
22 | + $redis->connect(envValue('REDIS_HOST', '127.0.0.1'), (int)envValue('REDIS_PORT', 6379)); |
|
23 | 23 | $redis->setOption(Redis::OPT_SERIALIZER, Redis::SERIALIZER_PHP); |
24 | 24 | return $redis; |
25 | 25 | } |
@@ -17,7 +17,7 @@ |
||
17 | 17 | |
18 | 18 | $container->setShared( |
19 | 19 | 'app', |
20 | - function () use ($config) { |
|
20 | + function() use ($config) { |
|
21 | 21 | return Apps::findFirst($config->app->id); |
22 | 22 | } |
23 | 23 | ); |
@@ -17,7 +17,7 @@ |
||
17 | 17 | |
18 | 18 | $container->setShared( |
19 | 19 | 'elastic', |
20 | - function () use ($config) { |
|
20 | + function() use ($config) { |
|
21 | 21 | $hosts = $config->elasticSearch->hosts->toArray(); |
22 | 22 | |
23 | 23 | $client = ClientBuilder::create() |
@@ -17,7 +17,7 @@ |
||
17 | 17 | |
18 | 18 | $container->setShared( |
19 | 19 | 'mail', |
20 | - function () use ($config) { |
|
20 | + function() use ($config) { |
|
21 | 21 | $mailer = new BakaMail($config->email->toArray()); |
22 | 22 | return $mailer->createMessage(); |
23 | 23 | } |
@@ -17,7 +17,7 @@ |
||
17 | 17 | { |
18 | 18 | $container->setShared( |
19 | 19 | 'cache', |
20 | - function () { |
|
20 | + function() { |
|
21 | 21 | $prefix = 'data'; |
22 | 22 | $frontAdapter = Data::class; |
23 | 23 | $frontOptions = [ |
@@ -17,7 +17,7 @@ |
||
17 | 17 | |
18 | 18 | $container->setShared( |
19 | 19 | 'pusher', |
20 | - function () use ($config) { |
|
20 | + function() use ($config) { |
|
21 | 21 | return new Pusher($config->pusher->key, $config->pusher->secret, $config->pusher->id, ['cluster' => $config->pusher->cluster, 'useTLS' => true]); |
22 | 22 | } |
23 | 23 | ); |
@@ -20,7 +20,7 @@ |
||
20 | 20 | |
21 | 21 | $container->set( |
22 | 22 | 'filesystem', |
23 | - function ($filesystem = null) use ($config, $container) { |
|
23 | + function($filesystem = null) use ($config, $container) { |
|
24 | 24 | //we ened to call it internally to avoid the test failing WTF |
25 | 25 | $app = $container->getShared('app'); |
26 | 26 |