FunctionReferenceTestFixer.php 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?php
  2. /*
  3. * This file is part of PHP CS Fixer.
  4. *
  5. * (c) Fabien Potencier <fabien@symfony.com>
  6. * Dariusz Rumiński <dariusz.ruminski@gmail.com>
  7. *
  8. * This source file is subject to the MIT license that is bundled
  9. * with this source code in the file LICENSE.
  10. */
  11. namespace PhpCsFixer\Tests\Fixtures;
  12. use PhpCsFixer\AbstractFunctionReferenceFixer;
  13. use PhpCsFixer\FixerDefinition\FixerDefinitionInterface;
  14. use PhpCsFixer\Tokenizer\Tokens;
  15. final class FunctionReferenceTestFixer extends AbstractFunctionReferenceFixer
  16. {
  17. public function getDefinition(): FixerDefinitionInterface
  18. {
  19. throw new \BadMethodCallException('Not implemented.');
  20. }
  21. public function isCandidate(Tokens $tokens): bool
  22. {
  23. throw new \BadMethodCallException('Not implemented.');
  24. }
  25. public function findTest(string $functionNameToSearch, Tokens $tokens, int $start = 0, ?int $end = null): ?array
  26. {
  27. return parent::find($functionNameToSearch, $tokens, $start, $end);
  28. }
  29. protected function applyFix(\SplFileInfo $file, Tokens $tokens): void
  30. {
  31. throw new \BadMethodCallException('Not implemented.');
  32. }
  33. }