protected function punctuate()
    {
        $columns = $this->setPunctuateColumns();

        collect($columns)->each(function($column, $type) {
            collect($column)->each(function($name) use ($type) {
                if ($type == 'short') {
                    if (isset($this->$name)) {
                        $this->$name = $this->parseString($this->$name);
                    }
                }

                if ($type == 'long') {
                    if (isset($this->$name)) {
                        $this->$name = $this->parseText($this->$name);
                    }
                }
            });
        });

        return $this;
    }
protected function punctuate()
    {
        $columns = $this->setPunctuateColumns();

        collect($columns)->each(function($column, $type) {
            collect($column)->each(function($name) use ($type) {
                if ($type == 'short') {
                    if (isset($this->$name)) {
                        $this->$name = $this->parseString($this->$name);
                    }
                }

                if ($type == 'long') {
                    if (isset($this->$name)) {
                        $this->$name = $this->parseText($this->$name);
                    }
                }
            });
        });

        return $this;
    }
protected function punctuate ( ) { $ columns = $ this -> setPunctuateColumns ( ) ; collect ( $ columns ) -> each ( function ( $ column , $ type ) { collect ( $ column ) -> each ( function ( $ name ) use ( $ type ) { if ( $ type == 'short' ) { if ( isset ( $ this -> $ name ) ) { $ this -> $ name = $ this -> parseString ( $ this -> $ name ) ; } } if ( $ type == 'long' ) { if ( isset ( $ this -> $ name ) ) { $ this -> $ name = $ this -> parseText ( $ this -> $ name ) ; } } } ) ; } ) ; return $ this ; }
The selects the punctuation depending on the set columns.
The selects the punctuation depending on the set columns .