src/Standards/BestIt/Sniffs/Formatting/SpaceAroundConcatSniff.php
protected function fixDefaultProblem(CodeWarning $warning): void
    {
        $newContent = '';

        if (!$this->prevIsWhitespace) {
            $newContent = ' ';
        }

        $newContent .= '.';

        if (!$this->nextIsWhitespace) {
            $newContent .= ' ';
        }

        $fixer = $this->getFile()->fixer;

        $fixer->beginChangeset();
        $fixer->replaceToken($this->stackPos, $newContent);
        $fixer->endChangeset();
    }
protected function fixDefaultProblem(CodeWarning $warning): void
    {
        $newContent = '';

        if (!$this->prevIsWhitespace) {
            $newContent = ' ';
        }

        $newContent .= '.';

        if (!$this->nextIsWhitespace) {
            $newContent .= ' ';
        }

        $fixer = $this->getFile()->fixer;

        $fixer->beginChangeset();
        $fixer->replaceToken($this->stackPos, $newContent);
        $fixer->endChangeset();
    }
protected function fixDefaultProblem ( CodeWarning $ warning ) : void { $ newContent = '' ; if ( ! $ this -> prevIsWhitespace ) { $ newContent = ' ' ; } $ newContent .= '.' ; if ( ! $ this -> nextIsWhitespace ) { $ newContent .= ' ' ; } $ fixer = $ this -> getFile ( ) -> fixer ; $ fixer -> beginChangeset ( ) ; $ fixer -> replaceToken ( $ this -> stackPos , $ newContent ) ; $ fixer -> endChangeset ( ) ; }
Adds whitespace around the concats.

@param CodeWarning $warning

@return void
Adds whitespace around the concats .