Completed
Push — master ( 205b41...e1f21c )
by Megh
06:13 queued 50s
created
src/app/views/directory.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -37,9 +37,12 @@
 block discarded – undo
37 37
                                     <a href="<?= $file['slug'] ?>">
38 38
                                         <?php if ($file['type'] == 'file'): ?>
39 39
                                             <i class="fa fa-file-text-o"></i>
40
-                                        <?php else: ?>
40
+                                        <?php else {
41
+    : ?>
41 42
                                             <i class="fa fa-folder-o"></i>
42
-                                        <?php endif; ?>
43
+                                        <?php endif;
44
+}
45
+?>
43 46
                                         <?= $file['slug'] ?>
44 47
                                     </a>
45 48
                                 </li>
Please login to merge, or discard this patch.
src/app/controllers/page.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -148,7 +148,9 @@
 block discarded – undo
148 148
             $data = $this->jugaad_model->get_file_data($file_id, $template_meta, $this->user, true);
149 149
 
150 150
             foreach ($data as $value) {
151
-                if (!$value) continue;
151
+                if (!$value) {
152
+                    continue;
153
+                }
152 154
                 if (is_array($value)) {
153 155
                     foreach ($value as $val) {
154 156
                         $strings[] = $val;
Please login to merge, or discard this patch.
src/app/views/contest/mun.php 1 patch
Braces   +15 added lines, -6 removed lines patch added patch discarded remove patch
@@ -3,14 +3,17 @@  discard block
 block discarded – undo
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 8
         <input
8 9
             name="<?= $name ?>"
9 10
             value="<?= isset($_POST[$name]) ? $_POST[$name] : '' ?>"
10 11
             required=""
11 12
             type="text"
12 13
             class="pure-input-1">
13
-    <?php endif; ?>
14
+    <?php endif;
15
+}
16
+?>
14 17
 
15 18
     <?php if (isset($errors[$name])): ?>
16 19
         <div class="error pure-input-1-1"><?= $errors[$name] ?></div>
@@ -39,7 +42,8 @@  discard block
 block discarded – undo
39 42
                     But your payment is unsuccessful. If you think this is a mistake, please email us at <a href="mailto:[email protected]" class="underlined">[email protected]</a>
40 43
                 </p>
41 44
                 <a class="btn" href="<?= locale_base_url() ?>talks-and-workshops/mun/pay_again/"> Click here to pay again.</a>
42
-            <?php else: ?>
45
+            <?php else {
46
+    : ?>
43 47
                 <p class="text-center lead success">
44 48
                     Payment Successful. You're registered for the event.
45 49
                 </p>
@@ -47,13 +51,18 @@  discard block
 block discarded – undo
47 51
                     Kindly carry your payment receipt which is mailed to you while atteding workshop.<br/>
48 52
                     If you think this is a mistake, please email us at <a href="mailto:[email protected]" class="underlined">[email protected]</a>
49 53
                 </p>
50
-            <?php endif; ?>
51
-        <?php else: ?>
54
+            <?php endif;
55
+}
56
+?>
57
+        <?php else {
58
+    : ?>
52 59
             <form class="pure-form pure-form-stacked row" method="post" action="">
53 60
                 <fieldset class="offset3 col6">
54 61
                     <?php if (isset($errors['common'])): ?>
55 62
                         <div class="error pure-input-1-1"><?= $errors['common'] ?></div>
56
-                    <?php endif; ?>
63
+                    <?php endif;
64
+}
65
+?>
57 66
 
58 67
                     <label><?= __('Contact number') ?></label>
59 68
                     <?php $text_input('contact_number'); ?>
Please login to merge, or discard this patch.
src/app/libraries/auth_lib.php 1 patch
Braces   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -17,7 +17,9 @@  discard block
 block discarded – undo
17 17
     }
18 18
 
19 19
     public function force_authentication() {
20
-        if ($this->is_authenticated()) return;
20
+        if ($this->is_authenticated()) {
21
+            return;
22
+        }
21 23
         $oidc = $this->construct_oidc();
22 24
         $oidc->authenticate();
23 25
     }
@@ -51,7 +53,9 @@  discard block
 block discarded – undo
51 53
         }
52 54
 
53 55
         $details = $oidc->requestUserInfo();
54
-        if (isset($details->error)) $oidc->refreshTokens();
56
+        if (isset($details->error)) {
57
+            $oidc->refreshTokens();
58
+        }
55 59
         return $oidc->requestUserInfo();
56 60
     }
57 61
 }
Please login to merge, or discard this patch.
src/app/views/skeleton_template/header0.php 1 patch
Braces   +10 added lines, -4 removed lines patch added patch discarded remove patch
@@ -56,12 +56,18 @@
 block discarded – undo
56 56
         <?php if ($is_authenticated): ?>
57 57
             <?php if (!empty($user_nick)): ?>
58 58
                 <div class="nick"><?= sprintf(__('Hello, %s'), $user_nick) ?> <a href="<?= locale_base_url() . "logout/" ?>"><?= __('Logout') ?></a></div>
59
-            <?php else: ?>
59
+            <?php else {
60
+    : ?>
60 61
                 <div><a href="<?= locale_base_url() . "login/" ?>" class="pure-button btn"><?= __('Login / Register') ?></a></div>
61
-            <?php endif; ?>
62
-        <?php else: ?>
62
+            <?php endif;
63
+}
64
+?>
65
+        <?php else {
66
+    : ?>
63 67
             <div><a href="<?= locale_base_url() . "login/" ?>" class="pure-button btn"><?= __('Login / Register') ?></a></div>
64
-        <?php endif; ?>
68
+        <?php endif;
69
+}
70
+?>
65 71
     </div>
66 72
     <?php endif; ?>
67 73
 
Please login to merge, or discard this patch.
src/app/views/skeleton_template/header.php 1 patch
Braces   +10 added lines, -4 removed lines patch added patch discarded remove patch
@@ -61,12 +61,18 @@
 block discarded – undo
61 61
         <?php if ($is_authenticated): ?>
62 62
             <?php if (!empty($user_nick)): ?>
63 63
                 <div class="nick"><?= sprintf(__('Hello, %s'), $user_nick) ?> <a href="<?= locale_base_url() . "logout/" ?>"><?= __('Logout') ?></a></div>
64
-            <?php else: ?>
64
+            <?php else {
65
+    : ?>
65 66
                 <div><a href="<?= locale_base_url() . "login/" ?>" class="pure-button btn"><?= __('Login / Register') ?></a></div>
66
-            <?php endif; ?>
67
-        <?php else: ?>
67
+            <?php endif;
68
+}
69
+?>
70
+        <?php else {
71
+    : ?>
68 72
             <div><a href="<?= locale_base_url() . "login/" ?>" class="pure-button btn"><?= __('Login / Register') ?></a></div>
69
-        <?php endif; ?>
73
+        <?php endif;
74
+}
75
+?>
70 76
     </div>
71 77
     <?php endif; ?>
72 78
     <div id="container" class="wrapper" style="z-index: 4;">
Please login to merge, or discard this patch.