private function addTextIntoMountPoint($mountpoint, $textToAdd)
    {
        passthru(
            'sed -i \'s/.*'.$mountpoint.'.*/ \ \ \ \ \ \ \ '.$this->scapeSingleQuotes(preg_quote($textToAdd)).',\n \ \ \ \ \ \ \ '.$mountpoint.'/\' '.str_replace(" ", "\ ", $this->laravel_config_file), $error);

        return $error;
    }
private function addTextIntoMountPoint($mountpoint, $textToAdd)
    {
        passthru(
            'sed -i \'s/.*'.$mountpoint.'.*/ \ \ \ \ \ \ \ '.$this->scapeSingleQuotes(preg_quote($textToAdd)).',\n \ \ \ \ \ \ \ '.$mountpoint.'/\' '.str_replace(" ", "\ ", $this->laravel_config_file), $error);

        return $error;
    }
private function addTextIntoMountPoint ( $ mountpoint , $ textToAdd ) { passthru ( 'sed -i \'s/.*' . $ mountpoint . '.*/ \ \ \ \ \ \ \ ' . $ this -> scapeSingleQuotes ( preg_quote ( $ textToAdd ) ) . ',\n \ \ \ \ \ \ \ ' . $ mountpoint . '/\' ' . str_replace ( " " , "\ " , $ this -> laravel_config_file ) , $ error ) ; return $ error ; }
Insert text into file using mountpoint. Mountpoint is maintained at file.

@param string $mountpoint
@param $textToAdd

@return int|null
Insert text into file using mountpoint . Mountpoint is maintained at file .