Completed
Push — master ( ea9a9d...003023 )
by
unknown
30:59
created
src/Lingo.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@
 block discarded – undo
51 51
 
52 52
 			$parser->setBackend( $backend );
53 53
 
54
-            \Hooks::register( 'ParserBeforeTidy', [ $parser, 'parse' ] );
54
+			\Hooks::register( 'ParserBeforeTidy', [ $parser, 'parse' ] );
55 55
 
56 56
 			\Hooks::register('GetDoubleUnderscoreIDs', function ( array &$doubleUnderscoreIDs ) {
57 57
 				$doubleUnderscoreIDs[] = 'noglossary';
Please login to merge, or discard this patch.
src/LingoParser.php 1 patch
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -43,8 +43,8 @@  discard block
 block discarded – undo
43 43
  */
44 44
 class LingoParser {
45 45
 
46
-    const WORD_VALUE = 0;
47
-    const WORD_OFFSET = 1;
46
+	const WORD_VALUE = 0;
47
+	const WORD_OFFSET = 1;
48 48
 
49 49
 	private $mLingoTree = null;
50 50
 
@@ -247,7 +247,7 @@  discard block
 block discarded – undo
247 247
 		);
248 248
 
249 249
 		// Iterate all HTML text matches
250
-        $numberOfTextElements = $textElements->length;
250
+		$numberOfTextElements = $textElements->length;
251 251
 		$changedDoc = false;
252 252
 
253 253
 		$definitions = [];
@@ -289,10 +289,10 @@  discard block
 block discarded – undo
289 289
 
290 290
 					if ( $skippedWords > 0 ) { // skipped some text, insert it as is
291 291
 
292
-                        $start = $wordDescriptors[$wordDescriptorIndex][self::WORD_OFFSET];
293
-                        $length = $wordDescriptors[$wordDescriptorIndex + $skippedWords][self::WORD_OFFSET] - $start;
292
+						$start = $wordDescriptors[$wordDescriptorIndex][self::WORD_OFFSET];
293
+						$length = $wordDescriptors[$wordDescriptorIndex + $skippedWords][self::WORD_OFFSET] - $start;
294 294
 
295
-                        $parentNode->insertBefore(
295
+						$parentNode->insertBefore(
296 296
 							$doc->createTextNode(
297 297
 								substr( $textElement->nodeValue, $start, $length)
298 298
 							),
@@ -315,9 +315,9 @@  discard block
 block discarded – undo
315 315
 					// Only change element if found term before
316 316
 					if ( $changedElem === true ) {
317 317
 
318
-                        $start = $wordDescriptors[$wordDescriptorIndex][self::WORD_OFFSET];
318
+						$start = $wordDescriptors[$wordDescriptorIndex][self::WORD_OFFSET];
319 319
 
320
-                        $parentNode->insertBefore(
320
+						$parentNode->insertBefore(
321 321
 							$doc->createTextNode(
322 322
 								substr( $textElement->nodeValue, $start)
323 323
 							),
@@ -326,8 +326,8 @@  discard block
 block discarded – undo
326 326
 
327 327
 					}
328 328
 
329
-                    // In principle superfluous, the loop would run out anyway. Might save a bit of time.
330
-                    break;
329
+					// In principle superfluous, the loop would run out anyway. Might save a bit of time.
330
+					break;
331 331
 				}
332 332
 
333 333
 				$wordDescriptorIndex += $usedWords + $skippedWords;
Please login to merge, or discard this patch.