Skip to content

Commit

Permalink
Enable UpgradeShell to recognize new line between class name and {
Browse files Browse the repository at this point in the history
  • Loading branch information
CauanCabral committed Mar 2, 2012
1 parent 0b4f735 commit a3a2d55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Cake/Console/Command/UpgradeShell.php
Expand Up @@ -191,7 +191,7 @@ public function locations() {
$defaultOptions = array( $defaultOptions = array(
'recursive' => true, 'recursive' => true,
'checkFolder' => true, 'checkFolder' => true,
'regex' => '@class (\S*) .*{@i' 'regex' => '@class (\S*) .*(\s|\v)*{@i'
); );
foreach ($sourceDirs as $dir => $options) { foreach ($sourceDirs as $dir => $options) {
if (is_numeric($dir)) { if (is_numeric($dir)) {
Expand Down

0 comments on commit a3a2d55

Please sign in to comment.