Code Duplication    Length = 7-10 lines in 2 locations

includes/admin/class-admin-settings.php 1 location

@@ 88-94 (lines=7) @@
85
		 *
86
		 * @return bool
87
		 */
88
		public static function verify_nonce() {
89
			if ( empty( $_REQUEST['_give-save-settings'] ) || ! wp_verify_nonce( $_REQUEST['_give-save-settings'], 'give-save-settings' ) ) {
90
				return false;
91
			}
92
93
			return true;
94
		}
95
96
		/**
97
		 * Save the settings.

includes/setting-functions.php 1 location

@@ 154-163 (lines=10) @@
151
 *
152
 * @return bool
153
 */
154
function give_is_saving_settings() {
155
	if (
156
		empty( $_REQUEST['_give-save-settings'] )
157
		|| ! wp_verify_nonce( $_REQUEST['_give-save-settings'], 'give-save-settings' )
158
	) {
159
		return false;
160
	}
161
162
	return true;
163
}
164
165
166
/**