src/Shell/Task/CsvRelationTask.php
private function validate(string $name, string $path) : void
    {
        if (! ctype_alpha($name)) {
            $this->abort(sprintf('Invalid Relation name provided: %s', $name));
        }

        if (in_array($name, Utility::findDirs($path))) {
            $this->abort(sprintf('Relation %s already exists', $name));
        }
    }
private function validate(string $name, string $path) : void
    {
        if (! ctype_alpha($name)) {
            $this->abort(sprintf('Invalid Relation name provided: %s', $name));
        }

        if (in_array($name, Utility::findDirs($path))) {
            $this->abort(sprintf('Relation %s already exists', $name));
        }
    }
private function validate ( string $ name , string $ path ) : void { if ( ! ctype_alpha ( $ name ) ) { $ this -> abort ( sprintf ( 'Invalid Relation name provided: %s' , $ name ) ) ; } if ( in_array ( $ name , Utility :: findDirs ( $ path ) ) ) { $ this -> abort ( sprintf ( 'Relation %s already exists' , $ name ) ) ; } }
Validates relation name parameter.

@param string $name Module name
@param string $path Modules root path
@return void
Validates relation name parameter .