Skip to content

Commit

Permalink
minor code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
bkdotcom committed Apr 3, 2023
1 parent 0a475cc commit 5ccd05a
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 4 deletions.
1 change: 1 addition & 0 deletions LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,5 @@ Includes other software released under the MIT license:
- psr/http-message, Copyright 2014 PHP Framework Interoperability Group

Portions of this software derived from other works
- https://github.com/silexphp/Pimple
- https://github.com/symfony/event-dispatcher
1 change: 0 additions & 1 deletion src/Debug/Abstraction/AbstractObjectMethods.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,6 @@ private function addMethodsFull(Abstraction $abs)
{
if ($this->abstracter->getCfg('methodCache') && isset(static::$methodCache[$abs['className']])) {
$abs['methods'] = static::$methodCache[$abs['className']];
$this->addFinish($abs);
return;
}
$briefBak = $this->abstracter->debug->setCfg('brief', true);
Expand Down
1 change: 0 additions & 1 deletion src/Debug/Dump/Html/Table.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@ protected function buildBody($rows)
: array()
);
$html = $this->buildRow($row, $rowInfo, $k);
// $html = $this->onBuildRow($html, $row, $rowInfo, $k);
$tBody .= $html;
}
$tBody = \str_replace(' title=""', '', $tBody);
Expand Down
4 changes: 2 additions & 2 deletions src/Debug/Method/Profile.php
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ public function tickFunction()
$this->trace = \debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS);
$stackCount = \count($this->trace) - \count($this->rootStack) - 1;
$stackCountInternal = \count($this->funcStack);
$class = isset($this->trace[1]['class']) ? $this->trace[1]['class'] : null;
$class = isset($this->trace[1]['class']) ? $this->trace[1]['class'] : '';
if ($stackCount === 0 && $this->data) {
$function = \ltrim($class . '::' . $this->trace[1]['function'], ':');
if ($function !== $this->rootStack[0]) {
Expand Down Expand Up @@ -327,7 +327,7 @@ protected function updateStack($stackCount, $stackCountInternal)
}
$diff = $stackCount - $stackCountInternal;
for ($i = $diff; $i > 0; $i--) {
$class = isset($this->trace[$i]['class']) ? $this->trace[$i]['class'] : null;
$class = isset($this->trace[$i]['class']) ? $this->trace[$i]['class'] : '';
if (\preg_match($this->nsIgnoreRegex, $class)) {
break;
}
Expand Down

0 comments on commit 5ccd05a

Please sign in to comment.