private function constructSchema($schema, $direction = 'Add')
    {
        if (!$schema) return '';

        $fields = array_map(function ($field) use ($direction) {
            $method = "{$direction}Column";

            return $this->$method($field);
        }, $schema);

        return implode("\n" . str_repeat(' ', 12), $fields);
    }
private function constructSchema($schema, $direction = 'Add')
    {
        if (!$schema) return '';

        $fields = array_map(function ($field) use ($direction) {
            $method = "{$direction}Column";

            return $this->$method($field);
        }, $schema);

        return implode("\n" . str_repeat(' ', 12), $fields);
    }
private function constructSchema ( $ schema , $ direction = 'Add' ) { if ( ! $ schema ) return '' ; $ fields = array_map ( function ( $ field ) use ( $ direction ) { $ method = "{$direction}Column" ; return $ this -> $ method ( $ field ) ; } , $ schema ) ; return implode ( "\n" . str_repeat ( ' ' , 12 ) , $ fields ) ; }
Construct the schema fields.

@param  array $schema
@param  string $direction
@return array
Construct the schema fields .