Function reverseJsonInContext
has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
protected function reverseJsonInContext(array &$context)
{
if (!$context) {
return;
}
Function export
has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
protected function export($value)
{
if (is_string($value)) {
if ($this->allowNewLines) {
return $value;
Avoid too many return
statements within this method.
return @json_encode($value, $options);
Avoid too many return
statements within this method.
return str_replace('\\/', '/', @json_encode($value));
Function interpolate
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
protected function interpolate(array $variables = array())
{
$template = $this->logFormat;
if (!isset($variables['context'])) {
Remove error control operator '@' on line 371.
protected function export($value)
{
if (is_string($value)) {
if ($this->allowNewLines) {
return $value;
Missing class import via use statement (line '272', column '35').
'datetime' => new \DateTime(),
Remove error control operator '@' on line 368.
protected function export($value)
{
if (is_string($value)) {
if ($this->allowNewLines) {
return $value;
Remove error control operator '@' on line 328.
protected function reverseJsonInContext(array &$context)
{
if (!$context) {
return;
}
There are no issues that match your filters.