Permalink
Browse files

Enable UpgradeShell to recognize new line between class name and {

  • Loading branch information...
1 parent 0b4f735 commit a3a2d55c94a26284833629479334a29e5ace1dc8 @CauanCabral CauanCabral committed Mar 2, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Cake/Console/Command/UpgradeShell.php
@@ -191,7 +191,7 @@ public function locations() {
$defaultOptions = array(
'recursive' => true,
'checkFolder' => true,
- 'regex' => '@class (\S*) .*{@i'
+ 'regex' => '@class (\S*) .*(\s|\v)*{@i'
);
foreach ($sourceDirs as $dir => $options) {
if (is_numeric($dir)) {

0 comments on commit a3a2d55

Please sign in to comment.