Passed
Pull Request — master (#1932)
by Struan
05:36
created
www/docs/addlink/index.php 1 patch
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -14,8 +14,7 @@  discard block
 block discarded – undo
14 14
     // We're searching for something.
15 15
     $args['s'] = filter_user_input(get_http_var('g'), 'strict');
16 16
     $GLOSSARY = new GLOSSARY($args);
17
-}
18
-else {
17
+} else {
19 18
     $args['sort'] = "regexp_replace";
20 19
     $GLOSSARY = new GLOSSARY($args);
21 20
     $args['s'] = filter_user_input(get_http_var('g'), 'strict');
@@ -86,13 +85,11 @@  discard block
 block discarded – undo
86 85
             if ($args['count']) {
87 86
                 // Display the Add definition form
88 87
                 $PAGE->glossary_add_link_form($args);
89
-            }
90
-            else {
88
+            } else {
91 89
                 print "<h4>No dice!</h4><p>Much as we'd love you to add a definition for <strong></strong>, it doesn't seem to appear in hansard at all...</p>";
92 90
                 $PAGE->glossary_links();
93 91
             }
94
-        }
95
-        else {
92
+        } else {
96 93
             print "<h4>Humdinger!</h4><p>it would appear that you aren't allowed to add glossary terms. How odd...</p>";
97 94
             $PAGE->glossary_links();
98 95
         }
Please login to merge, or discard this patch.