summaryrefslogtreecommitdiffstats
path: root/src/Monolog/Handler/RotatingFileHandler.php
diff options
context:
space:
mode:
authorJordi Boggiano <j.boggiano@seld.be>2011-04-05 22:15:16 +0200
committerJordi Boggiano <j.boggiano@seld.be>2011-04-05 22:15:22 +0200
commit35dd65dea3f48c6d4cd2080e12e752bccc566f67 (patch)
tree4627b34f422f599e59541cccbde8f101d7764d64 /src/Monolog/Handler/RotatingFileHandler.php
parent32d66528b288b72eba171ac670c30b1f45f148c2 (diff)
downloadmonolog-35dd65dea3f48c6d4cd2080e12e752bccc566f67.zip
monolog-35dd65dea3f48c6d4cd2080e12e752bccc566f67.tar.gz
monolog-35dd65dea3f48c6d4cd2080e12e752bccc566f67.tar.bz2
Fix CS
Diffstat (limited to 'src/Monolog/Handler/RotatingFileHandler.php')
-rw-r--r--src/Monolog/Handler/RotatingFileHandler.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Monolog/Handler/RotatingFileHandler.php b/src/Monolog/Handler/RotatingFileHandler.php
index b3358df..e63cca0 100644
--- a/src/Monolog/Handler/RotatingFileHandler.php
+++ b/src/Monolog/Handler/RotatingFileHandler.php
@@ -39,7 +39,7 @@ class RotatingFileHandler extends StreamHandler
$date = new \DateTime();
$fileInfo = pathinfo($this->filename);
$timedFilename = $fileInfo['dirname'].'/'.$fileInfo['filename'].'-'.$date->format('Y-m-d');
- if (!empty ($fileInfo['extension'])) {
+ if (!empty($fileInfo['extension'])) {
$timedFilename .= '.'.$fileInfo['extension'];
}
@@ -65,7 +65,7 @@ class RotatingFileHandler extends StreamHandler
{
$fileInfo = pathinfo($this->filename);
$glob = $fileInfo['dirname'].'/'.$fileInfo['filename'].'-*';
- if (!empty ($fileInfo['extension'])){
+ if (!empty($fileInfo['extension'])) {
$glob .= '.'.$fileInfo['extension'];
}
$iterator = new \GlobIterator($glob);
@@ -77,7 +77,7 @@ class RotatingFileHandler extends StreamHandler
// Sorting the files by name to rmeove the older ones
$array = iterator_to_array($iterator);
- usort($array, function($a, $b){
+ usort($array, function($a, $b) {
return strcmp($a->getFilename(), $b->getFilename());
});
while ($count > $this->maxFiles) {