Skip to content

Commit

Permalink
Fix some issues reported by Scrutinizer
Browse files Browse the repository at this point in the history
Signed-off-by: William Desportes <williamdes@wdes.fr>
  • Loading branch information
williamdes committed Feb 14, 2020
1 parent 8f0d7d3 commit 9d595f8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
6 changes: 0 additions & 6 deletions test/classes/TableTest.php
Expand Up @@ -701,7 +701,6 @@ public function testGenerateFieldSpec()
$query
);

$type = 'INT';
$default_type = 'NONE';
$move_to = '-first';
$query = Table::generateFieldSpec(
Expand All @@ -727,7 +726,6 @@ public function testGenerateFieldSpec()
$query
);

$type = 'INT';
$default_type = 'NONE';
$move_to = '-first';
$query = Table::generateFieldSpec(
Expand All @@ -754,7 +752,6 @@ public function testGenerateFieldSpec()
$query
);

$type = 'INT';
$default_type = 'NONE';
$move_to = '-first';
$query = Table::generateFieldSpec(
Expand All @@ -781,7 +778,6 @@ public function testGenerateFieldSpec()
$query
);

$type = 'INT';
$default_type = 'NONE';
$move_to = '-first';
$query = Table::generateFieldSpec(
Expand All @@ -808,7 +804,6 @@ public function testGenerateFieldSpec()
$query
);

$type = 'INT';
$default_type = 'NONE';
$move_to = '-first';
$query = Table::generateFieldSpec(
Expand All @@ -835,7 +830,6 @@ public function testGenerateFieldSpec()
$query
);

$type = 'INT';
$default_type = 'NONE';
$move_to = '-first';
$query = Table::generateFieldSpec(
Expand Down
4 changes: 2 additions & 2 deletions test/selenium/TestBase.php
Expand Up @@ -1032,7 +1032,7 @@ public function onNotSuccessfulTest(Throwable $t): void
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);

$result = curl_exec($ch);
if (curl_errno($ch)) {
if ($ch !== false && curl_errno($ch)) {
echo 'Error: ' . curl_error($ch) . PHP_EOL;
}
curl_close($ch);
Expand All @@ -1058,7 +1058,7 @@ public function onNotSuccessfulTest(Throwable $t): void
if (isset($proj->automation_session)) {
echo 'Test failed, get more information here: ' . $proj->automation_session->public_url . PHP_EOL;
}
if (curl_errno($ch)) {
if ($ch !== false && curl_errno($ch)) {
echo 'Error: ' . curl_error($ch) . PHP_EOL;
}
curl_close($ch);
Expand Down

0 comments on commit 9d595f8

Please sign in to comment.