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 App\Services\Streamers; use App\Services\S3Service; use Illuminate\Http\..

Decoded Output download

<?php

namespace App\Services\Streamers;

use App\Services\S3Service;
use Illuminate\Http\RedirectResponse;
use Illuminate\Routing\Redirector;

class S3Streamer extends Streamer implements ObjectStorageStreamerInterface
{
    public function __construct(private S3Service $s3Service)
    {
        parent::__construct();
    }

    /**
     * Stream the current song through S3.
     * Actually, we just redirect the request to the S3 object's location.
     *
     * @return Redirector|RedirectResponse
     *
     */
    public function stream() // @phpcs:ignore
    {
        // Get and redirect to the actual presigned-url
        return redirect($this->s3Service->getSongPublicUrl($this->song));
    }
}
 ?>

Did this file decode correctly?

Original Code

<?php

namespace App\Services\Streamers;

use App\Services\S3Service;
use Illuminate\Http\RedirectResponse;
use Illuminate\Routing\Redirector;

class S3Streamer extends Streamer implements ObjectStorageStreamerInterface
{
    public function __construct(private S3Service $s3Service)
    {
        parent::__construct();
    }

    /**
     * Stream the current song through S3.
     * Actually, we just redirect the request to the S3 object's location.
     *
     * @return Redirector|RedirectResponse
     *
     */
    public function stream() // @phpcs:ignore
    {
        // Get and redirect to the actual presigned-url
        return redirect($this->s3Service->getSongPublicUrl($this->song));
    }
}

Function Calls

None

Variables

None

Stats

MD5 3f695838afc8a4e89346bb4d477796ae
Eval Count 0
Decode Time 88 ms