Completed
Push — master ( ac23f0...70246b )
by Megh
03:22
created
src/app/models/contest_model.php 1 patch
Braces   +6 added lines, -12 removed lines patch added patch discarded remove patch
@@ -45,8 +45,7 @@  discard block
 block discarded – undo
45 45
         );
46 46
         if (!$stmt) {
47 47
             return false;
48
-        }
49
-        else {
48
+        } else {
50 49
             return true;
51 50
         }
52 51
     }
@@ -63,8 +62,7 @@  discard block
 block discarded – undo
63 62
         $this->ttt_dump_data($nick, 'callback', $payment_data);
64 63
         if (!$stmt) {
65 64
             return false;
66
-        }
67
-        else {
65
+        } else {
68 66
             return true;
69 67
         }
70 68
     }
@@ -272,8 +270,7 @@  discard block
 block discarded – undo
272 270
         $this->webdev_dump_data($nick, 'callback', $payment_data);
273 271
         if (!$stmt) {
274 272
             return false;
275
-        }
276
-        else {
273
+        } else {
277 274
             return true;
278 275
         }
279 276
     }
@@ -341,8 +338,7 @@  discard block
 block discarded – undo
341 338
         $this->riderofstorms_dump_data($nick, 'callback', $payment_data);
342 339
         if (!$stmt) {
343 340
             return false;
344
-        }
345
-        else {
341
+        } else {
346 342
             return true;
347 343
         }
348 344
     }
@@ -396,8 +392,7 @@  discard block
 block discarded – undo
396 392
         $this->arvr_dump_data($nick, 'callback', $payment_data);
397 393
         if (!$stmt) {
398 394
             return false;
399
-        }
400
-        else {
395
+        } else {
401 396
             return true;
402 397
         }
403 398
     }
@@ -525,8 +520,7 @@  discard block
 block discarded – undo
525 520
         $this->artuino_dump_data($team_id, 'callback', $payment_data);
526 521
         if (!$stmt) {
527 522
             return false;
528
-        }
529
-        else {
523
+        } else {
530 524
             return true;
531 525
         }
532 526
     }
Please login to merge, or discard this patch.
src/app/views/http_error.php 1 patch
Braces   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,10 @@
 block discarded – undo
4 4
     <meta charset="utf-8">
5 5
     <meta name="robots" content="noindex">
6 6
     <meta name="viewport" content="width=device-width, initial-scale=1.0">
7
-    <title><?= $error_code ?><?php if (isset($message)) echo " - ", $message; ?></title>
7
+    <title><?= $error_code ?><?php if (isset($message)) {
8
+    echo " - ", $message;
9
+}
10
+?></title>
8 11
     <link rel="stylesheet" href="<?= base_url() ?>static/styles/error.css">
9 12
 </head>
10 13
 <body>
Please login to merge, or discard this patch.
src/app/views/contest/ttt_workshop.php 1 patch
Braces   +10 added lines, -4 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>
@@ -33,11 +36,14 @@  discard block
 block discarded – undo
33 36
         <?php if ($user_details): ?>
34 37
             <?php if ($user_details['payment_status'] == 'success'): ?>
35 38
                 <p class="success">You have successfully paid </p>
36
-            <?php else: ?>
39
+            <?php else {
40
+    : ?>
37 41
                 <div class="text-center">
38 42
                     <?php if ($user_details['payment_status'] == 'failed'): ?>
39 43
                         <p class="error">Payment was unsuccessfull </p>
40
-                    <?php endif; ?>
44
+                    <?php endif;
45
+}
46
+?>
41 47
 
42 48
                     <a href="<?= $payment_url ?>" class="pure-button pure-button-primary some-top-margin">
43 49
                         <?= __('Proceed to payment ₹100') ?>
Please login to merge, or discard this patch.
src/app/views/contest/futsal.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -34,7 +34,8 @@  discard block
 block discarded – undo
34 34
             <p class="text-center">
35 35
                 If you think this is a mistake, please email us at <a href="mailto:[email protected]" class="underlined">[email protected]</a>
36 36
             </p>
37
-        <?php else: ?>
37
+        <?php else {
38
+    : ?>
38 39
             <p class="text-center lead">
39 40
                 Note: Make sure that all of the team members are registered with us.
40 41
             </p>
@@ -45,7 +46,9 @@  discard block
 block discarded – undo
45 46
                 <fieldset class="offset3 col6">
46 47
                     <?php if (isset($errors['common'])): ?>
47 48
                         <div class="error pure-input-1-1"><?= $errors['common'] ?></div>
48
-                    <?php endif; ?>
49
+                    <?php endif;
50
+}
51
+?>
49 52
 
50 53
                     <label><?= __('Team name') ?> (*)</label>
51 54
                     <?php $text_input('team_name'); ?>
