Permalink
Browse files

Simplify code.

  • Loading branch information...
1 parent 0441c9f commit 17ba71365159124383bdd18654ee3add261bc419 @markstory markstory committed Aug 25, 2012
Showing with 1 addition and 4 deletions.
  1. +1 −4 lib/Cake/Console/Command/Task/ProjectTask.php
View
5 lib/Cake/Console/Command/Task/ProjectTask.php
@@ -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;
}

0 comments on commit 17ba713

Please sign in to comment.