Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Simplify code.

  • Loading branch information...
commit 17ba71365159124383bdd18654ee3add261bc419 1 parent 0441c9f
@markstory markstory authored
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;
}
Please sign in to comment.
Something went wrong with that request. Please try again.