Passed
Pull Request — master (#50)
by Ronan
09:06
created
src/Controller/UsersController.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -51,12 +51,12 @@  discard block
 block discarded – undo
51 51
         $args
52 52
     ) {
53 53
         try {
54
-            $id = filter_var($args['id'], FILTER_VALIDATE_INT, ['options' => ['default' => null ]]);
54
+            $id = filter_var($args['id'], FILTER_VALIDATE_INT, ['options' => ['default' => null]]);
55 55
             if (is_null($id)) {
56 56
                 throw new Exception('Invalid user id');
57 57
             }
58 58
             $user = Orm::finder(User::class)->one($id);
59
-            if (! $user instanceof User) {
59
+            if (!$user instanceof User) {
60 60
                 throw new Exception('Unknown user');
61 61
             }
62 62
             if (Security::isCurrent($user)) {
@@ -100,12 +100,12 @@  discard block
 block discarded – undo
100 100
         $args
101 101
     ) {
102 102
         try {
103
-            $id = filter_var($args['id'], FILTER_VALIDATE_INT, ['options' => ['default' => null ]]);
103
+            $id = filter_var($args['id'], FILTER_VALIDATE_INT, ['options' => ['default' => null]]);
104 104
             if (is_null($id)) {
105 105
                 throw new Exception('Invalid user id');
106 106
             }
107 107
             $user = Orm::finder(User::class)->one($id);
108
-            if (! $user instanceof User) {
108
+            if (!$user instanceof User) {
109 109
                 throw new Exception('Unknown user');
110 110
             }
111 111
             if (Security::isCurrent($user)) {
Please login to merge, or discard this patch.
src/Mail/MailProvider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
     {
24 24
         $container->set('mailer_settings', []);
25 25
 
26
-        $container->set('swift_mailer', function ($c) {
26
+        $container->set('swift_mailer', function($c) {
27 27
             $config = $c->get('mailer_settings')['transport'];
28 28
             $transport = new Swift_SmtpTransport(
29 29
                 $config['host'],
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
                 $transport
48 48
             );
49 49
         });
50
-        $container->set(Helper::class, function ($c) {
50
+        $container->set(Helper::class, function($c) {
51 51
             $config      = $c->get('mailer_settings')['options'];
52 52
             $swiftMailer = $c->get('swift_mailer');
53 53
             $twig        = $c->get(Twig::class)->getEnvironment();
Please login to merge, or discard this patch.
src/Mail/Email.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -294,7 +294,7 @@
 block discarded – undo
294 294
         );
295 295
         array_walk(
296 296
             $name,
297
-            function (&$val) {
297
+            function(&$val) {
298 298
                 $val = lcfirst($val);
299 299
             }
300 300
         );
Please login to merge, or discard this patch.
config/services.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@
 block discarded – undo
7 7
 $container->register(new \App\Provider\ProviderProvider());
8 8
 $container->register(new \App\Notifier\NotifierProvider());
9 9
 $container->register(new \App\Security\SecurityProvider());
10
-$container->register(new \App\Mail\MailProvider(),[
10
+$container->register(new \App\Mail\MailProvider(), [
11 11
     'mailer_settings' => $container->get('settings')['mail']
12 12
 ]);
13 13
 
Please login to merge, or discard this patch.