Skip to content

Commit

Permalink
Remove JS logic operators
Browse files Browse the repository at this point in the history
  • Loading branch information
TomHAnderson committed Sep 4, 2013
1 parent f6abc6d commit 8f0a735
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/KeenIO/Service/KeenIO.php
Original file line number Diff line number Diff line change
Expand Up @@ -141,11 +141,13 @@ public static function addEvent($collectionName, $parameters = array())
*/
public static function validateCollectionName($collectionName)
{
if (empty($collectionName) || strlen($collectionName) > 64) {
if (empty($collectionName) or strlen($collectionName) > 64) {
return false;
}

if ($collectionName[0] === '_' || $collectionName[0] === '.' || $collectionName[strlen($collectionName) - 1] === '.') {
if ($collectionName[0] === '_'
or $collectionName[0] === '.'
or $collectionName[strlen($collectionName) - 1] === '.') {
return false;
}

Expand Down

0 comments on commit 8f0a735

Please sign in to comment.