Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
theofidry committed Nov 23, 2023
1 parent f46a33b commit 999f36c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 23 deletions.
10 changes: 0 additions & 10 deletions fixtures/Compactor/FakeCompactor.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,4 @@ public function compact(string $file, string $contents): string
{
throw UnsupportedMethodCall::forMethod(__CLASS__, __METHOD__);
}

public static function unserialize(string $serializedCompactor): static
{
throw UnsupportedMethodCall::forMethod(__CLASS__, __METHOD__);
}

public function serialize(): string
{
throw UnsupportedMethodCall::forMethod(__CLASS__, __METHOD__);
}
}
13 changes: 0 additions & 13 deletions src/Compactor/NullCompactor.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@

namespace KevinGH\Box\Compactor;

use function serialize;
use function unserialize;

/**
* Base compactor class providing a slightly simpler API to compact the content only if the file is supported.
*
Expand All @@ -28,14 +25,4 @@ public function compact(string $file, string $contents): string
{
return $contents;
}

public function serialize(): string
{
return serialize($this);
}

public static function unserialize(string $serializedCompactor): static
{
return unserialize($serializedCompactor, ['allowed_classes' => [self::class]]);
}
}

0 comments on commit 999f36c

Please sign in to comment.