style(legacy): fix code format with php-cs-fixer (#1674)

This commit is contained in:
Jonas L 2022-03-14 11:15:04 +01:00 committed by GitHub
parent e1dc69af9e
commit 69d8eae845
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
111 changed files with 1163 additions and 1163 deletions

View file

@ -74,7 +74,7 @@ class Application_Model_Datatables
if (isset($data['advSearch']) && $data['advSearch'] === 'true') {
$librarySetting = Application_Model_Preference::getCurrentLibraryTableColumnMap();
//$displayColumns[] = 'owner';
// $displayColumns[] = 'owner';
// map that maps original column position to db name
$current2dbname = [];
@ -173,27 +173,27 @@ class Application_Model_Datatables
$sql = $selectorRows . ' FROM ' . $fromTable . ' ORDER BY ' . $orderby;
}
//limit the results returned.
// limit the results returned.
if ($displayLength !== -1) {
$sql .= ' OFFSET ' . $data['iDisplayStart'] . ' LIMIT ' . $displayLength;
}
try {
//Logging::info($sqlTotalRows);
// Logging::info($sqlTotalRows);
$r = $con->query($sqlTotalRows);
$totalRows = $r->fetchColumn(0);
if (isset($sqlTotalDisplayRows)) {
//Logging::info("sql is set");
//Logging::info($sqlTotalDisplayRows);
// Logging::info("sql is set");
// Logging::info($sqlTotalDisplayRows);
$totalDisplayRows = Application_Common_Database::prepareAndExecute($sqlTotalDisplayRows, $params, 'column');
} else {
//Logging::info("sql is not set.");
// Logging::info("sql is not set.");
$totalDisplayRows = $totalRows;
}
//TODO
// TODO
if ($needToBind) {
$results = Application_Common_Database::prepareAndExecute($sql, $params);
} else {