Skip to content

Instantly share code, notes, and snippets.

@Problematic
Created September 10, 2011 18:11
Show Gist options
  • Save Problematic/1208593 to your computer and use it in GitHub Desktop.
Save Problematic/1208593 to your computer and use it in GitHub Desktop.
<?php
public function create(VoteInterface $vote, VotableCommentInterface $comment)
{
$this->voteBlamer->blame($vote);
if (!$this->validator->validate($vote)) {
return false;
}
$this->voteManager->addVote($vote, $comment);
return true;
}
<?php
public function create(VoteInterface $vote, VotableCommentInterface $comment)
{
$this->voteBlamer->blame($vote);
if (count($this->validator->validate($vote))) {
return false;
}
$this->voteManager->addVote($vote, $comment);
return true;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment