Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implemented cache only mode and updated unit tests #8

Merged
merged 1 commit into from
Oct 19, 2013
Merged

Implemented cache only mode and updated unit tests #8

merged 1 commit into from
Oct 19, 2013

Conversation

lblockken
Copy link
Contributor

No description provided.

$this->log->debug("Refresh forced, skipping cached content from $filePath");
if ($cacheOnly == true) {
unset($urls);
$urls[]=$filePath;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use $urls = array($filePath) instead of unsetting it first and recreating the var

@skymeyer skymeyer mentioned this pull request Oct 15, 2013
@lblockken
Copy link
Contributor Author

Implemented suggested fixes

}
} else {
if ($cacheOnly) {
throw new SyncException("No cache file found",array("No cache file found in cache only mode"));
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's ok to just return array() here, the public API calling prepareUrls already throws an exception

@skymeyer
Copy link
Owner

Can you do a rebase -i to squash your commits then I'll pull it in and do some cleanups.

@lblockken
Copy link
Contributor Author

branche rebased and implemented suggested change

@skymeyer skymeyer merged commit cace793 into skymeyer:master Oct 19, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants