@@ -68,12 +68,12 @@ |
||
| 68 | 68 | return $vote; |
| 69 | 69 | } |
| 70 | 70 | |
| 71 | - /** |
|
| 72 | - * Check if one or more of the given items is not empty |
|
| 73 | - * |
|
| 74 | - * @param ...$value |
|
| 75 | - * @return bool |
|
| 76 | - */ |
|
| 71 | + /** |
|
| 72 | + * Check if one or more of the given items is not empty |
|
| 73 | + * |
|
| 74 | + * @param ...$value |
|
| 75 | + * @return bool |
|
| 76 | + */ |
|
| 77 | 77 | protected static function notEmpty(...$value) |
| 78 | 78 | { |
| 79 | 79 | return (bool)count(array_filter($value)) >= 1; |
@@ -32,7 +32,7 @@ |
||
| 32 | 32 | $from = $object->isScheduledFrom(); |
| 33 | 33 | $till = $object->isScheduledTill(); |
| 34 | 34 | |
| 35 | - if (!$object->isPublic() || false === self::notEmpty($from, $till)) { |
|
| 35 | + if (!$object->isPublic() || false === self::notEmpty($from, $till)) { |
|
| 36 | 36 | return $vote; |
| 37 | 37 | } |
| 38 | 38 | |