Code Duplication    Length = 5-5 lines in 2 locations

includes/class-give-translation.php 2 locations

@@ 159-163 (lines=5) @@
156
			}
157
158
			// Add text.
159
			if ( ! empty( $args['group'] ) ) {
160
				self::$text_configs[ $args['group'] ][ $args['id'] ] = $args;
161
			} else {
162
				self::$text_configs[ $args['id'] ] = $args;
163
			}
164
		} catch ( Exception $e ) {
165
			error_log( $e->getMessage() );
166
		}// End try().
@@ 257-261 (lines=5) @@
254
			return;
255
		}
256
257
		if ( ! empty( $args['group'] ) ) {
258
			self::$text_translations[ $args['group'] ][ $args['id'] ] = $args['text'];
259
		} else {
260
			self::$text_translations[ $args['id'] ] = $args['text'];
261
		}
262
	}
263
264
	/**