X-Git-Url: https://git.cyclocoop.org/%242?a=blobdiff_plain;f=includes%2Fdiff%2FDairikiDiff.php;h=0e38d689bef0f04b7c54b88ed7dffc26102621fe;hb=b382dfd42b6fc67a8df6e4b82da982dc46940b29;hp=61edc1ed00c01fdd4c2b0b404130cbb6ed931c6b;hpb=675c2eaa54c82a5ab3934bb183cf16f05f81cb53;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/diff/DairikiDiff.php b/includes/diff/DairikiDiff.php index 61edc1ed00..0e38d689be 100644 --- a/includes/diff/DairikiDiff.php +++ b/includes/diff/DairikiDiff.php @@ -66,10 +66,10 @@ abstract class DiffOp { * @return string|null */ public function getClosing( $i = null ) { - if( $i === null ) { + if ( $i === null ) { return $this->closing; } - if( array_key_exists( $i, $this->closing ) ) { + if ( array_key_exists( $i, $this->closing ) ) { return $this->closing[$i]; } return null; @@ -424,7 +424,7 @@ class DiffEngine { } $x1 = $xoff + (int)( ( $numer + ( $xlim - $xoff ) * $chunk ) / $nchunks ); - for (; $x < $x1; $x++ ) { + for ( ; $x < $x1; $x++ ) { $line = $flip ? $this->yv[$x] : $this->xv[$x]; if ( empty( $ymatches[$line] ) ) { continue;