src/Extensions/SynonymValidator.php
protected function validateValue($value)
    {
        // strip empty lines
        $lines = array_filter(
            explode("\n", $value)
        );

        // strip comments (lines beginning with "#")
        $lines = array_filter($lines, function ($line) {
            $line = trim($line);

            return !empty($line) && $line[0] !== '#';
        });

        // validate each line
        foreach ($lines as $line) {
            if (!$this->validateLine($line)) {
                return false;
            }
        }

        return true;
    }
protected function validateValue($value)
    {
        // strip empty lines
        $lines = array_filter(
            explode("\n", $value)
        );

        // strip comments (lines beginning with "#")
        $lines = array_filter($lines, function ($line) {
            $line = trim($line);

            return !empty($line) && $line[0] !== '#';
        });

        // validate each line
        foreach ($lines as $line) {
            if (!$this->validateLine($line)) {
                return false;
            }
        }

        return true;
    }
protected function validateValue ( $ value ) { // strip empty lines $ lines = array_filter ( explode ( "\n" , $ value ) ) ; // strip comments (lines beginning with "#") $ lines = array_filter ( $ lines , function ( $ line ) { $ line = trim ( $ line ) ; return ! empty ( $ line ) && $ line [ 0 ] !== '#' ; } ) ; // validate each line foreach ( $ lines as $ line ) { if ( ! $ this -> validateLine ( $ line ) ) { return false ; } } return true ; }
Check field values to see that they doesn't contain spaces between words.

@param mixed $value

@return bool
Check field values to see that they doesn t contain spaces between words .