コード例 #1
0
 /**
  * @param string $file
  * @param GitHubModule $gitObject
  *
  * @return string
  */
 public function replaceWordsInFile()
 {
     foreach ($this->gitReplaceArray as $searchTerm => $replaceMethod) {
         $fileName = $this->rootDirForModule . '/' . $this->fileLocation;
         GeneralMethods::replaceInFile($fileName, $searchTerm, $this->gitObject->{$replaceMethod}());
     }
     foreach ($this->replaceArray as $searchTerm => $replaceMethod) {
         $fileName = $this->rootDirForModule . '/' . $this->fileLocation;
         GeneralMethods::replaceInFile($fileName, $searchTerm, $this->{$replaceMethod}());
     }
 }