diff options
author | fabiocarneiro <fahecs@gmail.com> | 2015-05-27 12:56:17 +0300 |
---|---|---|
committer | fabiocarneiro <fahecs@gmail.com> | 2015-05-27 12:56:17 +0300 |
commit | a2a63d34ebb460174e1a3e8d8022fe3e3ab4b469 (patch) | |
tree | fbfc480352bc711bc03f12849824507e56b5034a /core/Updater.php | |
parent | b2f5b5489ceca056217fc6663ec6c2c6b052cd42 (diff) |
fix core folder with php-cs-fixer for psr-2
Diffstat (limited to 'core/Updater.php')
-rw-r--r-- | core/Updater.php | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/core/Updater.php b/core/Updater.php index bccddff3f2..9190320fa7 100644 --- a/core/Updater.php +++ b/core/Updater.php @@ -10,7 +10,6 @@ namespace Piwik; use Piwik\Columns\Updater as ColumnUpdater; use Piwik\Container\StaticContainer; -use Piwik\Exception\DatabaseSchemaIsNewerThanCodebaseException; use Piwik\Updater\UpdateObserver; use Zend_Db_Exception; @@ -290,7 +289,7 @@ class Updater foreach ($files as $file) { $fileVersion = basename($file, '.php'); - if ( // if the update is from a newer version + if (// if the update is from a newer version version_compare($currentVersion, $fileVersion) == -1 // but we don't execute updates from non existing future releases && version_compare($fileVersion, $newVersion) <= 0 @@ -551,7 +550,7 @@ class Updater * @param array $sqlarray An array of SQL queries to be executed * @throws UpdaterErrorException */ - static function updateDatabase($file, $sqlarray) + public static function updateDatabase($file, $sqlarray) { self::$activeInstance->executeMigrationQueries($file, $sqlarray); } |