mirror of
https://github.com/Chouchen/Shikiryu_Backup.git
synced 2026-09-24 16:03:54 +02:00
Avoid variables with short names and unused functions
This commit is contained in:
1 parent
180765af3c
commit
ffdf0b8476
3 files changed
+15
-67
No files matched your search
@@ -56,19 +56,19 @@ abstract class BackupAbstract
|
||||
/**
|
||||
* Check if all files got the minimum given size.
|
||||
*
|
||||
* @param int $fs
|
||||
* @param int $file_size
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function checkMinimumFilesize($fs)
|
||||
public function checkMinimumFilesize($file_size)
|
||||
{
|
||||
foreach ($this->_filesToBackup as $file => $name) {
|
||||
if (filesize($file) < $fs) {
|
||||
if (filesize($file) < $file_size) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
foreach ($this->_streamsToBackup as $name => $file) {
|
||||
if (mb_strlen($file, 'utf-8') < $fs) {
|
||||
if (mb_strlen($file, 'utf-8') < $file_size) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user