Interfaces names should end with "Interface" 3

  • Info
  • Codestyle

More information: https://insight.symfony.com/what-we-analyse/php.interface_has_no_interface_suffix

  1. use Translation\Extractor\Model\SourceCollection;
  2. /**
  3. * Extract SourceLocations form a file.
  4. */
  5. interface FileExtractor

    Interface FileExtractor should be named FileExtractorInterface for better clarity.

    Time to fix: about 1 hour
    Open Issue Permalink
    Last edited by Tobias Nyholm
  6. {
  7. /**
  8. * @param SplFileInfo $file
  9. */
  10. public function getSourceLocations(SplFileInfo $file, SourceCollection $collection);
  • tobias

    Ignored on Tue, 03 Jan 2017 10:58:23 GMT
  1. * This interface is recognized by the extractors. Use this on your Form classes
  2. * or anywhere where you have dynamic translation strings.
  3. *
  4. * @author Tobias Nyholm <tobias.nyholm@gmail.com>
  5. */
  6. interface TranslationSourceLocationContainer

    Interface TranslationSourceLocationContainer should be named TranslationSourceLocationContainerInterface for better clarity.

    Time to fix: about 1 hour
    Open Issue Permalink
    Last edited by Tobias Nyholm
  7. {
  8. /**
  9. * Return an array of source locations.
  10. *
  11. * @return SourceLocation[]
  • tobias

    Ignored on Sat, 11 Mar 2017 16:43:36 GMT
  1. namespace Translation\Extractor\Visitor;
  2. use Symfony\Component\Finder\SplFileInfo;
  3. use Translation\Extractor\Model\SourceCollection;
  4. interface Visitor

    Interface Visitor should be named VisitorInterface for better clarity.

    Time to fix: about 1 hour
    Open Issue Permalink
    Last edited by Tobias Nyholm
  5. {
  6. /**
  7. * @param SourceCollection $collection
  8. * @param SplFileInfo $file
  9. */
  • tobias

    Ignored on Tue, 03 Jan 2017 10:58:10 GMT