summaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
authorGuillaume Mazoyer <respawneral@gmail.com>2015-02-09 17:36:09 +0100
committerGuillaume Mazoyer <respawneral@gmail.com>2015-02-09 17:36:09 +0100
commit767174015892dde07a6bc9999e9170b7c21dd378 (patch)
treee1cf636135922d1548168722e73a663636599b5f /index.php
parente2172308eec0ee790fe21858ae1c45e72407fa8c (diff)
Fix confusing variable name.
There is only one parameter to check so rename the confusing 'parameters' variable name to 'parameter' accross all the code base.
Diffstat (limited to 'index.php')
-rw-r--r--index.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/index.php b/index.php
index fcbcc1a..eb82931 100644
--- a/index.php
+++ b/index.php
@@ -71,11 +71,11 @@ final class LookingGlass {
print('</div>');
}
- private function render_parameters() {
+ private function render_parameter() {
print('<div class="form-group">');
print('<label for="input-param">Parameter</label>');
print('<div class="input-group">');
- print('<input class="form-control" name="parameters" id="input-param" autofocus />');
+ print('<input class="form-control" name="parameter" id="input-param" autofocus />');
print('<div class="input-group-btn">');
print('<button type="button" class="btn btn-info" data-toggle="modal" data-target="#help">');
print('<span class="glyphicon glyphicon-question-sign"></span> Help');
@@ -131,8 +131,8 @@ final class LookingGlass {
$this->render_commands();
break;
- case 'parameters':
- $this->render_parameters();
+ case 'parameter':
+ $this->render_parameter();
break;
case 'buttons':