Please login to merge, or discard this patch.
src/app/views/contest/artuino.php 1 patch
Braces   +10 added lines, -4 removed lines patch added patch discarded remove patch
@@ -36,7 +36,8 @@  discard block
 block discarded – undo
36 36
                     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>
37 37
                 </p>
38 38
                 <a class="btn" href="<?= locale_base_url() ?>pulsation/artuino/pay_again/"> Click here to pay again.</a>
39
-            <?php else: ?>
39
+            <?php else {
40
+    : ?>
40 41
                 <p class="text-center lead success">
41 42
                     Payment Successful. You're registered for the event as a part of team <?= $team_info['team_name'] ?>
42 43
                 </p>
@@ -44,8 +45,11 @@  discard block
 block discarded – undo
44 45
                     Kindly carry your payment receipt which is mailed to you while atteding workshop.<br/>
45 46
                     If you think this is a mistake, please email us at <a href="mailto:[email protected]" class="underlined">[email protected]</a>
46 47
                 </p>
47
-            <?php endif; ?>
48
-        <?php else: ?>
48
+            <?php endif;
49
+}
50
+?>
51
+        <?php else {
52
+    : ?>
49 53
             <p class="text-center lead">
50 54
                 Note: Make sure that all of the team members are registered with us.
51 55
             </p>
@@ -56,7 +60,9 @@  discard block
 block discarded – undo
56 60
                 <fieldset class="offset3 col6">
57 61
                     <?php if (isset($errors['common'])): ?>
58 62
                         <div class="error pure-input-1-1"><?= $errors['common'] ?></div>
59
-                    <?php endif; ?>
63
+                    <?php endif;
64
+}
65
+?>
60 66
 
61 67
                     <label><?= __('Team name') ?> (*)</label>
62 68
                     <?php $text_input('team_name'); ?>
Please login to merge, or discard this patch.
src/app/views/contest/webdev_workshop.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/web-development/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/views/contest/arvr_workshop.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/arvr/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/views/contest/visualizeit.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -36,12 +36,15 @@
 block discarded – undo
36 36
                         You can change it till 2017-01-15 21:00.
37 37
                 </div>
38 38
             </div>
39
-        <?php else: ?>
39
+        <?php else {
40
+    : ?>
40 41
             <form class="pure-form pure-form-stacked row" method="post" action="">
41 42
                 <fieldset class="offset3 col6">
42 43
                     <?php if (isset($errors['common'])): ?>
43 44
                         <div class="error pure-input-1-1"><?= $errors['common'] ?></div>
44
-                    <?php endif; ?>
45
+                    <?php endif;
46
+}
47
+?>
45 48
 
46 49
                     <label><?= __('Drive Link') ?></label>
47 50
                     <?php $text_input('paper_link', 'url'); ?>
Please login to merge, or discard this patch.
src/app/views/contest/riderofstorms.php 1 patch
Braces   +15 added lines, -6 removed lines patch added patch discarded remove patch
@@ -3,13 +3,16 @@  discard block
 block discarded – undo
3 3
 ?>
4 4
     <?php if ($large_text): ?>
5 5
         <textarea name="<?= $name ?>" class="pure-input-1" <?php if ($required): ?>required=""<?php endif; ?> ><?= 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
             <?php if ($required): ?>
11 12
             required=""
12
-            <?php endif; ?>
13
+            <?php endif;
14
+}
15
+?>
13 16
             type="text"
14 17
             class="pure-input-1">
15 18
     <?php endif; ?>
@@ -41,7 +44,8 @@  discard block
 block discarded – undo
41 44
                     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>
42 45
                 </p>
43 46
                 <a class="btn" href="<?= locale_base_url() ?>cultural-Colosseum/bob/pay_again/"> Click here to pay again.</a>
44
-            <?php else: ?>
47
+            <?php else {
48
+    : ?>
45 49
                 <p class="text-center lead success">
46 50
                     Payment Successful. You're registered for the event.
47 51
                 </p>
@@ -49,13 +53,18 @@  discard block
 block discarded – undo
49 53
                     Kindly carry your payment receipt which is mailed to you while atteding riders on the storm.<br/>
50 54
                     If you think this is a mistake, please email us at <a href="mailto:[email protected]" class="underlined">[email protected]</a>
51 55
                 </p>
52
-            <?php endif; ?>
53
-        <?php else: ?>
56
+            <?php endif;
57
+}
58
+?>
59
+        <?php else {
60
+    : ?>
54 61
             <form class="pure-form pure-form-stacked row" method="post" action="">
55 62
                 <fieldset class="offset3 col6">
56 63
                     <?php if (isset($errors['common'])): ?>
57 64
                         <div class="error pure-input-1-1"><?= $errors['common'] ?></div>
58
-                    <?php endif; ?>
65
+                    <?php endif;
66
+}
67
+?>
59 68
 
60 69
                     <label><?= __('Name of the Band (*)') ?></label>
61 70
                     <?php $text_input('name'); ?>
Please login to merge, or discard this patch.