From 4ddf9443c553ee734a48432e08e9253fc514b43c Mon Sep 17 00:00:00 2001 From: Jonathon Hill Date: Mon, 12 Nov 2012 18:30:59 -0500 Subject: Improved code readability --- system/libraries/Migration.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'system/libraries/Migration.php') 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'))) -- cgit v1.2.3-24-g4f1b