Permalink
Browse files

Improved code readability

  • Loading branch information...
Jonathon Hill
Jonathon Hill committed Nov 12, 2012
1 parent 02ea66e commit 4ddf9443c553ee734a48432e08e9253fc514b43c
Showing with 3 additions and 1 deletion.
  1. +3 −1 system/libraries/Migration.php
@@ -142,7 +142,9 @@ public function __construct($config = array())
}
// 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')))

0 comments on commit 4ddf944

Please sign in to comment.