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 declare(strict_types=1); namespace Pest\Factories\Annotations; use Pest\Contracts..

Decoded Output download

<?php

declare(strict_types=1);

namespace Pest\Factories\Annotations;

use Pest\Contracts\AddsAnnotations;
use Pest\Factories\TestCaseMethodFactory;
use Pest\Support\Str;

/**
 * @internal
 */
final class Depends implements AddsAnnotations
{
    /**
     * {@inheritdoc}
     */
    public function __invoke(TestCaseMethodFactory $method, array $annotations): array
    {
        foreach ($method->depends as $depend) {
            $depend = Str::evaluable($method->describing !== null ? Str::describe($method->describing, $depend) : $depend);

            $annotations[] = "@depends $depend";
        }

        return $annotations;
    }
}
 ?>

Did this file decode correctly?

Original Code

<?php

declare(strict_types=1);

namespace Pest\Factories\Annotations;

use Pest\Contracts\AddsAnnotations;
use Pest\Factories\TestCaseMethodFactory;
use Pest\Support\Str;

/**
 * @internal
 */
final class Depends implements AddsAnnotations
{
    /**
     * {@inheritdoc}
     */
    public function __invoke(TestCaseMethodFactory $method, array $annotations): array
    {
        foreach ($method->depends as $depend) {
            $depend = Str::evaluable($method->describing !== null ? Str::describe($method->describing, $depend) : $depend);

            $annotations[] = "@depends $depend";
        }

        return $annotations;
    }
}

Function Calls

None

Variables

None

Stats

MD5 2e0395f201718d3b713ddaafe1cc6447
Eval Count 0
Decode Time 82 ms