Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit fb52e6a

Browse files
committed
Closing parenthesis of a multi-line function call must be on a line by itself
Signed-off-by: Madhura Jayaratne <[email protected]>
1 parent 04f9892 commit fb52e6a

7 files changed

Lines changed: 33 additions & 19 deletions

File tree

js/get_image.js.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,11 @@
2020
require_once './libraries/OutputBuffering.class.php';
2121
$buffer = PMA_OutputBuffering::getInstance();
2222
$buffer->start();
23-
register_shutdown_function(function() {
24-
echo PMA_OutputBuffering::getInstance()->getContents();
25-
});
23+
register_shutdown_function(
24+
function() {
25+
echo PMA_OutputBuffering::getInstance()->getContents();
26+
}
27+
);
2628

2729
// Get the data for the sprites, if it's available
2830
if (is_readable($_SESSION['PMA_Theme']->getPath() . '/sprites.lib.php')) {

js/get_scripts.js.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,11 @@
2929
include_once './libraries/OutputBuffering.class.php';
3030
$buffer = PMA_OutputBuffering::getInstance();
3131
$buffer->start();
32-
register_shutdown_function(function() {
33-
echo PMA_OutputBuffering::getInstance()->getContents();
34-
});
32+
register_shutdown_function(
33+
function() {
34+
echo PMA_OutputBuffering::getInstance()->getContents();
35+
}
36+
);
3537

3638
$_GET['scripts'] = json_decode($_GET['scripts']);
3739
if (! empty($_GET['scripts']) && is_array($_GET['scripts'])) {

js/messages.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,11 @@
2929
require_once './libraries/OutputBuffering.class.php';
3030
$buffer = PMA_OutputBuffering::getInstance();
3131
$buffer->start();
32-
register_shutdown_function(function() {
33-
echo PMA_OutputBuffering::getInstance()->getContents();
34-
});
32+
register_shutdown_function(
33+
function() {
34+
echo PMA_OutputBuffering::getInstance()->getContents();
35+
}
36+
);
3537

3638
$js_messages['strNoDropDatabases'] = __('"DROP DATABASE" statements are disabled.');
3739
if ($cfg['AllowUserDropDatabase']) {

js/whitelist.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,11 @@
2525
require_once './libraries/OutputBuffering.class.php';
2626
$buffer = PMA_OutputBuffering::getInstance();
2727
$buffer->start();
28-
register_shutdown_function(function() {
29-
echo PMA_OutputBuffering::getInstance()->getContents();
30-
});
28+
register_shutdown_function(
29+
function() {
30+
echo PMA_OutputBuffering::getInstance()->getContents();
31+
}
32+
);
3133

3234
echo "var PMA_gotoWhitelist = new Array();\n";
3335
$i = -1;

libraries/Console.class.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -307,8 +307,10 @@ public function getDisplay()
307307
. '<label><input type="checkbox" name="current_query">'
308308
. __('Show current browsing query') . '</label><br>'
309309
. '<label><input type="checkbox" name="enter_executes">'
310-
. __('Execute queries on Enter and insert new line with Shift + Enter. '
311-
. 'To make this permanent, view settings.') . '</label><br>'
310+
. __(
311+
'Execute queries on Enter and insert new line with Shift + Enter. '
312+
. 'To make this permanent, view settings.'
313+
) . '</label><br>'
312314
. '<label><input type="checkbox" name="dark_theme">'
313315
. __('Switch to dark theme') . '</label><br>'
314316
. '</div>';

libraries/Header.class.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -404,8 +404,10 @@ public function getDisplay()
404404
$this->_scripts->addFile('codemirror/addon/hint/show-hint.js');
405405
$this->_scripts->addFile('codemirror/addon/hint/sql-hint.js');
406406
}
407-
$this->_scripts->addCode('ConsoleEnterExecutes='
408-
. ($GLOBALS['cfg']['ConsoleEnterExecutes'] ? 'true' : 'false'));
407+
$this->_scripts->addCode(
408+
'ConsoleEnterExecutes='
409+
. ($GLOBALS['cfg']['ConsoleEnterExecutes'] ? 'true' : 'false')
410+
);
409411
$this->_scripts->addFiles($this->_console->getScripts());
410412
if ($this->_userprefsOfferImport) {
411413
$this->_scripts->addFile('config.js');

phpmyadmin.css.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,11 @@
2323
include_once 'libraries/OutputBuffering.class.php';
2424
$buffer = PMA_OutputBuffering::getInstance();
2525
$buffer->start();
26-
register_shutdown_function(function() {
27-
echo PMA_OutputBuffering::getInstance()->getContents();
28-
});
26+
register_shutdown_function(
27+
function() {
28+
echo PMA_OutputBuffering::getInstance()->getContents();
29+
}
30+
);
2931
}
3032

3133
// Send correct type:

0 commit comments

Comments
 (0)