protected function checkSqLiteDatabaseSize($connection)
    {
        try {
            $path = realpath(DB::connection($connection)->getConfig('database'));
            if ($path !== false) {
                return filesize($path);
            }
        } catch (Exception $e) {
            $this->eye->logger()->debug('Error during sqLite DB size check', ['exception' => $e->getMessage(), 'connection' => $connection]);
        }

        return -1;
    }
protected function checkSqLiteDatabaseSize($connection)
    {
        try {
            $path = realpath(DB::connection($connection)->getConfig('database'));
            if ($path !== false) {
                return filesize($path);
            }
        } catch (Exception $e) {
            $this->eye->logger()->debug('Error during sqLite DB size check', ['exception' => $e->getMessage(), 'connection' => $connection]);
        }

        return -1;
    }
protected function checkSqLiteDatabaseSize ( $ connection ) { try { $ path = realpath ( DB :: connection ( $ connection ) -> getConfig ( 'database' ) ) ; if ( $ path !== false ) { return filesize ( $ path ) ; } } catch ( Exception $ e ) { $ this -> eye -> logger ( ) -> debug ( 'Error during sqLite DB size check' , [ 'exception' => $ e -> getMessage ( ) , 'connection' => $ connection ] ) ; } return - 1 ; }
Return the size of the Sqlite database.

@param  string  $connection
@return int
Return the size of the Sqlite database .