Skip to content

Commit

Permalink
Simplify code.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Aug 25, 2012
1 parent 0441c9f commit 17ba713
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lib/Cake/Console/Command/Task/ProjectTask.php
Expand Up @@ -303,10 +303,7 @@ public function cachePrefix($dir) {
$contents = $File->read();
if (preg_match('/(\$prefix = \'myapp_\';)/', $contents, $match)) {
$result = str_replace($match[0], '$prefix = \'' . $app . '_\';', $contents);
if ($File->write($result)) {
return true;
}
return false;
return $File->write($result);
}
return false;
}
Expand Down

0 comments on commit 17ba713

Please sign in to comment.