summaryrefslogtreecommitdiffstats
path: root/system/libraries
diff options
context:
space:
mode:
authorJonathon Hill <jhill@brandmovers.com>2012-11-13 00:30:59 +0100
committerJonathon Hill <jhill@brandmovers.com>2012-11-13 00:30:59 +0100
commit4ddf9443c553ee734a48432e08e9253fc514b43c (patch)
treeadfc24aea3b62b930a3e13dacb88575146ea0d4a /system/libraries
parent02ea66eb922ade4646acbbe22be6354ad8916a0f (diff)
Improved code readability
Diffstat (limited to 'system/libraries')
-rw-r--r--system/libraries/Migration.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/system/libraries/Migration.php b/system/libraries/Migration.php
index d08afa598..27d7df010 100644
--- a/system/libraries/Migration.php
+++ b/system/libraries/Migration.php
@@ -142,7 +142,9 @@ class CI_Migration {
}
// Migration basename regex
- $this->_migration_regex = $this->_migration_type === 'timestamp' ? '/^\d{14}_(\w+)$/' : '/^\d{3}_(\w+)$/';
+ $this->_migration_regex = ($this->_migration_type === 'timestamp')
+ ? '/^\d{14}_(\w+)$/'
+ : '/^\d{3}_(\w+)$/';
// Make sure a valid migration numbering type was set.
if ( ! in_array($this->_migration_type, array('sequential', 'timestamp')))