mirror of
https://github.com/opensupports/opensupports.git
synced 2025-08-29 05:38:37 +02:00
14 lines
278 B
PHP
14 lines
278 B
PHP
<?php
|
|
|
|
namespace CustomValidations;
|
|
|
|
use Respect\Validation\Rules\AbstractRule;
|
|
|
|
class ValidArticleContent extends AbstractRule {
|
|
|
|
public function validate($content) {
|
|
$article = \Article::getDataStore($content, 'content');
|
|
return $article->isNull();
|
|
}
|
|
}
|