Skip to content

Commit

Permalink
phpcbf fixing trailing whitespaces
Browse files Browse the repository at this point in the history
Signed-off-by: iifawzi <iifawzie@gmail.com>
  • Loading branch information
iifawzi committed Nov 18, 2022
1 parent b7bf83c commit 5207fcd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
6 changes: 3 additions & 3 deletions libraries/classes/Display/Results.php
Original file line number Diff line number Diff line change
Expand Up @@ -3443,12 +3443,12 @@ private function getDataCellForNonNumericColumns(
* Checks the posted options for viewing query results
* and sets appropriate values in the session.
*
* @param array $analyzedSqlResults the analyzed query results
*
* @todo make maximum remembered queries configurable
* @todo move/split into SQL class!?
* @todo currently this is called twice unnecessary
* @todo ignore LIMIT and ORDER in query!?
*
* @param array $analyzedSqlResults the analyzed query results
*/
public function setConfigParamsForDisplayTable(array $analyzedSqlResults): void
{
Expand Down Expand Up @@ -3484,7 +3484,7 @@ public function setConfigParamsForDisplayTable(array $analyzedSqlResults): void
$query['pos'] = 0;
}

// Full text is needed in case of explain statements, if not specified.
// Full text is needed in case of explain statements, if not specified.
$fullText = $analyzedSqlResults['is_explain'];

if (
Expand Down
7 changes: 4 additions & 3 deletions test/classes/Display/ResultsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -1129,7 +1129,8 @@ public function testBuildValueDisplayNoTrainlingSpaces(): void
);
}

public function testPftextConfigParam(): void {
public function testPftextConfigParam(): void
{
$db = 'test_db';
$table = 'test_table';

Expand All @@ -1146,7 +1147,7 @@ public function testPftextConfigParam(): void {

$object = new DisplayResults($this->dbi, $db, $table, 1, '', $query);
$object->setConfigParamsForDisplayTable($analyzedSqlResults);

$this->assertSame('P', $_SESSION['tmpval']['pftext']);
}

Expand All @@ -1169,7 +1170,7 @@ public function testSetConfigParamsForDisplayTable(
$table = 'test_table';
$query = 'SELECT * FROM `test_db`.`test_table`;';
[$analyzedSqlResults] = ParseAnalyze::sqlQuery($query, $db);

$object = new DisplayResults($this->dbi, $db, $table, 1, '', $query);
$object->setConfigParamsForDisplayTable($analyzedSqlResults);

Expand Down

0 comments on commit 5207fcd

Please sign in to comment.