SimpleFixer.php 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <?php
  2. declare(strict_types=1);
  3. /*
  4. * This file is part of PHP CS Fixer.
  5. *
  6. * (c) Fabien Potencier <fabien@symfony.com>
  7. * Dariusz Rumiński <dariusz.ruminski@gmail.com>
  8. *
  9. * This source file is subject to the MIT license that is bundled
  10. * with this source code in the file LICENSE.
  11. */
  12. namespace PhpCsFixer\Tests\Fixtures\Test\AbstractFixerTest;
  13. use PhpCsFixer\AbstractFixer;
  14. use PhpCsFixer\Fixer\WhitespacesAwareFixerInterface;
  15. use PhpCsFixer\FixerDefinition\FixerDefinitionInterface;
  16. use PhpCsFixer\Tokenizer\Tokens;
  17. use PhpCsFixer\WhitespacesFixerConfig;
  18. /**
  19. * @internal
  20. */
  21. final class SimpleFixer extends AbstractFixer implements WhitespacesAwareFixerInterface
  22. {
  23. public function getDefinition(): FixerDefinitionInterface
  24. {
  25. throw new \BadMethodCallException('Not implemented.');
  26. }
  27. public function getWhitespacesConfig(): WhitespacesFixerConfig
  28. {
  29. return $this->whitespacesConfig;
  30. }
  31. public function isCandidate(Tokens $tokens): bool
  32. {
  33. throw new \BadMethodCallException('Not implemented.');
  34. }
  35. protected function applyFix(\SplFileInfo $file, Tokens $tokens): void
  36. {
  37. throw new \BadMethodCallException('Not implemented.');
  38. }
  39. }