X-Git-Url: https://git.mxchange.org/?p=core.git;a=blobdiff_plain;f=framework%2Fmain%2Fclasses%2Fdatabase%2Fbackend%2Flfdb_legacy%2Fclass_CachedLocalFileDatabase.php;h=d79963d70c41329ebafd6f784d64f462f695fa07;hp=1171aab931d593e1e3f666dd2721999c12611156;hb=498e6b065ce47804bff4e1073592a2cc8e28f8ef;hpb=8a70226bd287a3f13b27932e2ec88d16c51c7e39 diff --git a/framework/main/classes/database/backend/lfdb_legacy/class_CachedLocalFileDatabase.php b/framework/main/classes/database/backend/lfdb_legacy/class_CachedLocalFileDatabase.php index 1171aab9..d79963d7 100644 --- a/framework/main/classes/database/backend/lfdb_legacy/class_CachedLocalFileDatabase.php +++ b/framework/main/classes/database/backend/lfdb_legacy/class_CachedLocalFileDatabase.php @@ -60,7 +60,7 @@ class CachedLocalFileDatabase extends BaseDatabaseBackend implements DatabaseBac /** * The last read file's content including header information */ - private $lastContents = array(); + private $lastContents = []; /** * Whether the "connection is already up @@ -70,7 +70,7 @@ class CachedLocalFileDatabase extends BaseDatabaseBackend implements DatabaseBac /** * Table information array */ - private $tableInfo = array(); + private $tableInfo = []; /** * Element for index @@ -275,7 +275,7 @@ class CachedLocalFileDatabase extends BaseDatabaseBackend implements DatabaseBac */ private function getContentsFromTableInfoFile (StoreableCriteria $dataSetInstance) { // Default content is no data - $infoArray = array(); + $infoArray = []; // Create FQFN for getting the table information file $infoInstance = $this->generateFileFromDataSet($dataSetInstance, 'info'); @@ -422,7 +422,7 @@ class CachedLocalFileDatabase extends BaseDatabaseBackend implements DatabaseBac // Initialize the result data, this need to be rewritten e.g. if a local file cannot be read $resultData = array( BaseDatabaseBackend::RESULT_INDEX_STATUS => self::RESULT_OKAY, - BaseDatabaseBackend::RESULT_INDEX_ROWS => array() + BaseDatabaseBackend::RESULT_INDEX_ROWS => [] ); // Initialize limit/skip @@ -451,7 +451,7 @@ class CachedLocalFileDatabase extends BaseDatabaseBackend implements DatabaseBac $isFound = true; // Search in the criteria with FMFW (First Matches, First Wins) - //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('CACHED-LFDB: dataArray()=%d', count($dataArray))); + //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('CACHED-LFDB: data[]=%d', count($dataArray))); foreach ($dataArray as $key => $value) { // Make sure value is not bool assert(!is_bool($value)); @@ -641,7 +641,7 @@ class CachedLocalFileDatabase extends BaseDatabaseBackend implements DatabaseBac } // END - foreach // Write the data to a local file - //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('CACHED-LFDB: Writing dataArray()=' . count($dataArray) . ' to ' . $fileInfoInstance->getPathname() . ' ...'); + //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('CACHED-LFDB: Writing data[]=' . count($dataArray) . ' to ' . $fileInfoInstance->getPathname() . ' ...'); $this->writeDataArrayToFqfn($fileInfoInstance, $dataArray); // Count found entries up