Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

<?php namespace Illuminate\Tests\Console\Fixtures; class FakeSignalsRegistry { prote..

Decoded Output download

<?php

namespace Illuminate\Tests\Console\Fixtures;

class FakeSignalsRegistry
{
    protected $signalHandlers = [
        'my-signal' => [],
    ];

    public function register($signal, $signalHandler)
    {
        $this->signalHandlers[$signal][] = $signalHandler;
    }

    public function handle($signal)
    {
        $count = count($this->signalHandlers[$signal]);

        foreach ($this->signalHandlers[$signal] as $i => $signalHandler) {
            $hasNext = $i !== $count - 1;
            $signalHandler($signal, $hasNext);
        }
    }
}
 ?>

Did this file decode correctly?

Original Code

<?php

namespace Illuminate\Tests\Console\Fixtures;

class FakeSignalsRegistry
{
    protected $signalHandlers = [
        'my-signal' => [],
    ];

    public function register($signal, $signalHandler)
    {
        $this->signalHandlers[$signal][] = $signalHandler;
    }

    public function handle($signal)
    {
        $count = count($this->signalHandlers[$signal]);

        foreach ($this->signalHandlers[$signal] as $i => $signalHandler) {
            $hasNext = $i !== $count - 1;
            $signalHandler($signal, $hasNext);
        }
    }
}

Function Calls

None

Variables

None

Stats

MD5 670008a23d077fe86a98ca43b834471e
Eval Count 0
Decode Time 111 ms