Passed
Push — master ( f37c96...1d5800 )
by Peter
05:42
created
app/controller/actions/CheckLicenseAction.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
         if (false && !$request->isSecure()) {
23 23
             $url = $request->getUrl();
24 24
             $url = 'https'.strRight($url, -4);
25
-            return new ActionForward('generic', $url, $redirect=true);
25
+            return new ActionForward('generic', $url, $redirect = true);
26 26
         }
27 27
         $config = $this->di()['config'];
28 28
 
@@ -37,13 +37,13 @@  discard block
 block discarded – undo
37 37
             $knownAccount = (bool) ($license = $config->get('bfx.accounts.'.$account, null));
38 38
             !$license && $license = $config->get('bfx.accounts.default');
39 39
 
40
-            $expires = date('Ymd', time() + 1*MONTH);                       // extend license for 30 days
40
+            $expires = date('Ymd', time() + 1 * MONTH); // extend license for 30 days
41 41
             $reply = $account.'|'.$license.'|A|'.$expires.'|mt4tfv|ok';
42 42
         }
43 43
         else {
44 44
             $reply = 'ERROR: Unknown or missing account number.|no';
45 45
         }
46
-        $knownAccount || Logger::log('reply: '.$reply, L_INFO);             // log requests for unknown accounts
46
+        $knownAccount || Logger::log('reply: '.$reply, L_INFO); // log requests for unknown accounts
47 47
 
48 48
         echo $reply;
49 49
         return null;
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -39,8 +39,7 @@
 block discarded – undo
39 39
 
40 40
             $expires = date('Ymd', time() + 1*MONTH);                       // extend license for 30 days
41 41
             $reply = $account.'|'.$license.'|A|'.$expires.'|mt4tfv|ok';
42
-        }
43
-        else {
42
+        } else {
44 43
             $reply = 'ERROR: Unknown or missing account number.|no';
45 44
         }
46 45
         $knownAccount || Logger::log('reply: '.$reply, L_INFO);             // log requests for unknown accounts
Please login to merge, or discard this patch.