Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/HuasoFoundries/phpPgAdmin6.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmenadiel <amenadiel@gmail.com>2020-01-15 01:00:49 +0300
committerAmenadiel <amenadiel@gmail.com>2020-01-15 01:00:49 +0300
commitd7fe9495f5f5cd716ae3eed21d2d87dfe4d44bd1 (patch)
tree5ff1c6950462d9c2f88e7848cadf2baa3d182b58 /src/controllers/FunctionsController.php
parent0b3571deb5969172e3ed375a7cbc4f560812cc9f (diff)
adds config key to enable debugger handlers
Diffstat (limited to 'src/controllers/FunctionsController.php')
-rw-r--r--src/controllers/FunctionsController.php24
1 files changed, 13 insertions, 11 deletions
diff --git a/src/controllers/FunctionsController.php b/src/controllers/FunctionsController.php
index 57006e5b..5b6b4718 100644
--- a/src/controllers/FunctionsController.php
+++ b/src/controllers/FunctionsController.php
@@ -1,7 +1,7 @@
<?php
/**
- * PHPPgAdmin v6.0.0-RC1.
+ * PHPPgAdmin v6.0.0-RC2
*/
namespace PHPPgAdmin\Controller;
@@ -10,6 +10,8 @@ use PHPPgAdmin\Decorators\Decorator;
/**
* Base controller class.
+ *
+ * @package PHPPgAdmin
*/
class FunctionsController extends BaseController
{
@@ -388,8 +390,8 @@ class FunctionsController extends BaseController
$names_arr = $data->phpArray($fndata->fields['proargnames']);
$modes_arr = $data->phpArray($fndata->fields['proargmodes']);
$args = '';
- $args_arr_size = count($args_arr);
- for ($i = 0; $i < $args_arr_size; $i++) {
+ $args_arr_size = sizeof($args_arr);
+ for ($i = 0; $i < $args_arr_size; ++$i) {
if (0 != $i) {
$args .= ', ';
}
@@ -574,7 +576,7 @@ class FunctionsController extends BaseController
}
// Display function properties
- if (is_array($data->funcprops) && count($data->funcprops) > 0) {
+ if (is_array($data->funcprops) && sizeof($data->funcprops) > 0) {
echo "<tr><th class=\"data\" colspan=\"5\">{$this->lang['strproperties']}</th></tr>".PHP_EOL;
echo '<tr><td class="data1" colspan="5">'.PHP_EOL;
$i = 0;
@@ -586,7 +588,7 @@ class FunctionsController extends BaseController
'>', $this->misc->printVal($p), '</option>'.PHP_EOL;
}
echo '</select><br />'.PHP_EOL;
- $i++;
+ ++$i;
}
echo '</td></tr>'.PHP_EOL;
}
@@ -744,7 +746,7 @@ class FunctionsController extends BaseController
}
// Show flags
- if (is_array($data->funcprops) && count($data->funcprops) > 0) {
+ if (is_array($data->funcprops) && sizeof($data->funcprops) > 0) {
// Fetch an array of the function properties
$funcprops = $data->getFunctionProperties($funcdata->fields);
echo "<tr><th class=\"data\" colspan=\"4\">{$this->lang['strproperties']}</th></tr>".PHP_EOL;
@@ -1065,7 +1067,7 @@ class FunctionsController extends BaseController
}
// Display function properties
- if (is_array($data->funcprops) && count($data->funcprops) > 0) {
+ if (is_array($data->funcprops) && sizeof($data->funcprops) > 0) {
echo "<tr><th class=\"data required\" colspan=\"4\">{$this->lang['strproperties']}</th></tr>".PHP_EOL;
echo '<tr><td class="data1" colspan="4">'.PHP_EOL;
$i = 0;
@@ -1077,7 +1079,7 @@ class FunctionsController extends BaseController
'>', $this->misc->printVal($p), '</option>'.PHP_EOL;
}
echo '</select><br />'.PHP_EOL;
- $i++;
+ ++$i;
}
echo '</td></tr>'.PHP_EOL;
}
@@ -1212,7 +1214,7 @@ class FunctionsController extends BaseController
$szReturn .= '<script type="text/javascript">';
$szReturn .= "RebuildArgTR('{$szMode}','{$szArgName}','{$szArgType}',new Boolean({$bArgIsArray},{$subfolder}));";
$szReturn .= '</script>;';
- $nC++;
+ ++$nC;
}
return $szReturn;
@@ -1262,8 +1264,8 @@ class FunctionsController extends BaseController
$names_arr = $data->phpArray($funcdata->fields['proargnames']);
$modes_arr = $data->phpArray($funcdata->fields['proargmodes']);
$args = '';
- $args_arr_size = count($args_arr);
- for ($i = 0; $i < $args_arr_size; $i++) {
+ $args_arr_size = sizeof($args_arr);
+ for ($i = 0; $i < $args_arr_size; ++$i) {
if (0 != $i) {
$args .= ', ';
}