Passed
Branch php-cs-fixer (b9836a)
by Fabio
15:02
created
framework/Util/TLogger.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
 				$ctl = null;
77 77
 		} else
78 78
 			$ctl = null;
79
-		$this->_logs[] = [$message,$level,$category,microtime(true),memory_get_usage(),$ctl];
79
+		$this->_logs[] = [$message, $level, $category, microtime(true), memory_get_usage(), $ctl];
80 80
 	}
81 81
 
82 82
 	/**
@@ -122,13 +122,13 @@  discard block
 block discarded – undo
122 122
 			return $this->_logs;
123 123
 		$logs = $this->_logs;
124 124
 		if(!empty($levels))
125
-			$logs = array_values(array_filter(array_filter($logs, [$this,'filterByLevels'])));
125
+			$logs = array_values(array_filter(array_filter($logs, [$this, 'filterByLevels'])));
126 126
 		if(!empty($categories))
127
-			$logs = array_values(array_filter(array_filter($logs, [$this,'filterByCategories'])));
127
+			$logs = array_values(array_filter(array_filter($logs, [$this, 'filterByCategories'])));
128 128
 		if(!empty($controls))
129
-			$logs = array_values(array_filter(array_filter($logs, [$this,'filterByControl'])));
129
+			$logs = array_values(array_filter(array_filter($logs, [$this, 'filterByControl'])));
130 130
 		if(null !== $timestamp)
131
-			$logs = array_values(array_filter(array_filter($logs, [$this,'filterByTimeStamp'])));
131
+			$logs = array_values(array_filter(array_filter($logs, [$this, 'filterByTimeStamp'])));
132 132
 		return $logs;
133 133
 	}
134 134
 
@@ -169,13 +169,13 @@  discard block
 block discarded – undo
169 169
 		}
170 170
 		$logs = $this->_logs;
171 171
 		if(!empty($levels))
172
-			$logs = array_filter(array_filter($logs, [$this,'filterByLevels']));
172
+			$logs = array_filter(array_filter($logs, [$this, 'filterByLevels']));
173 173
 		if(!empty($categories))
174
-			$logs = array_filter(array_filter($logs, [$this,'filterByCategories']));
174
+			$logs = array_filter(array_filter($logs, [$this, 'filterByCategories']));
175 175
 		if(!empty($controls))
176
-			$logs = array_filter(array_filter($logs, [$this,'filterByControl']));
176
+			$logs = array_filter(array_filter($logs, [$this, 'filterByControl']));
177 177
 		if(null !== $timestamp)
178
-			$logs = array_filter(array_filter($logs, [$this,'filterByTimeStamp']));
178
+			$logs = array_filter(array_filter($logs, [$this, 'filterByTimeStamp']));
179 179
 		$this->_logs = array_values(array_diff_key($this->_logs, $logs));
180 180
 	}
181 181
 
Please login to merge, or discard this patch.
framework/Util/TLogRoute.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -138,7 +138,7 @@  discard block
 block discarded – undo
138 138
 	 */
139 139
 	protected function getLevelName($level)
140 140
 	{
141
-		return isset(self::$_levelNames[$level])?self::$_levelNames[$level]:'Unknown';
141
+		return isset(self::$_levelNames[$level]) ?self::$_levelNames[$level] : 'Unknown';
142 142
 	}
143 143
 
144 144
 	/**
@@ -147,7 +147,7 @@  discard block
 block discarded – undo
147 147
 	 */
148 148
 	protected function getLevelValue($level)
149 149
 	{
150
-		return isset(self::$_levelValues[$level])?self::$_levelValues[$level]:0;
150
+		return isset(self::$_levelValues[$level]) ?self::$_levelValues[$level] : 0;
151 151
 	}
152 152
 
153 153
 	/**
Please login to merge, or discard this patch.