dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
objectcache: Remove unused variable $cache which is overriden
[lhc/web/wiklou.git]
/
includes
/
HistoryBlob.php
diff --git
a/includes/HistoryBlob.php
b/includes/HistoryBlob.php
index
1d4f6e4
..
bca6c7e
100644
(file)
--- a/
includes/HistoryBlob.php
+++ b/
includes/HistoryBlob.php
@@
-445,8
+445,7
@@
class DiffHistoryBlob implements HistoryBlob {
// Already compressed
return;
}
// Already compressed
return;
}
- if ( !count( $this->mItems ) ) {
- // Empty
+ if ( $this->mItems === [] ) {
return;
}
return;
}
@@
-492,7
+491,7
@@
class DiffHistoryBlob implements HistoryBlob {
$this->mDiffs = [];
$this->mDiffMap = [];
foreach ( $sequences as $seq ) {
$this->mDiffs = [];
$this->mDiffMap = [];
foreach ( $sequences as $seq ) {
- if (
!count( $seq['diffs'] )
) {
+ if (
$seq['diffs'] === []
) {
continue;
}
if ( $tail === '' ) {
continue;
}
if ( $tail === '' ) {
@@
-627,8
+626,7
@@
class DiffHistoryBlob implements HistoryBlob {
*/
function __sleep() {
$this->compress();
*/
function __sleep() {
$this->compress();
- if ( !count( $this->mItems ) ) {
- // Empty object
+ if ( $this->mItems === [] ) {
$info = false;
} else {
// Take forward differences to improve the compression ratio for sequences
$info = false;
} else {
// Take forward differences to improve the compression ratio for sequences