Drupal investigation

Report.php 2.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. <?php
  2. /**
  3. * Represents a PHP_CodeSniffer report.
  4. *
  5. * PHP version 5.
  6. *
  7. * @category PHP
  8. * @package PHP_CodeSniffer
  9. * @author Gabriele Santini <gsantini@sqli.com>
  10. * @author Greg Sherwood <gsherwood@squiz.net>
  11. * @copyright 2009-2014 SQLI <www.sqli.com>
  12. * @copyright 2006-2014 Squiz Pty Ltd (ABN 77 084 670 600)
  13. * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
  14. * @link http://pear.php.net/package/PHP_CodeSniffer
  15. */
  16. /**
  17. * Represents a PHP_CodeSniffer report.
  18. *
  19. * @category PHP
  20. * @package PHP_CodeSniffer
  21. * @author Gabriele Santini <gsantini@sqli.com>
  22. * @author Greg Sherwood <gsherwood@squiz.net>
  23. * @copyright 2009-2014 SQLI <www.sqli.com>
  24. * @copyright 2006-2014 Squiz Pty Ltd (ABN 77 084 670 600)
  25. * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
  26. * @version Release: @package_version@
  27. * @link http://pear.php.net/package/PHP_CodeSniffer
  28. */
  29. interface PHP_CodeSniffer_Report
  30. {
  31. /**
  32. * Generate a partial report for a single processed file.
  33. *
  34. * Function should return TRUE if it printed or stored data about the file
  35. * and FALSE if it ignored the file. Returning TRUE indicates that the file and
  36. * its data should be counted in the grand totals.
  37. *
  38. * @param array $report Prepared report data.
  39. * @param PHP_CodeSniffer_File $phpcsFile The file being reported on.
  40. * @param boolean $showSources Show sources?
  41. * @param int $width Maximum allowed line width.
  42. *
  43. * @return boolean
  44. */
  45. public function generateFileReport(
  46. $report,
  47. PHP_CodeSniffer_File $phpcsFile,
  48. $showSources=false,
  49. $width=80
  50. );
  51. /**
  52. * Generate the actual report.
  53. *
  54. * @param string $cachedData Any partial report data that was returned from
  55. * generateFileReport during the run.
  56. * @param int $totalFiles Total number of files processed during the run.
  57. * @param int $totalErrors Total number of errors found during the run.
  58. * @param int $totalWarnings Total number of warnings found during the run.
  59. * @param int $totalFixable Total number of problems that can be fixed.
  60. * @param boolean $showSources Show sources?
  61. * @param int $width Maximum allowed line width.
  62. * @param boolean $toScreen Is the report being printed to screen?
  63. *
  64. * @return void
  65. */
  66. public function generate(
  67. $cachedData,
  68. $totalFiles,
  69. $totalErrors,
  70. $totalWarnings,
  71. $totalFixable,
  72. $showSources=false,
  73. $width=80,
  74. $toScreen=true
  75. );
  76. }//end interface