Skip to content

Commit

Permalink
Merge pull request #66 from smi2/scrutinizer-patch-4
Browse files Browse the repository at this point in the history
Scrutinizer Auto-Fixes
  • Loading branch information
isublimity authored Jun 25, 2018
2 parents 7ed1ab2 + 3bc6b6b commit 579b4cf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Cluster.php
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ public function rescan()
$tables[$row['database']][$row['table']][$node] = $row;
}
$result['replicas'][$node] = $r;
} catch (\Exception $E) {
}catch (\Exception $E) {
$result['replicas'][$node] = false;
$badNodes[$node] = $E->getMessage();
$this->error[] = 'statementsReplicas:' . $E->getMessage();
Expand All @@ -299,7 +299,7 @@ public function rescan()
];
}

} catch (\Exception $E) {
}catch (\Exception $E) {
$result['clusters'][$node] = false;

$this->error[] = 'clusters:' . $E->getMessage();
Expand Down
2 changes: 1 addition & 1 deletion src/Transport/Http.php
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ public function writeAsyncCSV($sql, $file_name)
$request->url($url);

$request->setCallbackFunction(function(CurlerRequest $request) {
$handle=$request->getInfileHandle();
$handle = $request->getInfileHandle();
if (is_resource($handle)) {
fclose($handle);
}
Expand Down

0 comments on commit 579b4cf

Please sign in to comment.