Code Duplication    Length = 5-7 lines in 2 locations

lib/AppConfig.php 2 locations

@@ 92-96 (lines=5) @@
89
	public function getAppSettings() {
90
		$result = [];
91
		$keys = $this->config->getAppKeys(Application::APPNAME);
92
		foreach ($keys as $key) {
93
			$value = $this->getAppValueArray($key);
94
			$value = $value === 'yes' ? true : $value;
95
			$result[$key] = $value === 'no' ? false : $value;
96
		}
97
98
		$keys = $this->config->getAppKeys(self::WATERMARK_APP_NAMESPACE);
99
		foreach ($keys as $key) {
@@ 99-105 (lines=7) @@
96
		}
97
98
		$keys = $this->config->getAppKeys(self::WATERMARK_APP_NAMESPACE);
99
		foreach ($keys as $key) {
100
			if (strpos($key, 'watermark_') === 0) {
101
				$value = $this->getAppValueArray($key);
102
				$value = $value === 'yes' ? true : $value;
103
				$result[$key] = $value === 'no' ? false : $value;
104
			}
105
		}
106
		return $result;
107
	}
108