Fix whitespace errors.

This commit is contained in:
mark_story 2012-09-13 21:05:10 -04:00
parent 5081be171f
commit c13ed3366b
2 changed files with 4 additions and 4 deletions

View file

@ -165,7 +165,7 @@ class ClassRegistry {
$instance = $reflection->newInstance();
}
if ($strict && !$instance instanceof Model) {
$instance = null;
$instance = null;
}
}
if (!isset($instance)) {

View file

@ -44,7 +44,7 @@ class Folder {
* @constant SKIP
*/
const SKIP = 'skip';
/**
* Path to Folder.
*
@ -658,7 +658,7 @@ class Folder {
while (($item = readdir($handle)) !== false) {
$to = Folder::addPathElement($toDir, $item);
if (($options['scheme'] != Folder::SKIP || !is_dir($to)) && !in_array($item, $exceptions)) {
$from = Folder::addPathElement($fromDir, $item);
$from = Folder::addPathElement($fromDir, $item);
if (is_file($from)) {
if (copy($from, $to)) {
chmod($to, intval($mode, 8));
@ -668,7 +668,7 @@ class Folder {
$this->_errors[] = __d('cake_dev', '%s NOT copied to %s', $from, $to);
}
}
if (is_dir($from) && file_exists($to) && $options['scheme'] == Folder::OVERWRITE) {
$this->delete($to);
}