@@ -24,144 +24,144 @@ |
||
| 24 | 24 | namespace OC\App\CodeChecker; |
| 25 | 25 | |
| 26 | 26 | class DeprecationCheck extends AbstractCheck implements ICheck { |
| 27 | - /** |
|
| 28 | - * @return string |
|
| 29 | - */ |
|
| 30 | - protected function getLocalDescription() { |
|
| 31 | - return 'deprecated'; |
|
| 32 | - } |
|
| 33 | - |
|
| 34 | - /** |
|
| 35 | - * @return array E.g.: `'ClassName' => 'oc version',` |
|
| 36 | - */ |
|
| 37 | - protected function getLocalClasses() { |
|
| 38 | - return [ |
|
| 39 | - 'OC_JSON' => '8.2.0', |
|
| 40 | - |
|
| 41 | - 'OCP\Contacts' => '8.1.0', |
|
| 42 | - 'OCP\DB' => '8.1.0', |
|
| 43 | - 'OCP\IHelper' => '8.1.0', |
|
| 44 | - 'OCP\JSON' => '8.1.0', |
|
| 45 | - 'OCP\Response' => '8.1.0', |
|
| 46 | - 'OCP\AppFramework\IApi' => '8.0.0', |
|
| 47 | - 'OCP\User' => '13.0.0', |
|
| 48 | - ]; |
|
| 49 | - } |
|
| 50 | - |
|
| 51 | - /** |
|
| 52 | - * @return array E.g.: `'ClassName::CONSTANT_NAME' => 'oc version',` |
|
| 53 | - */ |
|
| 54 | - protected function getLocalConstants() { |
|
| 55 | - return [ |
|
| 56 | - 'OC_API::GUEST_AUTH' => '8.2.0', |
|
| 57 | - 'OC_API::USER_AUTH' => '8.2.0', |
|
| 58 | - 'OC_API::SUBADMIN_AUTH' => '8.2.0', |
|
| 59 | - 'OC_API::ADMIN_AUTH' => '8.2.0', |
|
| 60 | - 'OC_API::RESPOND_UNAUTHORISED' => '8.2.0', |
|
| 61 | - 'OC_API::RESPOND_SERVER_ERROR' => '8.2.0', |
|
| 62 | - 'OC_API::RESPOND_NOT_FOUND' => '8.2.0', |
|
| 63 | - 'OC_API::RESPOND_UNKNOWN_ERROR' => '8.2.0', |
|
| 64 | - |
|
| 65 | - 'OCP::PERMISSION_CREATE' => '8.0.0', |
|
| 66 | - 'OCP::PERMISSION_READ' => '8.0.0', |
|
| 67 | - 'OCP::PERMISSION_UPDATE' => '8.0.0', |
|
| 68 | - 'OCP::PERMISSION_DELETE' => '8.0.0', |
|
| 69 | - 'OCP::PERMISSION_SHARE' => '8.0.0', |
|
| 70 | - 'OCP::PERMISSION_ALL' => '8.0.0', |
|
| 71 | - 'OCP::FILENAME_INVALID_CHARS' => '8.0.0', |
|
| 72 | - ]; |
|
| 73 | - } |
|
| 74 | - |
|
| 75 | - /** |
|
| 76 | - * @return array E.g.: `'functionName' => 'oc version',` |
|
| 77 | - */ |
|
| 78 | - protected function getLocalFunctions() { |
|
| 79 | - return [ |
|
| 80 | - 'OCP::image_path' => '8.0.0', |
|
| 81 | - 'OCP::mimetype_icon' => '8.0.0', |
|
| 82 | - 'OCP::preview_icon' => '8.0.0', |
|
| 83 | - 'OCP::publicPreview_icon' => '8.0.0', |
|
| 84 | - 'OCP::human_file_size' => '8.0.0', |
|
| 85 | - 'OCP::relative_modified_date' => '8.0.0', |
|
| 86 | - 'OCP::simple_file_size' => '8.0.0', |
|
| 87 | - 'OCP::html_select_options' => '8.0.0', |
|
| 88 | - ]; |
|
| 89 | - } |
|
| 90 | - |
|
| 91 | - /** |
|
| 92 | - * @return array E.g.: `'ClassName::methodName' => 'oc version',` |
|
| 93 | - */ |
|
| 94 | - protected function getLocalMethods() { |
|
| 95 | - return [ |
|
| 96 | - 'OC_L10N::get' => '8.2.0', |
|
| 97 | - |
|
| 98 | - 'OCP\Activity\IManager::publishActivity' => '8.2.0', |
|
| 99 | - |
|
| 100 | - 'OCP\App::register' => '8.1.0', |
|
| 101 | - 'OCP\App::addNavigationEntry' => '8.1.0', |
|
| 102 | - 'OCP\App::getActiveNavigationEntry' => '8.2.0', |
|
| 103 | - 'OCP\App::setActiveNavigationEntry' => '8.1.0', |
|
| 104 | - |
|
| 105 | - 'OCP\AppFramework\Controller::params' => '7.0.0', |
|
| 106 | - 'OCP\AppFramework\Controller::getParams' => '7.0.0', |
|
| 107 | - 'OCP\AppFramework\Controller::method' => '7.0.0', |
|
| 108 | - 'OCP\AppFramework\Controller::getUploadedFile' => '7.0.0', |
|
| 109 | - 'OCP\AppFramework\Controller::env' => '7.0.0', |
|
| 110 | - 'OCP\AppFramework\Controller::cookie' => '7.0.0', |
|
| 111 | - 'OCP\AppFramework\Controller::render' => '7.0.0', |
|
| 112 | - |
|
| 113 | - 'OCP\AppFramework\IAppContainer::getCoreApi' => '8.0.0', |
|
| 114 | - 'OCP\AppFramework\IAppContainer::isLoggedIn' => '8.0.0', |
|
| 115 | - 'OCP\AppFramework\IAppContainer::isAdminUser' => '8.0.0', |
|
| 116 | - 'OCP\AppFramework\IAppContainer::log' => '8.0.0', |
|
| 117 | - |
|
| 118 | - 'OCP\BackgroundJob::registerJob' => '8.1.0', |
|
| 119 | - |
|
| 120 | - 'OCP\Files::tmpFile' => '8.1.0', |
|
| 121 | - 'OCP\Files::tmpFolder' => '8.1.0', |
|
| 122 | - |
|
| 123 | - 'OCP\IAppConfig::getValue' => '8.0.0', |
|
| 124 | - 'OCP\IAppConfig::deleteKey' => '8.0.0', |
|
| 125 | - 'OCP\IAppConfig::getKeys' => '8.0.0', |
|
| 126 | - 'OCP\IAppConfig::setValue' => '8.0.0', |
|
| 127 | - 'OCP\IAppConfig::deleteApp' => '8.0.0', |
|
| 128 | - |
|
| 129 | - 'OCP\IDBConnection::createQueryBuilder' => '8.2.0', |
|
| 130 | - 'OCP\IDBConnection::getExpressionBuilder' => '8.2.0', |
|
| 131 | - |
|
| 132 | - 'OCP\ISearch::search' => '8.0.0', |
|
| 133 | - |
|
| 134 | - 'OCP\IServerContainer::getCache' => '8.2.0', |
|
| 135 | - 'OCP\IServerContainer::getDb' => '8.1.0', |
|
| 136 | - 'OCP\IServerContainer::getHTTPHelper' => '8.1.0', |
|
| 137 | - |
|
| 138 | - 'OCP\User::getUser' => '8.0.0', |
|
| 139 | - 'OCP\User::getUsers' => '8.1.0', |
|
| 140 | - 'OCP\User::getDisplayName' => '8.1.0', |
|
| 141 | - 'OCP\User::getDisplayNames' => '8.1.0', |
|
| 142 | - 'OCP\User::userExists' => '8.1.0', |
|
| 143 | - 'OCP\User::logout' => '8.1.0', |
|
| 144 | - 'OCP\User::checkPassword' => '8.1.0', |
|
| 145 | - 'OCP\User::isLoggedIn' => '13.0.0', |
|
| 146 | - 'OCP\User::checkAdminUser' => '13.0.0', |
|
| 147 | - 'OCP\User::checkLoggedIn' => '13.0.0', |
|
| 148 | - |
|
| 149 | - 'OCP\Util::encryptedFiles' => '8.1.0', |
|
| 150 | - 'OCP\Util::formatDate' => '8.0.0', |
|
| 151 | - 'OCP\Util::generateRandomBytes' => '8.1.0', |
|
| 152 | - 'OCP\Util::getServerHost' => '8.1.0', |
|
| 153 | - 'OCP\Util::getServerProtocol' => '8.1.0', |
|
| 154 | - 'OCP\Util::getRequestUri' => '8.1.0', |
|
| 155 | - 'OCP\Util::getScriptName' => '8.1.0', |
|
| 156 | - 'OCP\Util::imagePath' => '8.1.0', |
|
| 157 | - 'OCP\Util::isValidFileName' => '8.1.0', |
|
| 158 | - 'OCP\Util::linkToRoute' => '8.1.0', |
|
| 159 | - 'OCP\Util::linkTo' => '8.1.0', |
|
| 160 | - 'OCP\Util::logException' => '8.2.0', |
|
| 161 | - 'OCP\Util::mb_str_replace' => '8.2.0', |
|
| 162 | - 'OCP\Util::mb_substr_replace' => '8.2.0', |
|
| 163 | - 'OCP\Util::sendMail' => '8.1.0', |
|
| 164 | - 'OCP\Util::writeLog' => '13.0.0', |
|
| 165 | - ]; |
|
| 166 | - } |
|
| 27 | + /** |
|
| 28 | + * @return string |
|
| 29 | + */ |
|
| 30 | + protected function getLocalDescription() { |
|
| 31 | + return 'deprecated'; |
|
| 32 | + } |
|
| 33 | + |
|
| 34 | + /** |
|
| 35 | + * @return array E.g.: `'ClassName' => 'oc version',` |
|
| 36 | + */ |
|
| 37 | + protected function getLocalClasses() { |
|
| 38 | + return [ |
|
| 39 | + 'OC_JSON' => '8.2.0', |
|
| 40 | + |
|
| 41 | + 'OCP\Contacts' => '8.1.0', |
|
| 42 | + 'OCP\DB' => '8.1.0', |
|
| 43 | + 'OCP\IHelper' => '8.1.0', |
|
| 44 | + 'OCP\JSON' => '8.1.0', |
|
| 45 | + 'OCP\Response' => '8.1.0', |
|
| 46 | + 'OCP\AppFramework\IApi' => '8.0.0', |
|
| 47 | + 'OCP\User' => '13.0.0', |
|
| 48 | + ]; |
|
| 49 | + } |
|
| 50 | + |
|
| 51 | + /** |
|
| 52 | + * @return array E.g.: `'ClassName::CONSTANT_NAME' => 'oc version',` |
|
| 53 | + */ |
|
| 54 | + protected function getLocalConstants() { |
|
| 55 | + return [ |
|
| 56 | + 'OC_API::GUEST_AUTH' => '8.2.0', |
|
| 57 | + 'OC_API::USER_AUTH' => '8.2.0', |
|
| 58 | + 'OC_API::SUBADMIN_AUTH' => '8.2.0', |
|
| 59 | + 'OC_API::ADMIN_AUTH' => '8.2.0', |
|
| 60 | + 'OC_API::RESPOND_UNAUTHORISED' => '8.2.0', |
|
| 61 | + 'OC_API::RESPOND_SERVER_ERROR' => '8.2.0', |
|
| 62 | + 'OC_API::RESPOND_NOT_FOUND' => '8.2.0', |
|
| 63 | + 'OC_API::RESPOND_UNKNOWN_ERROR' => '8.2.0', |
|
| 64 | + |
|
| 65 | + 'OCP::PERMISSION_CREATE' => '8.0.0', |
|
| 66 | + 'OCP::PERMISSION_READ' => '8.0.0', |
|
| 67 | + 'OCP::PERMISSION_UPDATE' => '8.0.0', |
|
| 68 | + 'OCP::PERMISSION_DELETE' => '8.0.0', |
|
| 69 | + 'OCP::PERMISSION_SHARE' => '8.0.0', |
|
| 70 | + 'OCP::PERMISSION_ALL' => '8.0.0', |
|
| 71 | + 'OCP::FILENAME_INVALID_CHARS' => '8.0.0', |
|
| 72 | + ]; |
|
| 73 | + } |
|
| 74 | + |
|
| 75 | + /** |
|
| 76 | + * @return array E.g.: `'functionName' => 'oc version',` |
|
| 77 | + */ |
|
| 78 | + protected function getLocalFunctions() { |
|
| 79 | + return [ |
|
| 80 | + 'OCP::image_path' => '8.0.0', |
|
| 81 | + 'OCP::mimetype_icon' => '8.0.0', |
|
| 82 | + 'OCP::preview_icon' => '8.0.0', |
|
| 83 | + 'OCP::publicPreview_icon' => '8.0.0', |
|
| 84 | + 'OCP::human_file_size' => '8.0.0', |
|
| 85 | + 'OCP::relative_modified_date' => '8.0.0', |
|
| 86 | + 'OCP::simple_file_size' => '8.0.0', |
|
| 87 | + 'OCP::html_select_options' => '8.0.0', |
|
| 88 | + ]; |
|
| 89 | + } |
|
| 90 | + |
|
| 91 | + /** |
|
| 92 | + * @return array E.g.: `'ClassName::methodName' => 'oc version',` |
|
| 93 | + */ |
|
| 94 | + protected function getLocalMethods() { |
|
| 95 | + return [ |
|
| 96 | + 'OC_L10N::get' => '8.2.0', |
|
| 97 | + |
|
| 98 | + 'OCP\Activity\IManager::publishActivity' => '8.2.0', |
|
| 99 | + |
|
| 100 | + 'OCP\App::register' => '8.1.0', |
|
| 101 | + 'OCP\App::addNavigationEntry' => '8.1.0', |
|
| 102 | + 'OCP\App::getActiveNavigationEntry' => '8.2.0', |
|
| 103 | + 'OCP\App::setActiveNavigationEntry' => '8.1.0', |
|
| 104 | + |
|
| 105 | + 'OCP\AppFramework\Controller::params' => '7.0.0', |
|
| 106 | + 'OCP\AppFramework\Controller::getParams' => '7.0.0', |
|
| 107 | + 'OCP\AppFramework\Controller::method' => '7.0.0', |
|
| 108 | + 'OCP\AppFramework\Controller::getUploadedFile' => '7.0.0', |
|
| 109 | + 'OCP\AppFramework\Controller::env' => '7.0.0', |
|
| 110 | + 'OCP\AppFramework\Controller::cookie' => '7.0.0', |
|
| 111 | + 'OCP\AppFramework\Controller::render' => '7.0.0', |
|
| 112 | + |
|
| 113 | + 'OCP\AppFramework\IAppContainer::getCoreApi' => '8.0.0', |
|
| 114 | + 'OCP\AppFramework\IAppContainer::isLoggedIn' => '8.0.0', |
|
| 115 | + 'OCP\AppFramework\IAppContainer::isAdminUser' => '8.0.0', |
|
| 116 | + 'OCP\AppFramework\IAppContainer::log' => '8.0.0', |
|
| 117 | + |
|
| 118 | + 'OCP\BackgroundJob::registerJob' => '8.1.0', |
|
| 119 | + |
|
| 120 | + 'OCP\Files::tmpFile' => '8.1.0', |
|
| 121 | + 'OCP\Files::tmpFolder' => '8.1.0', |
|
| 122 | + |
|
| 123 | + 'OCP\IAppConfig::getValue' => '8.0.0', |
|
| 124 | + 'OCP\IAppConfig::deleteKey' => '8.0.0', |
|
| 125 | + 'OCP\IAppConfig::getKeys' => '8.0.0', |
|
| 126 | + 'OCP\IAppConfig::setValue' => '8.0.0', |
|
| 127 | + 'OCP\IAppConfig::deleteApp' => '8.0.0', |
|
| 128 | + |
|
| 129 | + 'OCP\IDBConnection::createQueryBuilder' => '8.2.0', |
|
| 130 | + 'OCP\IDBConnection::getExpressionBuilder' => '8.2.0', |
|
| 131 | + |
|
| 132 | + 'OCP\ISearch::search' => '8.0.0', |
|
| 133 | + |
|
| 134 | + 'OCP\IServerContainer::getCache' => '8.2.0', |
|
| 135 | + 'OCP\IServerContainer::getDb' => '8.1.0', |
|
| 136 | + 'OCP\IServerContainer::getHTTPHelper' => '8.1.0', |
|
| 137 | + |
|
| 138 | + 'OCP\User::getUser' => '8.0.0', |
|
| 139 | + 'OCP\User::getUsers' => '8.1.0', |
|
| 140 | + 'OCP\User::getDisplayName' => '8.1.0', |
|
| 141 | + 'OCP\User::getDisplayNames' => '8.1.0', |
|
| 142 | + 'OCP\User::userExists' => '8.1.0', |
|
| 143 | + 'OCP\User::logout' => '8.1.0', |
|
| 144 | + 'OCP\User::checkPassword' => '8.1.0', |
|
| 145 | + 'OCP\User::isLoggedIn' => '13.0.0', |
|
| 146 | + 'OCP\User::checkAdminUser' => '13.0.0', |
|
| 147 | + 'OCP\User::checkLoggedIn' => '13.0.0', |
|
| 148 | + |
|
| 149 | + 'OCP\Util::encryptedFiles' => '8.1.0', |
|
| 150 | + 'OCP\Util::formatDate' => '8.0.0', |
|
| 151 | + 'OCP\Util::generateRandomBytes' => '8.1.0', |
|
| 152 | + 'OCP\Util::getServerHost' => '8.1.0', |
|
| 153 | + 'OCP\Util::getServerProtocol' => '8.1.0', |
|
| 154 | + 'OCP\Util::getRequestUri' => '8.1.0', |
|
| 155 | + 'OCP\Util::getScriptName' => '8.1.0', |
|
| 156 | + 'OCP\Util::imagePath' => '8.1.0', |
|
| 157 | + 'OCP\Util::isValidFileName' => '8.1.0', |
|
| 158 | + 'OCP\Util::linkToRoute' => '8.1.0', |
|
| 159 | + 'OCP\Util::linkTo' => '8.1.0', |
|
| 160 | + 'OCP\Util::logException' => '8.2.0', |
|
| 161 | + 'OCP\Util::mb_str_replace' => '8.2.0', |
|
| 162 | + 'OCP\Util::mb_substr_replace' => '8.2.0', |
|
| 163 | + 'OCP\Util::sendMail' => '8.1.0', |
|
| 164 | + 'OCP\Util::writeLog' => '13.0.0', |
|
| 165 | + ]; |
|
| 166 | + } |
|
| 167 | 167 | } |