Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
freekmurze authored and actions-user committed Mar 3, 2022
1 parent 1ab41d5 commit 5ccbd97
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/Origin/DefaultOriginFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,9 @@ public function getOrigin(): Origin
protected function getFrame()
{
$frames = $this->getAllFrames();
print_r($frames);
print_r($frames);

This comment has been minimized.

Copy link
@stevebauman

stevebauman Mar 3, 2022

Contributor

Was this intended to be kept? Just checking 👍

This comment has been minimized.

Copy link
@freekmurze

freekmurze Mar 3, 2022

Author Member

o ow, no, I'll remove it

$indexOfRay = $this->getIndexOfRayFrame($frames);

return $frames[$indexOfRay] ?? null;
}

Expand All @@ -44,9 +45,9 @@ protected function getAllFrames(): array
*/
protected function getIndexOfRayFrame(array $frames)
{
if ($this->isUsingGlobalRay($frames)) {
return $this->getIndexOfGlobalRayFrame($frames) + 1;
}
if ($this->isUsingGlobalRay($frames)) {
return $this->getIndexOfGlobalRayFrame($frames) + 1;
}

$index = $this->search(function (Frame $frame) {
if ($frame->class === Ray::class) {
Expand Down Expand Up @@ -81,7 +82,7 @@ public function isUsingGlobalRay(array $frames)
protected function getIndexOfGlobalRayFrame(array $frames)
{
return $this->search(function (Frame $frame) {
if (!$this->startsWith($frame->file, 'phar:')) {
if (! $this->startsWith($frame->file, 'phar:')) {
return false;
}

Expand Down

0 comments on commit 5ccbd97

Please sign in to comment.