PrivateCheck.php 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. <?php
  2. /**
  3. * @copyright Copyright (c) 2016, ownCloud, Inc.
  4. *
  5. * @author Joas Schilling <coding@schilljs.com>
  6. *
  7. * @license AGPL-3.0
  8. *
  9. * This code is free software: you can redistribute it and/or modify
  10. * it under the terms of the GNU Affero General Public License, version 3,
  11. * as published by the Free Software Foundation.
  12. *
  13. * This program is distributed in the hope that it will be useful,
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. * GNU Affero General Public License for more details.
  17. *
  18. * You should have received a copy of the GNU Affero General Public License, version 3,
  19. * along with this program. If not, see <http://www.gnu.org/licenses/>
  20. *
  21. */
  22. namespace OC\App\CodeChecker;
  23. class PrivateCheck extends AbstractCheck implements ICheck {
  24. /**
  25. * @return string
  26. */
  27. protected function getLocalDescription() {
  28. return 'private';
  29. }
  30. /**
  31. * @return array
  32. */
  33. public function getLocalClasses() {
  34. return [
  35. // classes replaced by the public api
  36. 'OC_API' => '6.0.0',
  37. 'OC_App' => '6.0.0',
  38. 'OC_AppConfig' => '6.0.0',
  39. 'OC_Avatar' => '6.0.0',
  40. 'OC_BackgroundJob' => '6.0.0',
  41. 'OC_Config' => '6.0.0',
  42. 'OC_DB' => '6.0.0',
  43. 'OC_Files' => '6.0.0',
  44. 'OC_Helper' => '6.0.0',
  45. 'OC_Hook' => '6.0.0',
  46. 'OC_Image' => '6.0.0',
  47. 'OC_JSON' => '6.0.0',
  48. 'OC_L10N' => '6.0.0',
  49. 'OC_Log' => '6.0.0',
  50. 'OC_Mail' => '6.0.0',
  51. 'OC_Preferences' => '6.0.0',
  52. 'OC_Search_Provider' => '6.0.0',
  53. 'OC_Search_Result' => '6.0.0',
  54. 'OC_Request' => '6.0.0',
  55. 'OC_Response' => '6.0.0',
  56. 'OC_Template' => '6.0.0',
  57. 'OC_User' => '6.0.0',
  58. 'OC_Util' => '6.0.0',
  59. ];
  60. }
  61. /**
  62. * @return array
  63. */
  64. public function getLocalConstants() {
  65. return [];
  66. }
  67. /**
  68. * @return array
  69. */
  70. public function getLocalFunctions() {
  71. return [];
  72. }
  73. /**
  74. * @return array
  75. */
  76. public function getLocalMethods() {
  77. return [];
  78. }
  79. }