@@ -116,7 +116,7 @@ public static function getStyleSheet(): string
116116 * @param string|string[] $old the old string (or array of lines)
117117 * @param string|string[] $new the new string (or array of lines)
118118 * @param string $template the template name
119- * @param array $diffOptions the options for Diff object
119+ * @param array $differOptions the options for Differ object
120120 * @param array $templateOptions the options for template object
121121 *
122122 * @return string the rendered differences
@@ -125,7 +125,7 @@ public static function calculate(
125125 $ old ,
126126 $ new ,
127127 string $ template = 'Unified ' ,
128- array $ diffOptions = [],
128+ array $ differOptions = [],
129129 array $ templateOptions = []
130130 ): string {
131131 // always convert into array form
@@ -135,9 +135,9 @@ public static function calculate(
135135 return RendererFactory::getInstance ($ template )
136136 ->setOptions ($ templateOptions )
137137 ->render (
138- Diff ::getInstance ()
138+ Differ ::getInstance ()
139139 ->setOldNew ($ old , $ new )
140- ->setOptions ($ diffOptions )
140+ ->setOptions ($ differOptions )
141141 );
142142 }
143143
@@ -147,7 +147,7 @@ public static function calculate(
147147 * @param string $old the path of the old file
148148 * @param string $new the path of the new file
149149 * @param string $template the template name
150- * @param array $diffOptions the options for Diff object
150+ * @param array $differOptions the options for Differ object
151151 * @param array $templateOptions the options for template object
152152 *
153153 * @throws \LogicException path is a directory
@@ -159,7 +159,7 @@ public static function calculateFiles(
159159 string $ old ,
160160 string $ new ,
161161 string $ template = 'Unified ' ,
162- array $ diffOptions = [],
162+ array $ differOptions = [],
163163 array $ templateOptions = []
164164 ): string {
165165 // we want to leave the line-ending problem to static::calculate()
@@ -172,7 +172,7 @@ public static function calculateFiles(
172172 $ oldFile ->fread ($ oldFile ->getSize ()),
173173 $ newFile ->fread ($ newFile ->getSize ()),
174174 $ template ,
175- $ diffOptions ,
175+ $ differOptions ,
176176 $ templateOptions
177177 );
178178 }
0 commit comments