Skip to content

Instantly share code, notes, and snippets.

@damianoporta
Created December 17, 2015 00:45
Show Gist options
  • Save damianoporta/bbb432948e6fb078d882 to your computer and use it in GitHub Desktop.
Save damianoporta/bbb432948e6fb078d882 to your computer and use it in GitHub Desktop.
if (($percentage != 100 && $entity->get('visible') == 1) ||
($percentage == 100 && $entity->get('visible') == 0)
) {
return true;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment