diff options
author | Joas Schilling <nickvergessen@owncloud.com> | 2015-07-07 15:37:56 +0200 |
---|---|---|
committer | Joas Schilling <nickvergessen@owncloud.com> | 2015-07-17 12:34:56 +0200 |
commit | a0c6f2e5e071a287717e58f32c5b3cf6e219f321 (patch) | |
tree | 231363a90e1c8296e8a06a0346078adc3c5e8454 /lib/private/app/codechecker/emptycheck.php | |
parent | bba87a2a3b46d20a552efa4a1d00d3253aedf27b (diff) | |
download | nextcloud-server-a0c6f2e5e071a287717e58f32c5b3cf6e219f321.tar.gz nextcloud-server-a0c6f2e5e071a287717e58f32c5b3cf6e219f321.zip |
Use the decorator pattern
Diffstat (limited to 'lib/private/app/codechecker/emptycheck.php')
-rw-r--r-- | lib/private/app/codechecker/emptycheck.php | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/lib/private/app/codechecker/emptycheck.php b/lib/private/app/codechecker/emptycheck.php new file mode 100644 index 00000000000..78a0d303790 --- /dev/null +++ b/lib/private/app/codechecker/emptycheck.php @@ -0,0 +1,65 @@ +<?php +/** + * @author Joas Schilling <nickvergessen@owncloud.com> + * + * @copyright Copyright (c) 2015, ownCloud, Inc. + * @license AGPL-3.0 + * + * This code is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License, version 3, + * as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License, version 3, + * along with this program. If not, see <http://www.gnu.org/licenses/> + * + */ +namespace OC\App\CodeChecker; + +class EmptyCheck implements ICheck { + /** + * @return string + */ + public function getDescription() { + return ''; + } + + /** + * @return array E.g.: `'ClassName' => 'oc version',` + */ + public function getClasses() { + return []; + } + + /** + * @return array E.g.: `'ClassName::CONSTANT_NAME' => 'oc version',` + */ + public function getConstants() { + return []; + } + + /** + * @return array E.g.: `'functionName' => 'oc version',` + */ + public function getFunctions() { + return []; + } + + /** + * @return array E.g.: `'ClassName::methodName' => 'oc version',` + */ + public function getMethods() { + return []; + } + + /** + * @return bool + */ + public function checkStrongComparisons() { + return false; + } +} |