Skip to content
This repository has been archived by the owner on Jun 11, 2019. It is now read-only.

Commit

Permalink
Fixed typos in comments
Browse files Browse the repository at this point in the history
  • Loading branch information
cundd authored and PowerKiKi committed Jul 19, 2016
1 parent 025f2fb commit 519e316
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Classes/Utility/MarkerSubstitutor.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class MarkerSubstitutor
private $advancedMarkersFound;

/**
* Substitude multiple markers to an URL
* Substitute multiple markers to an URL
* @param string $url
* @param Email $email
* @return string url with marker replaced
Expand All @@ -33,7 +33,7 @@ public function substituteMarkersInUrl($url, Email $email)
* Apply multiple markers to mail contents
* @param string $src
* @param Email $email
* @param string $name optionnal name to be forwarded to hook
* @param string $name optional name to be forwarded to hook
* @return string url with marker replaced
*/
public function substituteMarkers($src, Email $email, $name = '')
Expand Down Expand Up @@ -75,7 +75,7 @@ private function findExistingMarkers($src)
preg_match_all('|"https?://(\w+)"|', $src, $fieldsLinks);
$this->simpleMarkersFound = array_merge($fields[1], $fieldsLinks[1]);

// Any advanced IF fields we need to sustitute later on
// Any advanced IF fields we need to substitute later on
$this->advancedMarkersFound = [];
preg_match_all('/###:IF: (\w+) ###/U', $src, $fields);
foreach ($fields[1] as $field) {
Expand Down Expand Up @@ -132,7 +132,7 @@ private function substituteSimpleMarker($src, $name, $value)

/**
* Substitute an advanced marker
* An advanced conditionnal marker ###:IF: marker ### ..content.. (###:ELSE:###)? ..content.. ###:ENDIF:###
* An advanced conditional marker ###:IF: marker ### ..content.. (###:ELSE:###)? ..content.. ###:ENDIF:###
* @param string $src Source to apply marker substitution to
* @param string $name Name of the marker to replace
* @param string $value Value to replace marker with
Expand Down

0 comments on commit 519e316

Please sign in to comment.