Copy   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 4
c 1
b 0
f 0
lcom 0
cbo 1
dl 0
loc 21
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A write() 0 18 4
1
<?php
2
3
namespace Fluentd\Log;
4
5
class Copy extends \Fluentd\Log{
6
7
	public static function write($level, $msg, $method = null){
8
		$log_config = \Config::get('log');
9
10
		$return = false;
11
		if(array_key_exists('copy',$log_config['drivers'])){
12
			foreach( $log_config['drivers']['copy'] as $driver){
13
				$class = __NAMESPACE__ .'\\'. ucfirst($driver);
14
15
				try{
16
					$return = $class::write($level,$msg,$method);
17
				} catch (FuelException $e) {
0 ignored issues
show
Bug introduced by
The class Fluentd\Log\FuelException does not exist. Did you forget a USE statement, or did you not list all dependencies?

Scrutinizer analyzes your composer.json/composer.lock file if available to determine the classes, and functions that are defined by your dependencies.

It seems like the listed class was neither found in your dependencies, nor was it found in the analyzed files in your repository. If you are using some other form of dependency management, you might want to disable this analysis.

Loading history...
18
					//
19
				}
20
			}
21
		}
22
23
		return $return;
24
	}
25
}
26