aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorGravatar Kevin Papst <kpapst@gmx.net> 2017-12-08 21:18:07 +0100
committerGravatar Kevin Papst <kpapst@gmx.net> 2017-12-08 21:18:07 +0100
commit0480d4331cb3e21279220c7cd7b7486bd63d5412 (patch)
treed2e58e12027a4d50c14e97b4081563f6ac14051c /lib
parenta96b751d319665c6702bcf60feffdcf56694003a (diff)
renamed method
Diffstat (limited to 'lib')
-rw-r--r--lib/Minz/Log.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Minz/Log.php b/lib/Minz/Log.php
index 72947272e..f7029f47d 100644
--- a/lib/Minz/Log.php
+++ b/lib/Minz/Log.php
@@ -73,7 +73,7 @@ class Minz_Log {
. ' [' . $level_label . ']'
. ' --- ' . $information . "\n";
- self::checkForLogfileSize($file_name);
+ self::checkLogfileSize($file_name);
if (file_put_contents($file_name, $log, FILE_APPEND | LOCK_EX) === false) {
throw new Minz_PermissionDeniedException($file_name, Minz_Exception::ERROR);
@@ -90,7 +90,7 @@ class Minz_Log {
* @param $file_name
* @throws Minz_PermissionDeniedException
*/
- protected static function checkForLogfileSize($file_name) {
+ protected static function checkLogfileSize($file_name) {
if (file_exists($file_name) && filesize($file_name) > self::MAX_LOG_SIZE) {
if (!unlink($file_name)) {
throw new Minz_PermissionDeniedException($file_name, Minz_Exception::ERROR);