@@ -90,7 +90,7 @@ discard block |
||
90 | 90 | public function __construct() |
91 | 91 | { |
92 | 92 | |
93 | - $keyword_replace = function ($keywords, $text, $ncs = false) { |
|
93 | + $keyword_replace = function($keywords, $text, $ncs = false) { |
|
94 | 94 | $cm = $ncs ? 'i' : ''; |
95 | 95 | foreach ($keywords as $keyword) { |
96 | 96 | $search[] = "/(\\b$keyword\\b)/" . $cm; |
@@ -103,7 +103,7 @@ discard block |
||
103 | 103 | return preg_replace($search, $replace, $text); |
104 | 104 | }; |
105 | 105 | |
106 | - $preproc_replace = function ($preproc, $text) { |
|
106 | + $preproc_replace = function($preproc, $text) { |
|
107 | 107 | foreach ($preproc as $proc) { |
108 | 108 | $search[] = "/(\\s*#\s*$proc\\b)/"; |
109 | 109 | $replace[] = '<span class="keyword">\\0</span>'; |
@@ -112,11 +112,11 @@ discard block |
||
112 | 112 | return preg_replace($search, $replace, $text); |
113 | 113 | }; |
114 | 114 | |
115 | - $sch_syntax_helper = function ($text) { |
|
115 | + $sch_syntax_helper = function($text) { |
|
116 | 116 | return $text; |
117 | 117 | }; |
118 | 118 | |
119 | - $syntax_highlight_helper = function ($text, $language) use ($keyword_replace, $preproc_replace) { |
|
119 | + $syntax_highlight_helper = function($text, $language) use ($keyword_replace, $preproc_replace) { |
|
120 | 120 | $preproc = []; |
121 | 121 | $preproc['C++'] = [ |
122 | 122 | 'if', |
@@ -1921,66 +1921,64 @@ discard block |
||
1921 | 1921 | 'PL/I' => true, |
1922 | 1922 | 'SQL' => true, |
1923 | 1923 | ]; |
1924 | - $ncs = false; |
|
1924 | + $ncs = false; |
|
1925 | 1925 | if (array_key_exists($language, $case_insensitive)) { |
1926 | 1926 | $ncs = true; |
1927 | 1927 | } |
1928 | 1928 | |
1929 | 1929 | $text = array_key_exists($language, $preproc) ? |
1930 | - $preproc_replace($preproc[$language], $text) : |
|
1931 | - $text; |
|
1930 | + $preproc_replace($preproc[$language], $text) : $text; |
|
1932 | 1931 | $text = array_key_exists($language, $keywords) ? |
1933 | - $keyword_replace($keywords[$language], $text, $ncs) : |
|
1934 | - $text; |
|
1932 | + $keyword_replace($keywords[$language], $text, $ncs) : $text; |
|
1935 | 1933 | |
1936 | 1934 | return $text; |
1937 | 1935 | }; |
1938 | 1936 | |
1939 | - $rtrim1 = function ($span, $lang, $ch) use ($syntax_highlight_helper) { |
|
1937 | + $rtrim1 = function($span, $lang, $ch) use ($syntax_highlight_helper) { |
|
1940 | 1938 | return $syntax_highlight_helper(substr($span, 0, -1), $lang); |
1941 | 1939 | }; |
1942 | 1940 | |
1943 | - $rtrim1_htmlesc = function ($span, $lang, $ch) { |
|
1941 | + $rtrim1_htmlesc = function($span, $lang, $ch) { |
|
1944 | 1942 | return htmlspecialchars(substr($span, 0, -1)); |
1945 | 1943 | }; |
1946 | 1944 | |
1947 | - $sch_rtrim1 = function ($span, $lang, $ch) use ($sch_syntax_helper) { |
|
1945 | + $sch_rtrim1 = function($span, $lang, $ch) use ($sch_syntax_helper) { |
|
1948 | 1946 | return $sch_syntax_helper(substr($span, 0, -1)); |
1949 | 1947 | }; |
1950 | 1948 | |
1951 | - $rtrim2 = function ($span, $lang, $ch) { |
|
1949 | + $rtrim2 = function($span, $lang, $ch) { |
|
1952 | 1950 | return substr($span, 0, -2); |
1953 | 1951 | }; |
1954 | 1952 | |
1955 | - $syn_proc = function ($span, $lang, $ch) use ($syntax_highlight_helper) { |
|
1953 | + $syn_proc = function($span, $lang, $ch) use ($syntax_highlight_helper) { |
|
1956 | 1954 | return $syntax_highlight_helper($span, $lang); |
1957 | 1955 | }; |
1958 | 1956 | |
1959 | - $dash_putback = function ($span, $lang, $ch) use ($syntax_highlight_helper) { |
|
1957 | + $dash_putback = function($span, $lang, $ch) use ($syntax_highlight_helper) { |
|
1960 | 1958 | return $syntax_highlight_helper('-' . $span, $lang); |
1961 | 1959 | }; |
1962 | 1960 | |
1963 | - $slash_putback = function ($span, $lang, $ch) use ($syntax_highlight_helper) { |
|
1961 | + $slash_putback = function($span, $lang, $ch) use ($syntax_highlight_helper) { |
|
1964 | 1962 | return $syntax_highlight_helper('/' . $span, $lang); |
1965 | 1963 | }; |
1966 | 1964 | |
1967 | - $slash_putback_rtrim1 = function ($span, $lang, $ch) use ($rtrim1) { |
|
1965 | + $slash_putback_rtrim1 = function($span, $lang, $ch) use ($rtrim1) { |
|
1968 | 1966 | return $rtrim1('/' . $span, $lang, $ch); |
1969 | 1967 | }; |
1970 | 1968 | |
1971 | - $lparen_putback = function ($span, $lang, $ch) use ($syntax_highlight_helper) { |
|
1969 | + $lparen_putback = function($span, $lang, $ch) use ($syntax_highlight_helper) { |
|
1972 | 1970 | return $syntax_highlight_helper('(' . $span, $lang); |
1973 | 1971 | }; |
1974 | 1972 | |
1975 | - $lparen_putback_rtrim1 = function ($span, $lang, $ch) use ($rtrim1) { |
|
1973 | + $lparen_putback_rtrim1 = function($span, $lang, $ch) use ($rtrim1) { |
|
1976 | 1974 | return $rtrim1('(' . $span, $lang, $ch); |
1977 | 1975 | }; |
1978 | 1976 | |
1979 | - $prepend_xml_opentag = function ($span, $lang, $ch) { |
|
1977 | + $prepend_xml_opentag = function($span, $lang, $ch) { |
|
1980 | 1978 | return '<span class="xml_tag"><' . $span; |
1981 | 1979 | }; |
1982 | 1980 | |
1983 | - $proc_void = function ($span, $lang, $ch) { |
|
1981 | + $proc_void = function($span, $lang, $ch) { |
|
1984 | 1982 | return $span; |
1985 | 1983 | }; |
1986 | 1984 | |
@@ -2442,8 +2440,7 @@ discard block |
||
2442 | 2440 | |
2443 | 2441 | $oldstate = $state; |
2444 | 2442 | $state = array_key_exists($ch, $this->states[$language][$state]) ? |
2445 | - $this->states[$language][$state][$ch] : |
|
2446 | - $this->states[$language][$state][0]; |
|
2443 | + $this->states[$language][$state][$ch] : $this->states[$language][$state][0]; |
|
2447 | 2444 | |
2448 | 2445 | $span .= $ch; |
2449 | 2446 |
@@ -2413,7 +2413,7 @@ |
||
2413 | 2413 | * Does the bulk of the syntax highlighting by lexing the input |
2414 | 2414 | * string, then calling the helper function to highlight keywords. |
2415 | 2415 | * |
2416 | - * @param $text |
|
2416 | + * @param string $text |
|
2417 | 2417 | * @param $language |
2418 | 2418 | * @return string |
2419 | 2419 | */ |
@@ -212,7 +212,7 @@ |
||
212 | 212 | $status = -1; // ini |
213 | 213 | if ($rs->recordCount() and ($rs->fields['vacrelid'] == $toid)) { |
214 | 214 | // table exists in pg_autovacuum, UPDATE |
215 | - $sql = sprintf("UPDATE \"pg_catalog\".\"pg_autovacuum\" SET |
|
215 | + $sql = sprintf("UPDATE \"pg_catalog\".\"pg_autovacuum\" SET |
|
216 | 216 | enabled = '%s', |
217 | 217 | vac_base_thresh = %s, |
218 | 218 | vac_scale_factor = %s, |
@@ -394,7 +394,7 @@ |
||
394 | 394 | // Pick out array entries by carefully parsing. This is necessary in order |
395 | 395 | // to cope with double quotes and commas, etc. |
396 | 396 | $elements = []; |
397 | - $i = $j = 0; |
|
397 | + $i = $j = 0; |
|
398 | 398 | $in_quotes = false; |
399 | 399 | while ($i < strlen($arr)) { |
400 | 400 | // If current char is a double quote and it's not escaped, then |
@@ -102,7 +102,7 @@ discard block |
||
102 | 102 | * @@ assumes that the query will return only one row - returns field value in the first row |
103 | 103 | * |
104 | 104 | * @param $sql The SQL statement to be executed |
105 | - * @param $field The field name to be returned |
|
105 | + * @param string $field The field name to be returned |
|
106 | 106 | * @return A single field value |
107 | 107 | * @return -1 No rows were found |
108 | 108 | */ |
@@ -347,7 +347,7 @@ discard block |
||
347 | 347 | /** |
348 | 348 | * Get the backend platform |
349 | 349 | * |
350 | - * @return The backend platform |
|
350 | + * @return string backend platform |
|
351 | 351 | */ |
352 | 352 | public function getPlatform() |
353 | 353 | { |
@@ -383,7 +383,7 @@ discard block |
||
383 | 383 | * Change a db array into a PHP array |
384 | 384 | * |
385 | 385 | * @param $dbarr |
386 | - * @return \PHPPgAdmin\Database\A PHP array |
|
386 | + * @return string[] PHP array |
|
387 | 387 | * @internal param String $arr representing the DB array |
388 | 388 | */ |
389 | 389 | public function phpArray($dbarr) |
@@ -2075,7 +2075,7 @@ |
||
2075 | 2075 | // Pick out individual ACE's by carefully parsing. This is necessary in order |
2076 | 2076 | // to cope with usernames and stuff that contain commas |
2077 | 2077 | $aces = []; |
2078 | - $i = $j = 0; |
|
2078 | + $i = $j = 0; |
|
2079 | 2079 | $in_quotes = false; |
2080 | 2080 | while ($i < strlen($acl)) { |
2081 | 2081 | // If current char is a double quote and it's not escaped, then |
@@ -376,7 +376,7 @@ discard block |
||
376 | 376 | * Escapes bytea data for display on the screen |
377 | 377 | * |
378 | 378 | * @param $data The bytea data |
379 | - * @return Data formatted for on-screen display |
|
379 | + * @return string formatted for on-screen display |
|
380 | 380 | */ |
381 | 381 | public function escapeBytea($data) |
382 | 382 | { |
@@ -401,7 +401,7 @@ discard block |
||
401 | 401 | * Cleans (escapes) a string |
402 | 402 | * |
403 | 403 | * @param $str The string to clean, by reference |
404 | - * @return The cleaned string |
|
404 | + * @return null|string cleaned string |
|
405 | 405 | */ |
406 | 406 | public function clean(&$str) |
407 | 407 | { |
@@ -484,7 +484,7 @@ discard block |
||
484 | 484 | * Determines whether or not a user is a super user |
485 | 485 | * |
486 | 486 | * @param \PHPPgAdmin\Database\The|string $username The username of the user |
487 | - * @return True if is a super user, false otherwise |
|
487 | + * @return boolean if is a super user, false otherwise |
|
488 | 488 | */ |
489 | 489 | public function isSuperUser($username = '') |
490 | 490 | { |
@@ -543,7 +543,7 @@ discard block |
||
543 | 543 | /** |
544 | 544 | * Returns the current database encoding |
545 | 545 | * |
546 | - * @return The encoding. eg. SQL_ASCII, UTF-8, etc. |
|
546 | + * @return string encoding. eg. SQL_ASCII, UTF-8, etc. |
|
547 | 547 | */ |
548 | 548 | public function getDatabaseEncoding() |
549 | 549 | { |
@@ -654,7 +654,7 @@ discard block |
||
654 | 654 | * Sets the comment for an object in the database |
655 | 655 | * |
656 | 656 | * @pre All parameters must already be cleaned |
657 | - * @param $obj_type One of 'TABLE' | 'COLUMN' | 'VIEW' | 'SCHEMA' | 'SEQUENCE' | 'TYPE' | 'FUNCTION' | 'AGGREGATE' |
|
657 | + * @param string $obj_type One of 'TABLE' | 'COLUMN' | 'VIEW' | 'SCHEMA' | 'SEQUENCE' | 'TYPE' | 'FUNCTION' | 'AGGREGATE' |
|
658 | 658 | * @param $obj_name The name of the object for which to attach a comment. |
659 | 659 | * @param $table Name of table that $obj_name belongs to. Ignored unless $obj_type is 'TABLE' or 'COLUMN'. |
660 | 660 | * @param $comment The comment to add. |
@@ -1052,7 +1052,7 @@ discard block |
||
1052 | 1052 | /** |
1053 | 1053 | * Return the current schema search path |
1054 | 1054 | * |
1055 | - * @return Array of schema names |
|
1055 | + * @return string[] of schema names |
|
1056 | 1056 | */ |
1057 | 1057 | public function getSearchPath() |
1058 | 1058 | { |
@@ -1349,7 +1349,7 @@ discard block |
||
1349 | 1349 | * @pre MUST be run within a transaction |
1350 | 1350 | * @param $table The table to define |
1351 | 1351 | * @param bool|True $clean True to issue drop command, false otherwise |
1352 | - * @return \PHPPgAdmin\Database\A string containing the formatted SQL code |
|
1352 | + * @return null|string string containing the formatted SQL code |
|
1353 | 1353 | */ |
1354 | 1354 | public function getTableDefPrefix($table, $clean = false) |
1355 | 1355 | { |
@@ -1990,7 +1990,7 @@ discard block |
||
1990 | 1990 | * given its type. |
1991 | 1991 | * |
1992 | 1992 | * @param $object The name of the object whose privileges are to be retrieved |
1993 | - * @param $type The type of the object (eg. database, schema, relation, function or language) |
|
1993 | + * @param string $type The type of the object (eg. database, schema, relation, function or language) |
|
1994 | 1994 | * @param $table Optional, column's table if type = column |
1995 | 1995 | * @return Privileges array |
1996 | 1996 | * @return -1 invalid type |
@@ -2203,8 +2203,8 @@ discard block |
||
2203 | 2203 | * dumped after the table contents for speed and efficiency reasons |
2204 | 2204 | * |
2205 | 2205 | * @param $table The table to define |
2206 | - * @return A string containing the formatted SQL code |
|
2207 | - * @return null On error |
|
2206 | + * @return null|string string containing the formatted SQL code |
|
2207 | + * @return null|string On error |
|
2208 | 2208 | */ |
2209 | 2209 | public function getTableDefSuffix($table) |
2210 | 2210 | { |
@@ -3093,7 +3093,7 @@ discard block |
||
3093 | 3093 | * |
3094 | 3094 | * @param $table The table that contains the column |
3095 | 3095 | * @param $column The column to alter |
3096 | - * @param $state True to set null, false to set not null |
|
3096 | + * @param boolean $state True to set null, false to set not null |
|
3097 | 3097 | * @return \PHPPgAdmin\Database\A 0 success |
3098 | 3098 | */ |
3099 | 3099 | public function setColumnNull($table, $column, $state) |
@@ -3230,7 +3230,7 @@ discard block |
||
3230 | 3230 | * Returns all available autovacuum per table information. |
3231 | 3231 | * |
3232 | 3232 | * @param \PHPPgAdmin\Database\if|string $table if given, return autovacuum info for the given table or return all informations for all table |
3233 | - * @return \PHPPgAdmin\Database\A recordset |
|
3233 | + * @return \PHPPgAdmin\ArrayRecordSet recordset |
|
3234 | 3234 | */ |
3235 | 3235 | public function getTableAutovacuum($table = '') |
3236 | 3236 | { |
@@ -3535,7 +3535,7 @@ discard block |
||
3535 | 3535 | /** |
3536 | 3536 | * Delete a row from a table |
3537 | 3537 | * |
3538 | - * @param $table The table from which to delete |
|
3538 | + * @param string $table The table from which to delete |
|
3539 | 3539 | * @param $key An array mapping column => value to delete |
3540 | 3540 | * @param bool $schema |
3541 | 3541 | * @return bool|int 0 success |
@@ -4125,7 +4125,7 @@ discard block |
||
4125 | 4125 | * |
4126 | 4126 | * @param $viewname The name of the view to create |
4127 | 4127 | * @param $definition The definition for the new view |
4128 | - * @param $replace True to replace the view, false otherwise |
|
4128 | + * @param boolean $replace True to replace the view, false otherwise |
|
4129 | 4129 | * @param $comment |
4130 | 4130 | * @return bool|int 0 success |
4131 | 4131 | */ |
@@ -4373,7 +4373,7 @@ discard block |
||
4373 | 4373 | * |
4374 | 4374 | * @param $table The table to test |
4375 | 4375 | * |
4376 | - * @return true if the table has been already clustered |
|
4376 | + * @return boolean if the table has been already clustered |
|
4377 | 4377 | */ |
4378 | 4378 | public function alreadyClustered($table) |
4379 | 4379 | { |
@@ -6148,7 +6148,7 @@ discard block |
||
6148 | 6148 | * Note: Only needed for pre-7.4 servers, this function is deprecated |
6149 | 6149 | * |
6150 | 6150 | * @param $trigger An array containing fields from the trigger table |
6151 | - * @return The trigger definition string |
|
6151 | + * @return string trigger definition string |
|
6152 | 6152 | */ |
6153 | 6153 | public function getTriggerDef($trigger) |
6154 | 6154 | { |
@@ -6278,8 +6278,8 @@ discard block |
||
6278 | 6278 | /** |
6279 | 6279 | * Returns a list of all functions in the database |
6280 | 6280 | * |
6281 | - * @param bool|\PHPPgAdmin\Database\If $all If true, will find all available functions, if false just those in search path |
|
6282 | - * @param $type If not null, will find all functions with return value = type |
|
6281 | + * @param boolean $all If true, will find all available functions, if false just those in search path |
|
6282 | + * @param string $type If not null, will find all functions with return value = type |
|
6283 | 6283 | * @return \PHPPgAdmin\Database\All functions |
6284 | 6284 | */ |
6285 | 6285 | public function getFunctions($all = false, $type = null) |
@@ -8763,7 +8763,7 @@ discard block |
||
8763 | 8763 | * @param $name Entry in $_FILES to use |
8764 | 8764 | * @param $callback (optional) Callback function to call with each query, |
8765 | 8765 | * its result and line number. |
8766 | - * @return True for general success, false on any failure. |
|
8766 | + * @return boolean for general success, false on any failure. |
|
8767 | 8767 | */ |
8768 | 8768 | public function executeScript($name, $callback = null) |
8769 | 8769 | { |
@@ -9033,8 +9033,8 @@ discard block |
||
9033 | 9033 | * Private helper method to detect a valid $foo$ quote delimiter at |
9034 | 9034 | * the start of the parameter dquote |
9035 | 9035 | * |
9036 | - * @param $dquote |
|
9037 | - * @return True if valid, false otherwise |
|
9036 | + * @param string $dquote |
|
9037 | + * @return boolean if valid, false otherwise |
|
9038 | 9038 | */ |
9039 | 9039 | private function valid_dolquote($dquote) |
9040 | 9040 | { |
@@ -9175,7 +9175,7 @@ discard block |
||
9175 | 9175 | * @param $ops An array of the operators to use |
9176 | 9176 | * @param $orderby (optional) An array of column numbers or names (one based) |
9177 | 9177 | * mapped to sort direction (asc or desc or '' or null) to order by |
9178 | - * @return The SQL query |
|
9178 | + * @return string SQL query |
|
9179 | 9179 | */ |
9180 | 9180 | public function getSelectSQL($table, $show, $values, $ops, $orderby = []) |
9181 | 9181 | { |
@@ -9280,7 +9280,7 @@ discard block |
||
9280 | 9280 | * Finds the number of rows that would be returned by a |
9281 | 9281 | * query. |
9282 | 9282 | * |
9283 | - * @param $query The SQL query |
|
9283 | + * @param string $query The SQL query |
|
9284 | 9284 | * @param $count The count query |
9285 | 9285 | * @return The count of rows |
9286 | 9286 | * @return -1 error |
@@ -92,7 +92,7 @@ |
||
92 | 92 | $lang = $this->lang; |
93 | 93 | $data = $misc->getDatabaseAccessor(); |
94 | 94 | |
95 | - $attPre = function (&$rowdata) use ($data) { |
|
95 | + $attPre = function(&$rowdata) use ($data) { |
|
96 | 96 | $rowdata->fields['+type'] = $data->formatType($rowdata->fields['type'], $rowdata->fields['atttypmod']); |
97 | 97 | }; |
98 | 98 |
@@ -638,7 +638,7 @@ |
||
638 | 638 | echo '<p>' . (($defaults['autovacuum'] == 'on') ? $lang['strturnedon'] : $lang['strturnedoff']) . '</p>'; |
639 | 639 | echo "<p class=\"message\">{$lang['strnotdefaultinred']}</p>"; |
640 | 640 | |
641 | - $enlight = function ($f, $p) { |
|
641 | + $enlight = function($f, $p) { |
|
642 | 642 | if (isset($f[$p[0]]) and ($f[$p[0]] != $p[1])) { |
643 | 643 | return '<span style="color:#F33;font-weight:bold">' . htmlspecialchars($f[$p[0]]) . '</span>'; |
644 | 644 | } |
@@ -338,6 +338,7 @@ discard block |
||
338 | 338 | |
339 | 339 | /** |
340 | 340 | * Add or Edit autovacuum params and save them |
341 | + * @param boolean $confirm |
|
341 | 342 | */ |
342 | 343 | public function doEditAutovacuum($type, $confirm, $msg = '') |
343 | 344 | { |
@@ -454,6 +455,7 @@ discard block |
||
454 | 455 | |
455 | 456 | /** |
456 | 457 | * confirm drop autovacuum params for a table and drop it |
458 | + * @param boolean $confirm |
|
457 | 459 | */ |
458 | 460 | public function doDropAutovacuum($type, $confirm) |
459 | 461 | { |
@@ -736,6 +738,10 @@ discard block |
||
736 | 738 | } |
737 | 739 | } |
738 | 740 | |
741 | + /** |
|
742 | + * @param string $action |
|
743 | + * @param string $type |
|
744 | + */ |
|
739 | 745 | public function adminActions($action, $type) |
740 | 746 | { |
741 | 747 | if ($type == 'database') { |
@@ -121,7 +121,7 @@ |
||
121 | 121 | * This is a callback function to display the result of each separate query |
122 | 122 | * @param ADORecordSet $rs The recordset returned by the script execetor |
123 | 123 | */ |
124 | - $sqlCallback = function ($query, $rs, $lineno) use ($data, $misc, $lang, $_connection) { |
|
124 | + $sqlCallback = function($query, $rs, $lineno) use ($data, $misc, $lang, $_connection) { |
|
125 | 125 | |
126 | 126 | // Check if $rs is false, if so then there was a fatal error |
127 | 127 | if ($rs === false) { |
@@ -91,11 +91,11 @@ |
||
91 | 91 | $lang = $this->lang; |
92 | 92 | $data = $misc->getDatabaseAccessor(); |
93 | 93 | |
94 | - $renderRoleConnLimit = function ($val) use ($lang) { |
|
94 | + $renderRoleConnLimit = function($val) use ($lang) { |
|
95 | 95 | return $val == '-1' ? $lang['strnolimit'] : htmlspecialchars($val); |
96 | 96 | }; |
97 | 97 | |
98 | - $renderRoleExpires = function ($val) use ($lang) { |
|
98 | + $renderRoleExpires = function($val) use ($lang) { |
|
99 | 99 | return $val == 'infinity' ? $lang['strnever'] : htmlspecialchars($val); |
100 | 100 | }; |
101 | 101 |
@@ -588,6 +588,7 @@ discard block |
||
588 | 588 | |
589 | 589 | /** |
590 | 590 | * Show confirmation of drop a role and perform actual drop |
591 | + * @param boolean $confirm |
|
591 | 592 | */ |
592 | 593 | public function doDrop($confirm) |
593 | 594 | { |
@@ -806,6 +807,7 @@ discard block |
||
806 | 807 | |
807 | 808 | /** |
808 | 809 | * Show confirmation of change password and actually change password |
810 | + * @param boolean $confirm |
|
809 | 811 | */ |
810 | 812 | public function doChangePassword($confirm, $msg = '') |
811 | 813 | { |
@@ -100,7 +100,7 @@ |
||
100 | 100 | $lang = $this->lang; |
101 | 101 | $data = $misc->getDatabaseAccessor(); |
102 | 102 | |
103 | - $tgPre = function (&$rowdata, $actions) use ($data) { |
|
103 | + $tgPre = function(&$rowdata, $actions) use ($data) { |
|
104 | 104 | // toggle enable/disable trigger per trigger |
105 | 105 | if (!$data->phpBool($rowdata->fields['tgenabled'])) { |
106 | 106 | unset($actions['disable']); |
@@ -294,6 +294,7 @@ discard block |
||
294 | 294 | |
295 | 295 | /** |
296 | 296 | * Show confirmation of drop and perform actual drop |
297 | + * @param boolean $confirm |
|
297 | 298 | */ |
298 | 299 | public function doDrop($confirm) |
299 | 300 | { |
@@ -330,6 +331,7 @@ discard block |
||
330 | 331 | |
331 | 332 | /** |
332 | 333 | * Show confirmation of enable trigger and perform enabling the trigger |
334 | + * @param boolean $confirm |
|
333 | 335 | */ |
334 | 336 | public function doEnable($confirm) |
335 | 337 | { |
@@ -365,6 +367,7 @@ discard block |
||
365 | 367 | |
366 | 368 | /** |
367 | 369 | * Show confirmation of disable trigger and perform disabling the trigger |
370 | + * @param boolean $confirm |
|
368 | 371 | */ |
369 | 372 | public function doDisable($confirm) |
370 | 373 | { |