@@ -94,17 +94,17 @@ discard block |
||
94 | 94 | SIGALRM => self::FX_SIGNAL_ALARM, // Alarm signal. Sent by pcntl_alarm when the time is over. |
95 | 95 | SIGHUP => self::FX_SIGNAL_HANG_UP, // Hangup signal. Sent to a process when its controlling terminal is closed. |
96 | 96 | SIGINT => self::FX_SIGNAL_INTERRUPT, // Interrupt signal. Typically generated by pressing Ctrl+C. |
97 | - SIGQUIT => self::FX_SIGNAL_QUIT, // Quit signal. Similar to SIGINT but produces a core dump when received by the process. |
|
98 | - SIGTRAP => self::FX_SIGNAL_TRAP, // Trace/breakpoint trap signal. Used by debuggers to catch trace and breakpoint conditions. |
|
97 | + SIGQUIT => self::FX_SIGNAL_QUIT, // Quit signal. Similar to SIGINT but produces a core dump when received by the process. |
|
98 | + SIGTRAP => self::FX_SIGNAL_TRAP, // Trace/breakpoint trap signal. Used by debuggers to catch trace and breakpoint conditions. |
|
99 | 99 | SIGABRT => self::FX_SIGNAL_ABORT, // Abort signal. Sent by the process itself to terminate due to a critical error condition. |
100 | 100 | SIGUSR1 => self::FX_SIGNAL_USER1, // User-defined signal 1. |
101 | 101 | SIGUSR2 => self::FX_SIGNAL_USER2, // User-defined signal 2. |
102 | 102 | SIGTERM => self::FX_SIGNAL_TERMINATE, // Termination signal. Typically used to request graceful termination of a process. |
103 | 103 | SIGCHLD => self::FX_SIGNAL_CHILD, // Child signal. Sent to a parent process when a child process terminates. |
104 | - SIGCONT => self::FX_SIGNAL_CONTINUE, // Continue signal. Sent to resume a process that has been stopped. |
|
104 | + SIGCONT => self::FX_SIGNAL_CONTINUE, // Continue signal. Sent to resume a process that has been stopped. |
|
105 | 105 | SIGTSTP => self::FX_SIGNAL_TERMINAL_STOP, // Terminal stop signal. Sent by pressing Ctrl+Z to suspend the process. |
106 | - SIGTTIN => self::FX_SIGNAL_BACKGROUND_READ, // Background read signal. Sent to a process when it attempts to read from the terminal while in the background. |
|
107 | - SIGTTOU => self::FX_SIGNAL_BACKGROUND_WRITE, // Background write signal. Sent to a process when it attempts to write to the terminal while in the background. |
|
106 | + SIGTTIN => self::FX_SIGNAL_BACKGROUND_READ, // Background read signal. Sent to a process when it attempts to read from the terminal while in the background. |
|
107 | + SIGTTOU => self::FX_SIGNAL_BACKGROUND_WRITE, // Background write signal. Sent to a process when it attempts to write to the terminal while in the background. |
|
108 | 108 | SIGURG => self::FX_SIGNAL_URGENT, // Urgent condition signal. Indicates the arrival of out-of-band data on a socket. |
109 | 109 | ]; |
110 | 110 | |
@@ -223,7 +223,7 @@ discard block |
||
223 | 223 | static::setAsyncSignals(true); |
224 | 224 | } |
225 | 225 | |
226 | - foreach(static::SIGNAL_MAP as $signal => $event) { |
|
226 | + foreach (static::SIGNAL_MAP as $signal => $event) { |
|
227 | 227 | $handler = pcntl_signal_get_handler($signal); |
228 | 228 | |
229 | 229 | if ($handler instanceof self) { |
@@ -233,7 +233,7 @@ discard block |
||
233 | 233 | |
234 | 234 | $callable = is_callable($handler); |
235 | 235 | if ($callable) { |
236 | - $handler = function ($sender, $param) use ($handler) { |
|
236 | + $handler = function($sender, $param) use ($handler) { |
|
237 | 237 | return $handler($param->getSignal(), $param->getParameter()); |
238 | 238 | }; |
239 | 239 | self::$_priorHandlers[$signal][1] = $handler; |
@@ -277,7 +277,7 @@ discard block |
||
277 | 277 | return false; |
278 | 278 | } |
279 | 279 | |
280 | - foreach(self::$_priorHandlers as $signal => $originalCallback) { |
|
280 | + foreach (self::$_priorHandlers as $signal => $originalCallback) { |
|
281 | 281 | pcntl_signal($signal, $originalCallback[0]); |
282 | 282 | $uninstallHandler = true; |
283 | 283 | switch ($signal) { |
@@ -325,7 +325,7 @@ discard block |
||
325 | 325 | { |
326 | 326 | if (isset(static::SIGNAL_MAP[$name])) { |
327 | 327 | $name = static::SIGNAL_MAP[$name]; |
328 | - } elseif(strncasecmp('pid:', $name, 4) === 0) { |
|
328 | + } elseif (strncasecmp('pid:', $name, 4) === 0) { |
|
329 | 329 | if (is_numeric($pid = trim(substr($name, 4)))) { |
330 | 330 | return TProcessHelper::isRunning((int) $pid); |
331 | 331 | } |
@@ -347,7 +347,7 @@ discard block |
||
347 | 347 | { |
348 | 348 | if (isset(static::SIGNAL_MAP[$name])) { |
349 | 349 | $name = static::SIGNAL_MAP[$name]; |
350 | - } elseif(strncasecmp('pid:', $name, 4) === 0) { |
|
350 | + } elseif (strncasecmp('pid:', $name, 4) === 0) { |
|
351 | 351 | if (is_numeric($pid = trim(substr($name, 4)))) { |
352 | 352 | $pid = (int) $pid; |
353 | 353 | return isset(self::$_pidHandlers[$pid]) && self::$_pidHandlers[$pid]->getCount() > 0; |
@@ -370,7 +370,7 @@ discard block |
||
370 | 370 | { |
371 | 371 | if (isset(static::SIGNAL_MAP[$name])) { |
372 | 372 | $name = static::SIGNAL_MAP[$name]; |
373 | - } elseif(strncasecmp('pid:', $name, 4) === 0) { |
|
373 | + } elseif (strncasecmp('pid:', $name, 4) === 0) { |
|
374 | 374 | if (!is_numeric($pid = trim(substr($name, 4)))) { |
375 | 375 | throw new TInvalidOperationException('signalsdispatcher_bad_pid', $pid); |
376 | 376 | } |
@@ -620,7 +620,7 @@ discard block |
||
620 | 620 | $callback = self::$_priorHandlers[SIGALRM][1]; |
621 | 621 | } |
622 | 622 | |
623 | - foreach($alarmTime !== null ? [$alarmTime] : array_keys(static::$_alarms) as $time) { |
|
623 | + foreach ($alarmTime !== null ? [$alarmTime] : array_keys(static::$_alarms) as $time) { |
|
624 | 624 | if (($key = array_search($callback, static::$_alarms[$time] ?? [], true)) !== false) { |
625 | 625 | unset(static::$_alarms[$time][$key]); |
626 | 626 | if (is_array(static::$_alarms[$time] ?? false)) { |
@@ -661,7 +661,7 @@ discard block |
||
661 | 661 | $nextTime = null; |
662 | 662 | $startTime = time(); |
663 | 663 | $signalParam->setAlarmTime($startTime); |
664 | - foreach(static::$_alarms as $alarmTime => $alarms) { |
|
664 | + foreach (static::$_alarms as $alarmTime => $alarms) { |
|
665 | 665 | if ($alarmTime <= $startTime) { |
666 | 666 | array_map(fn ($alarm) => $alarm($this, $signalParam), static::$_alarms[$alarmTime]); |
667 | 667 | unset(static::$_alarms[$alarmTime]); |
@@ -161,7 +161,7 @@ discard block |
||
161 | 161 | |
162 | 162 | if (TProcessHelper::isSystemWindows()) { |
163 | 163 | if (is_string($command)) { |
164 | - $command = '"' . $command . '"'; //Windows, better command support |
|
164 | + $command = '"' . $command . '"'; //Windows, better command support |
|
165 | 165 | } |
166 | 166 | } |
167 | 167 | return $command; |
@@ -231,7 +231,7 @@ discard block |
||
231 | 231 | $output = shell_exec("wmic process where ProcessId={$pid} get priority"); |
232 | 232 | preg_match('/^\s*Priority\s*\r?\n\s*(\d+)/m', $output, $matches); |
233 | 233 | if (isset($matches[1])) { |
234 | - $priorityValues = [ // Map Windows Priority Numbers to Linux style Numbers |
|
234 | + $priorityValues = [// Map Windows Priority Numbers to Linux style Numbers |
|
235 | 235 | TProcessWindowsPriority::Idle => static::WINDOWS_IDLE_PRIORITY, |
236 | 236 | TProcessWindowsPriority::BelowNormal => static::WINDOWS_BELOW_NORMAL_PRIORITY, |
237 | 237 | TProcessWindowsPriority::Normal => static::WINDOWS_NORMAL_PRIORITY, |
@@ -263,7 +263,7 @@ discard block |
||
263 | 263 | $pid = getmypid(); |
264 | 264 | } |
265 | 265 | if (static::isSystemWindows()) { |
266 | - $priorityValues = [ // The priority cap to windows text priority. |
|
266 | + $priorityValues = [// The priority cap to windows text priority. |
|
267 | 267 | -15 => TProcessWindowsPriorityName::Realtime, |
268 | 268 | -10 => TProcessWindowsPriorityName::HighPriority, |
269 | 269 | -5 => TProcessWindowsPriorityName::AboveNormal, |
@@ -271,7 +271,7 @@ discard block |
||
271 | 271 | 9 => TProcessWindowsPriorityName::BelowNormal, |
272 | 272 | PHP_INT_MAX => TProcessWindowsPriorityName::Idle, |
273 | 273 | ]; |
274 | - foreach($priorityValues as $keyPriority => $priorityName) { |
|
274 | + foreach ($priorityValues as $keyPriority => $priorityName) { |
|
275 | 275 | if ($priority <= $keyPriority) { |
276 | 276 | break; |
277 | 277 | } |
@@ -145,7 +145,7 @@ discard block |
||
145 | 145 | $logger->deleteLogs(); |
146 | 146 | $logs = $logger->deleteProfileLogs(); |
147 | 147 | $pid = getmypid(); |
148 | - foreach(array_keys($logs) as $key) { // Reset PROFILE_BEGIN to pid. |
|
148 | + foreach (array_keys($logs) as $key) { // Reset PROFILE_BEGIN to pid. |
|
149 | 149 | $logs[$key][TLogger::LOG_LEVEL] &= ~TLogger::LOGGED; |
150 | 150 | $logs[$key][TLogger::LOG_PID] = $pid; |
151 | 151 | } |
@@ -176,7 +176,7 @@ discard block |
||
176 | 176 | if (!$this->_parentConnections) { |
177 | 177 | return; |
178 | 178 | } |
179 | - if($pid && !isset($this->_parentConnections[$pid])) { |
|
179 | + if ($pid && !isset($this->_parentConnections[$pid])) { |
|
180 | 180 | return; |
181 | 181 | } |
182 | 182 | |
@@ -187,11 +187,11 @@ discard block |
||
187 | 187 | do { |
188 | 188 | $read = $connections; |
189 | 189 | if (stream_select($read, $write, $except, ($wait || count($childLogs)) ? 1 : 0, 0)) { |
190 | - foreach($read as $pid => $socket) { |
|
190 | + foreach ($read as $pid => $socket) { |
|
191 | 191 | $data = fread($socket, 8192); |
192 | 192 | do { |
193 | 193 | $iterate = false; |
194 | - if($data !== false) { |
|
194 | + if ($data !== false) { |
|
195 | 195 | if (array_key_exists($pid, $childLogs)) { |
196 | 196 | $childLogs[$pid][0] .= $data; |
197 | 197 | } else { |
@@ -234,12 +234,12 @@ discard block |
||
234 | 234 | } while ($iterate); |
235 | 235 | } |
236 | 236 | } |
237 | - } while(count($childLogs) || $wait && ($pid && isset($connections[$pid]) || $pid === null && $connections)); |
|
237 | + } while (count($childLogs) || $wait && ($pid && isset($connections[$pid]) || $pid === null && $connections)); |
|
238 | 238 | |
239 | 239 | if (!$completeLogs) { |
240 | 240 | return; |
241 | 241 | } |
242 | - foreach(array_merge(...$completeLogs) as $pid => $logs) { |
|
242 | + foreach (array_merge(...$completeLogs) as $pid => $logs) { |
|
243 | 243 | Prado::getLogger()->mergeLogs(unserialize($logs)); |
244 | 244 | } |
245 | 245 | } |
@@ -257,7 +257,7 @@ discard block |
||
257 | 257 | return; |
258 | 258 | } |
259 | 259 | |
260 | - if(!($logger instanceof TLogger)) { |
|
260 | + if (!($logger instanceof TLogger)) { |
|
261 | 261 | $logger = Prado::getLogger(); |
262 | 262 | } |
263 | 263 | |
@@ -294,7 +294,7 @@ discard block |
||
294 | 294 | $data = substr($data, $count); |
295 | 295 | } |
296 | 296 | } |
297 | - } while($count !== false && strlen($data) > 0); |
|
297 | + } while ($count !== false && strlen($data) > 0); |
|
298 | 298 | |
299 | 299 | if ($final) { |
300 | 300 | stream_socket_shutdown($this->_childConnection, STREAM_SHUT_RDWR); |
@@ -113,7 +113,7 @@ |
||
113 | 113 | */ |
114 | 114 | public function getAddress(): string |
115 | 115 | { |
116 | - if(!$this->_address) { |
|
116 | + if (!$this->_address) { |
|
117 | 117 | if ($this->getIpv6()) { |
118 | 118 | if ($this->getAll()) { |
119 | 119 | return '[::0]'; |
@@ -514,7 +514,7 @@ discard block |
||
514 | 514 | foreach ($classes as $class) { |
515 | 515 | if (isset(self::$_um[$class])) { |
516 | 516 | foreach (self::$_um[$class] as $name => $behavior) { |
517 | - if(is_numeric($name)) { |
|
517 | + if (is_numeric($name)) { |
|
518 | 518 | continue; |
519 | 519 | } |
520 | 520 | if (!array_key_exists($name, $classBehaviors)) { |
@@ -789,7 +789,7 @@ discard block |
||
789 | 789 | } |
790 | 790 | |
791 | 791 | if (isset(self::$_um[$lclass = strtolower(static::class)])) { |
792 | - foreach(self::$_um[$lclass] as $pbehavior) { |
|
792 | + foreach (self::$_um[$lclass] as $pbehavior) { |
|
793 | 793 | $class = $behavior = $pbehavior->getBehavior(); |
794 | 794 | if (is_array($behavior)) { |
795 | 795 | $class = $behavior['class']; |
@@ -1454,7 +1454,7 @@ discard block |
||
1454 | 1454 | $name = strtolower($name); |
1455 | 1455 | $responses = []; |
1456 | 1456 | |
1457 | - if($param instanceof IEventParameter) { |
|
1457 | + if ($param instanceof IEventParameter) { |
|
1458 | 1458 | $param->setEventName($name); |
1459 | 1459 | } |
1460 | 1460 | |
@@ -1818,7 +1818,7 @@ discard block |
||
1818 | 1818 | $behaviorObject->setName($name); |
1819 | 1819 | $isClassBehavior = $behaviorObject instanceof IClassBehavior; |
1820 | 1820 | unset(self::$_um[$class][$name]); |
1821 | - if(empty(self::$_um[$class])) { |
|
1821 | + if (empty(self::$_um[$class])) { |
|
1822 | 1822 | unset(self::$_um[$class]); |
1823 | 1823 | } |
1824 | 1824 | $results = $behaviorObject->raiseEvent('fxDetachClassBehavior', null, $param); |
@@ -1840,7 +1840,7 @@ discard block |
||
1840 | 1840 | return $this->_m[$behaviorname]; |
1841 | 1841 | } |
1842 | 1842 | if ((class_exists($behaviorname, false) || interface_exists($behaviorname, false)) && $this->_m) { |
1843 | - foreach($this->_m->toArray() as $behavior) { |
|
1843 | + foreach ($this->_m->toArray() as $behavior) { |
|
1844 | 1844 | if ($behavior instanceof $behaviorname) { |
1845 | 1845 | return $behavior; |
1846 | 1846 | } |
@@ -126,7 +126,7 @@ discard block |
||
126 | 126 | $command->bindValue(':category', $log[TLogger::LOG_CATEGORY]); |
127 | 127 | $command->bindValue(':prefix', $this->getLogPrefix($log)); |
128 | 128 | $command->bindValue(':logtime', sprintf('%F', $log[TLogger::LOG_TIME])); |
129 | - if(!$command->execute()) { |
|
129 | + if (!$command->execute()) { |
|
130 | 130 | throw new TLogException('dblogroute_insert_failed', $this->_logTable); |
131 | 131 | } |
132 | 132 | } |
@@ -146,7 +146,7 @@ discard block |
||
146 | 146 | * @return string The where clause for the various SQL statements. |
147 | 147 | * @since 4.3.0 |
148 | 148 | */ |
149 | - protected function getLogWhere(?int $level, null|string|array $categories, ?float $minTime, ?float $maxTime, &$values): string |
|
149 | + protected function getLogWhere(?int $level, null | string | array $categories, ?float $minTime, ?float $maxTime, &$values): string |
|
150 | 150 | { |
151 | 151 | $where = ''; |
152 | 152 | $values = []; |
@@ -155,12 +155,12 @@ discard block |
||
155 | 155 | $values[':level'] = $level; |
156 | 156 | } |
157 | 157 | if ($categories !== null) { |
158 | - if(is_string($categories)) { |
|
158 | + if (is_string($categories)) { |
|
159 | 159 | $categories = array_map('trim', explode(',', $categories)); |
160 | 160 | } |
161 | 161 | $i = 0; |
162 | 162 | $or = ''; |
163 | - foreach($categories as $category) { |
|
163 | + foreach ($categories as $category) { |
|
164 | 164 | $c = $category[0] ?? 0; |
165 | 165 | if ($c === '!' || $c === '~') { |
166 | 166 | if ($where) { |
@@ -214,7 +214,7 @@ discard block |
||
214 | 214 | * @return string The where clause for the various SQL statements.. |
215 | 215 | * @since 4.3.0 |
216 | 216 | */ |
217 | - public function getDBLogCount(?int $level = null, null|string|array $categories = null, ?float $minTime = null, ?float $maxTime = null) |
|
217 | + public function getDBLogCount(?int $level = null, null | string | array $categories = null, ?float $minTime = null, ?float $maxTime = null) |
|
218 | 218 | { |
219 | 219 | $values = []; |
220 | 220 | $where = $this->getLogWhere($level, $categories, $minTime, $maxTime, $values); |
@@ -238,7 +238,7 @@ discard block |
||
238 | 238 | * @return \Prado\Data\TDbDataReader the logs from the database. |
239 | 239 | * @since 4.3.0 |
240 | 240 | */ |
241 | - public function getDBLogs(?int $level = null, null|string|array $categories = null, ?float $minTime = null, ?float $maxTime = null, string $order = '', string $limit = '') |
|
241 | + public function getDBLogs(?int $level = null, null | string | array $categories = null, ?float $minTime = null, ?float $maxTime = null, string $order = '', string $limit = '') |
|
242 | 242 | { |
243 | 243 | $values = []; |
244 | 244 | if ($order) { |
@@ -266,7 +266,7 @@ discard block |
||
266 | 266 | * @return int the number of logs in the database. |
267 | 267 | * @since 4.3.0 |
268 | 268 | */ |
269 | - public function deleteDBLog(?int $level = null, null|string|array $categories = null, ?float $minTime = null, ?float $maxTime = null) |
|
269 | + public function deleteDBLog(?int $level = null, null | string | array $categories = null, ?float $minTime = null, ?float $maxTime = null) |
|
270 | 270 | { |
271 | 271 | $values = []; |
272 | 272 | $where = $this->getLogWhere($level, $categories, $minTime, $maxTime, $values); |
@@ -142,8 +142,8 @@ discard block |
||
142 | 142 | */ |
143 | 143 | public function __construct(bool $flushShutdown = true) |
144 | 144 | { |
145 | - if($flushShutdown) { |
|
146 | - register_shutdown_function(function () { |
|
145 | + if ($flushShutdown) { |
|
146 | + register_shutdown_function(function() { |
|
147 | 147 | $this->onFlushLogs(); |
148 | 148 | // flush any logs in the shutdown function. |
149 | 149 | register_shutdown_function([$this, 'onFlushLogs'], $this, true); |
@@ -214,7 +214,7 @@ discard block |
||
214 | 214 | * @return int The number of logs. |
215 | 215 | * @since 4.3.0 |
216 | 216 | */ |
217 | - public function getLogCount(null|bool|int $selector = null): int |
|
217 | + public function getLogCount(null | bool | int $selector = null): int |
|
218 | 218 | { |
219 | 219 | if ($selector === null) {// logs @TLogRoute::processLogs after removing logged elements. |
220 | 220 | return count($this->_logs) + $this->_profileLogsCount; |
@@ -409,7 +409,7 @@ discard block |
||
409 | 409 | return; |
410 | 410 | } |
411 | 411 | |
412 | - if(is_bool($sender)) { |
|
412 | + if (is_bool($sender)) { |
|
413 | 413 | $final = $sender; |
414 | 414 | $sender = null; |
415 | 415 | } |
@@ -424,14 +424,14 @@ discard block |
||
424 | 424 | $this->deleteLogs(); |
425 | 425 | $this->_flushing = false; |
426 | 426 | if (count($this->_flushingLog)) { |
427 | - foreach($this->_flushingLog as $log) { |
|
427 | + foreach ($this->_flushingLog as $log) { |
|
428 | 428 | $this->addLog($log, false); // $final = false to stop any possible recursion w/ low flushCount. |
429 | 429 | } |
430 | 430 | } |
431 | 431 | $this->_flushingLog = null; |
432 | 432 | |
433 | 433 | $this->_profileLogsCount = 0; |
434 | - foreach(array_keys($this->_profileLogs) as $key) { |
|
434 | + foreach (array_keys($this->_profileLogs) as $key) { |
|
435 | 435 | $this->_profileLogs[$key][static::LOG_LEVEL] |= static::LOGGED; |
436 | 436 | } |
437 | 437 | } |
@@ -474,7 +474,7 @@ discard block |
||
474 | 474 | * [6] => traces, when configured; null when absent |
475 | 475 | * [7] => process id) |
476 | 476 | */ |
477 | - public function getLogs(?int $levels = null, null|array|string $categories = null, null|array|string $controls = null, null|int|float $timestamp = null, ?int $pid = null) |
|
477 | + public function getLogs(?int $levels = null, null | array | string $categories = null, null | array | string $controls = null, null | int | float $timestamp = null, ?int $pid = null) |
|
478 | 478 | { |
479 | 479 | $this->_levels = $levels; |
480 | 480 | if (!empty($categories) && !is_array($categories)) { |
@@ -523,7 +523,7 @@ discard block |
||
523 | 523 | public function mergeLogs(array $logs) |
524 | 524 | { |
525 | 525 | $count = count($logs); |
526 | - foreach($logs as $log) { |
|
526 | + foreach ($logs as $log) { |
|
527 | 527 | $log[static::LOG_LEVEL] &= ~TLogger::LOGGED; |
528 | 528 | $this->addLog($log, !(--$count)); |
529 | 529 | } |
@@ -556,7 +556,7 @@ discard block |
||
556 | 556 | * @param ?int $pid |
557 | 557 | * @return array The logs being delete are returned. |
558 | 558 | */ |
559 | - public function deleteLogs(?int $levels = null, null|string|array $categories = null, null|string|array $controls = null, null|int|float $timestamp = null, ?int $pid = null): array |
|
559 | + public function deleteLogs(?int $levels = null, null | string | array $categories = null, null | string | array $controls = null, null | int | float $timestamp = null, ?int $pid = null): array |
|
560 | 560 | { |
561 | 561 | $this->_levels = $levels; |
562 | 562 | if (!empty($categories) && !is_array($categories)) { |
@@ -640,7 +640,7 @@ discard block |
||
640 | 640 | } |
641 | 641 | $c = $category[0] ?? 0; |
642 | 642 | if ($c === '!' || $c === '~') { |
643 | - if(!$exclude) { |
|
643 | + if (!$exclude) { |
|
644 | 644 | $category = substr($category, 1); |
645 | 645 | if ($log[static::LOG_CATEGORY] === $category || str_ends_with($category, '*') && strpos($log[static::LOG_CATEGORY], rtrim($category, '*')) === 0) { |
646 | 646 | $exclude = true; |
@@ -697,7 +697,7 @@ discard block |
||
697 | 697 | } |
698 | 698 | $c = $control[0] ?? 0; |
699 | 699 | if ($c === '!' || $c === '~') { |
700 | - if(!$exclude) { |
|
700 | + if (!$exclude) { |
|
701 | 701 | $control = substr($control, 1); |
702 | 702 | if ($log[static::LOG_CONTROL] === $control || str_ends_with($control, '*') && strpos($log[static::LOG_CONTROL], rtrim($control, '*')) === 0) { |
703 | 703 | $exclude = true; |