Clean elses

This commit is contained in:
Gabriel Caruso 2017-12-14 12:21:16 -02:00
parent 194e5c47e4
commit 87acd3764b
2 changed files with 30 additions and 30 deletions

View File

@ -193,7 +193,8 @@ class OLERead
}
return $streamData;
} else {
}
$numBlocks = $this->props[$stream]['size'] / self::BIG_BLOCK_SIZE;
if ($this->props[$stream]['size'] % self::BIG_BLOCK_SIZE != 0) {
++$numBlocks;
@ -213,7 +214,6 @@ class OLERead
return $streamData;
}
}
/**
* Read a standard stream (by joining sectors using information from SAT)

View File

@ -1244,9 +1244,9 @@ class PclZip
{
if (PCLZIP_ERROR_EXTERNAL == 1) {
return (PclErrorCode());
} else {
return ($this->error_code);
}
return ($this->error_code);
}
// --------------------------------------------------------------------------------
@ -1289,9 +1289,9 @@ class PclZip
if ($p_with_code) {
return ($v_value . ' (' . $this->error_code . ')');
} else {
return ($v_value);
}
return ($v_value);
}
// --------------------------------------------------------------------------------
@ -1304,14 +1304,14 @@ class PclZip
{
if (PCLZIP_ERROR_EXTERNAL == 1) {
return (PclErrorString());
} else {
}
if ($p_full) {
return ($this->errorName(true) . " : " . $this->error_string);
} else {
}
return ($this->error_string . " [code " . $this->error_code . "]");
}
}
}
// --------------------------------------------------------------------------------
// --------------------------------------------------------------------------------