aboutsummaryrefslogtreecommitdiffstats
path: root/includes/diff/TextSlotDiffRenderer.php
diff options
context:
space:
mode:
authorMatěj Suchánek <matejsuchanek97@gmail.com>2022-05-09 11:09:00 +0200
committerMatěj Suchánek <matejsuchanek97@gmail.com>2022-05-10 12:46:11 +0000
commite47c44107882ecdd58ae900f9d8b176688160d68 (patch)
treed58b32ba31c6dc9ae43aed0f14ea5cbd77ca02a0 /includes/diff/TextSlotDiffRenderer.php
parente9eb4f60d68f9ed4e7cd693d3e85b4e1d7945672 (diff)
downloadmediawikicore-e47c44107882ecdd58ae900f9d8b176688160d68.tar.gz
mediawikicore-e47c44107882ecdd58ae900f9d8b176688160d68.zip
Fix many typos in comments
Found using IntelliJ's "Typo" code inspection. Change-Id: I746220ebe6e1e39f6cb503390ec9053e6518cf16
Diffstat (limited to 'includes/diff/TextSlotDiffRenderer.php')
-rw-r--r--includes/diff/TextSlotDiffRenderer.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/diff/TextSlotDiffRenderer.php b/includes/diff/TextSlotDiffRenderer.php
index 9d405aae7cb0..9af3a7266b0e 100644
--- a/includes/diff/TextSlotDiffRenderer.php
+++ b/includes/diff/TextSlotDiffRenderer.php
@@ -102,7 +102,7 @@ class TextSlotDiffRenderer extends SlotDiffRenderer {
/**
* Set which diff engine to use.
* @param string $type One of the ENGINE_* constants.
- * @param string|null $executable Path to an external exectable, only when type is ENGINE_EXTERNAL.
+ * @param string|null $executable Path to an external executable, only when type is ENGINE_EXTERNAL.
*/
public function setEngine( $type, $executable = null ) {
$engines = [ self::ENGINE_PHP, self::ENGINE_WIKIDIFF2, self::ENGINE_EXTERNAL,
@@ -190,7 +190,7 @@ class TextSlotDiffRenderer extends SlotDiffRenderer {
*/
protected function getTextDiffInternal( $oldText, $newText ) {
// TODO move most of this into three parallel implementations of a text diff generator
- // class, choose which one to use via dependecy injection
+ // class, choose which one to use via dependency injection
$oldText = str_replace( "\r\n", "\n", $oldText );
$newText = str_replace( "\r\n", "\n", $newText );