update changelog and fix cs

This commit is contained in:
Manuel Raynaud
2014-02-22 19:01:37 +01:00
parent b833b4a5b6
commit a5cfcf91ca
590 changed files with 21397 additions and 24262 deletions

View File

@@ -49,7 +49,6 @@ abstract class AbstractTlogDestination
// Appliquer les changements
if ($apply_changes) $this->configure();
return true;
}
}

View File

@@ -46,11 +46,13 @@ class TlogDestinationFile extends AbstractTlogDestination
parent::__construct();
}
protected function getFilePath() {
protected function getFilePath()
{
return $this->getConfig(self::VAR_PATH_FILE);
}
protected function getOpenMode() {
protected function getOpenMode()
{
return strtolower($this->getConfig(self::VAR_MODE, self::VALEUR_MODE_DEFAULT)) == 'a' ? 'a' : 'w';
}

View File

@@ -23,7 +23,6 @@
namespace Thelia\Log\Destination;
use Thelia\Log\TlogDestinationConfig;
use Thelia\Core\Translation\Translator;
@@ -98,4 +97,4 @@ class TlogDestinationRotatingFile extends TlogDestinationFile
return $arr;
}
}
}

View File

@@ -104,7 +104,7 @@ class Tlog Implements LoggerInterface
/**
*
*/
private function __construct(){}
private function __construct() {}
/**
*
@@ -665,11 +665,9 @@ class Tlog Implements LoggerInterface
if ($message instanceof \Exception) {
$text = $message->getMessage()."\n".$message->getTraceAsString();
}
else if (is_scalar($message) === false) {
} elseif (is_scalar($message) === false) {
$text = print_r($message, 1);
}
else {
} else {
$text = $message;
}