Failed Conditions
Pull Request — 0.2 (#63)
by Rafael
06:05
created
src/Providers/QueueProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
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'),
Please login to merge, or discard this patch.
src/Providers/CliDispatcherProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Providers/RedisProvider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -16,10 +16,10 @@
 block discarded – undo
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
             }
Please login to merge, or discard this patch.
src/Providers/AppProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
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
         );
Please login to merge, or discard this patch.
src/Providers/ElasticProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
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()
Please login to merge, or discard this patch.
src/Providers/MailProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
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
             }
Please login to merge, or discard this patch.
src/Providers/CacheDataProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
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 = [
Please login to merge, or discard this patch.
src/Providers/PusherProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
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
         );
Please login to merge, or discard this patch.
src/Providers/FileSystemProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.