Completed
Push — master ( e1f21c...1b0b82 )
by Megh
04:35
created
src/app/libraries/http_lib.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
             $dedicated_view = $this->load_view($view_name, [
12 12
                 'error_code' => $code,
13 13
             ]);
14
-            if (! $dedicated_view) {
14
+            if (!$dedicated_view) {
15 15
                 $this->load_view('http_error', [
16 16
                     'error_code' => $code,
17 17
                 ]);
Please login to merge, or discard this patch.
src/app/controllers/page.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-if (!function_exists('getallheaders'))  {
2
+if (!function_exists('getallheaders')) {
3 3
     function getallheaders() {
4 4
         if (!is_array($_SERVER)) {
5 5
             return array();
Please login to merge, or discard this patch.
src/app/views/contest/webdev_workshop.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,9 +1,9 @@
 block discarded – undo
1 1
 <?php
2
-$text_input = function ($name, $large_text=false) use ($errors) {
2
+$text_input = function($name, $large_text = false) use ($errors) {
3 3
 ?>
4 4
     <?php if ($large_text): ?>
5 5
         <textarea name="<?= $name ?>" class="pure-input-1" required=""><?= isset($_POST[$name]) ? $_POST[$name] : '' ?></textarea>
6
-    <?php else: ?>
6
+    <?php else : ?>
7 7
         <input
8 8
             name="<?= $name ?>"
9 9
             value="<?= isset($_POST[$name]) ? $_POST[$name] : '' ?>"
Please login to merge, or discard this patch.
src/app/views/contest/artuino.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-$text_input = function ($name, $required=true) use ($errors) {
2
+$text_input = function($name, $required = true) use ($errors) {
3 3
 ?>
4 4
     <input
5 5
         name="<?= $name ?>"
Please login to merge, or discard this patch.
src/app/views/contest/paper_presentation.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-$text_input = function ($name, $type="text") use ($errors) {
2
+$text_input = function($name, $type = "text") use ($errors) {
3 3
 ?>
4 4
     <input
5 5
         name="<?= $name ?>"
Please login to merge, or discard this patch.
src/app/views/contest/arvr_workshop.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,9 +1,9 @@
 block discarded – undo
1 1
 <?php
2
-$text_input = function ($name, $large_text=false) use ($errors) {
2
+$text_input = function($name, $large_text = false) use ($errors) {
3 3
 ?>
4 4
     <?php if ($large_text): ?>
5 5
         <textarea name="<?= $name ?>" class="pure-input-1" required=""><?= isset($_POST[$name]) ? $_POST[$name] : '' ?></textarea>
6
-    <?php else: ?>
6
+    <?php else : ?>
7 7
         <input
8 8
             name="<?= $name ?>"
9 9
             value="<?= isset($_POST[$name]) ? $_POST[$name] : '' ?>"
Please login to merge, or discard this patch.
src/app/views/contest/mun.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,9 +1,9 @@
 block discarded – undo
1 1
 <?php
2
-$text_input = function ($name, $large_text=false) use ($errors) {
2
+$text_input = function($name, $large_text = false) use ($errors) {
3 3
 ?>
4 4
     <?php if ($large_text): ?>
5 5
         <textarea name="<?= $name ?>" class="pure-input-1" required=""><?= isset($_POST[$name]) ? $_POST[$name] : '' ?></textarea>
6
-    <?php else: ?>
6
+    <?php else : ?>
7 7
         <input
8 8
             name="<?= $name ?>"
9 9
             value="<?= isset($_POST[$name]) ? $_POST[$name] : '' ?>"
Please login to merge, or discard this patch.
src/app/controllers/static_page.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -7,19 +7,19 @@
 block discarded – undo
7 7
     }
8 8
 
9 9
     public function login() {
10
-        $this->http_lib->redirect( locale_base_url() . 'oidc/login/' );
10
+        $this->http_lib->redirect(locale_base_url() . 'oidc/login/');
11 11
     }
12 12
 
13 13
     public function logout() {
14
-        $this->http_lib->redirect( locale_base_url() . 'oidc/logout/' );
14
+        $this->http_lib->redirect(locale_base_url() . 'oidc/logout/');
15 15
     }
16 16
 
17 17
     public function register() {
18
-        $this->http_lib->redirect( locale_base_url() . 'oidc/login/' );
18
+        $this->http_lib->redirect(locale_base_url() . 'oidc/login/');
19 19
     }
20 20
 
21 21
     public function wdw() {
22
-        $this->http_lib->redirect( locale_base_url() . 'talks-and-workshops/web-development/' );
22
+        $this->http_lib->redirect(locale_base_url() . 'talks-and-workshops/web-development/');
23 23
     }
24 24
 
25 25
     public function codecraft() {
Please login to merge, or discard this patch.
src/app/libraries/auth_lib.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
     public function logout() {
30 30
         $oidc = $this->construct_oidc();
31 31
         // XXX: Hack to logout from kong, i.e. unset lua_resty_session cookies
32
-        setcookie('session',   '', time() - 3600, '/');
32
+        setcookie('session', '', time() - 3600, '/');
33 33
         setcookie('session_2', '', time() - 3600, '/');
34 34
         setcookie('session_3', '', time() - 3600, '/');
35 35
         $oidc->signOut($oidc->getAccessToken(), base_url());
Please login to merge, or discard this patch.