Failed Conditions
Pull Request — 0.2 (#63)
by Rafael
06:05
created
src/Providers/SessionProvider.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
             'session',
22
-            function () use ($config) {
22
+            function() use ($config) {
23 23
                 $backOptions = [
24 24
                     'servers' => [
25 25
                         0 => [
Please login to merge, or discard this patch.
src/Providers/ModelsMetadataProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
 
23 23
         $container->setShared(
24 24
             'modelsMetadata',
25
-            function () use ($config) {
25
+            function() use ($config) {
26 26
                 if (strtolower($config->app->env) != Flags::PRODUCTION) {
27 27
                     return new MemoryMetaDataAdapter();
28 28
                 }
Please login to merge, or discard this patch.
src/Providers/LoggerProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
 
28 28
         $container->setShared(
29 29
             'log',
30
-            function () use ($config) {
30
+            function() use ($config) {
31 31
                 /** @var string $logName */
32 32
                 $logName = envValue('LOGGER_DEFAULT_FILENAME', 'api.log');
33 33
                 /** @var string $logPath */
Please login to merge, or discard this patch.
src/Providers/AclProvider.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
             'acl',
22
-            function () use ($db) {
22
+            function() use ($db) {
23 23
                 $acl = new AclManager(
24 24
                     [
25 25
                         'db' => $db,
Please login to merge, or discard this patch.
src/Providers/ConfigProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
     {
19 19
         $container->setShared(
20 20
             'config',
21
-            function () {
21
+            function() {
22 22
                 $data = require appPath('library/Core/config.php');
23 23
 
24 24
                 return new Config($data);
Please login to merge, or discard this patch.
src/Providers/SocialLoginProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
 
19 19
         $container->setShared(
20 20
             'socialLogin',
21
-            function () use ($config) {
21
+            function() use ($config) {
22 22
 
23 23
                 /**
24 24
                  * @todo Change the way provider information is handled
Please login to merge, or discard this patch.
src/Providers/DatabaseProvider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -21,14 +21,14 @@
 block discarded – undo
21 21
     {
22 22
         $container->setShared(
23 23
             'db',
24
-            function () {
24
+            function() {
25 25
                 $options = [
26 26
                     'host' => envValue('DATA_API_MYSQL_HOST', 'localhost'),
27 27
                     'username' => envValue('DATA_API_MYSQL_USER', 'nanobox'),
28 28
                     'password' => envValue('DATA_API_MYSQL_PASS', ''),
29 29
                     'dbname' => envValue('DATA_API_MYSQL_NAME', 'gonano'),
30 30
                     'charset' => 'utf8',
31
-                    "options" => [ PDO::ATTR_ERRMODE => PDO::ERRMODE_WARNING ]
31
+                    "options" => [PDO::ATTR_ERRMODE => PDO::ERRMODE_WARNING]
32 32
                 ];
33 33
 
34 34
                 try {
Please login to merge, or discard this patch.
src/Providers/MapperProvider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
         //configure the dto config
20 20
         $container->setShared(
21 21
             'dtoConfig',
22
-            function () {
22
+            function() {
23 23
                 $config = new AutoMapperConfig();
24 24
                 $config->getOptions()->dontSkipConstructor();
25 25
         
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
         //configure the dto mapper
31 31
         $container->set(
32 32
             'mapper',
33
-            function () use ($container) {
33
+            function() use ($container) {
34 34
                 return new AutoMapper($container->get('dtoConfig'));
35 35
             }
36 36
         );
Please login to merge, or discard this patch.
src/Providers/ThrottleProvider.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
         $config = $container->getShared('config');
22 22
 
23
-        $container->setShared('throttler', function () use ($container,$config)  {
23
+        $container->setShared('throttler', function() use ($container, $config)  {
24 24
             return new RedisThrottler($container->getShared('redis'), [
25 25
                 'bucket_size'  => $config->throttle->bucketSize,
26 26
                 'refill_time'  => $config->throttle->refillTime,
Please login to merge, or discard this patch.