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 Spatie\MediaLibrary\Tests\TestSupport\TestModels; use Spatie\MediaLibrar..

Decoded Output download

<?php

namespace Spatie\MediaLibrary\Tests\TestSupport\TestModels;

use Spatie\MediaLibrary\MediaCollections\Models\Media;

class TestModelWithConversionQueued extends TestModel
{
    public function registerMediaConversions(?Media $media = null): void
    {
        $this
            ->addMediaConversion('thumb')
            ->width(50);

        $this
            ->addMediaConversion('avatar_thumb')
            ->performOnCollections('avatar')
            ->width(50);

        $this
            ->addMediaConversion('keep_original_format')
            ->keepOriginalImageFormat();
    }
}
 ?>

Did this file decode correctly?

Original Code

<?php

namespace Spatie\MediaLibrary\Tests\TestSupport\TestModels;

use Spatie\MediaLibrary\MediaCollections\Models\Media;

class TestModelWithConversionQueued extends TestModel
{
    public function registerMediaConversions(?Media $media = null): void
    {
        $this
            ->addMediaConversion('thumb')
            ->width(50);

        $this
            ->addMediaConversion('avatar_thumb')
            ->performOnCollections('avatar')
            ->width(50);

        $this
            ->addMediaConversion('keep_original_format')
            ->keepOriginalImageFormat();
    }
}

Function Calls

None

Variables

None

Stats

MD5 a590d17d1a9659a2f465d02b39d46faf
Eval Count 0
Decode Time 87 ms