GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

Code Duplication    Length = 24-24 lines in 2 locations

modules/module/module.controller.php 2 locations

@@ 68-91 (lines=24) @@
65
	 * module trigger is to call a trigger to a target module
66
	 *
67
	 */
68
	function insertTrigger($trigger_name, $module, $type, $called_method, $called_position)
69
	{
70
		$args = new stdClass();
71
		$args->trigger_name = $trigger_name;
72
		$args->module = $module;
73
		$args->type = $type;
74
		$args->called_method = $called_method;
75
		$args->called_position = $called_position;
76
77
		$output = executeQuery('module.insertTrigger', $args);
78
		if($output->toBool())
79
		{
80
			//remove from cache
81
			$GLOBALS['__triggers__'] = NULL;
82
			$oCacheHandler = CacheHandler::getInstance('object', NULL, TRUE);
83
			if($oCacheHandler->isSupport())
84
			{
85
				$cache_key = 'triggers';
86
				$oCacheHandler->delete($cache_key);
87
			}
88
		}
89
90
		return $output;
91
	}
92
93
	/**
94
	 * @brief Delete module trigger
@@ 97-120 (lines=24) @@
94
	 * @brief Delete module trigger
95
	 *
96
	 */
97
	function deleteTrigger($trigger_name, $module, $type, $called_method, $called_position)
98
	{
99
		$args = new stdClass();
100
		$args->trigger_name = $trigger_name;
101
		$args->module = $module;
102
		$args->type = $type;
103
		$args->called_method = $called_method;
104
		$args->called_position = $called_position;
105
106
		$output = executeQuery('module.deleteTrigger', $args);
107
		if($output->toBool())
108
		{
109
			//remove from cache
110
			$GLOBALS['__triggers__'] = NULL;
111
			$oCacheHandler = CacheHandler::getInstance('object', NULL, TRUE);
112
			if($oCacheHandler->isSupport())
113
			{
114
				$cache_key = 'triggers';
115
				$oCacheHandler->delete($cache_key);
116
			}
117
		}
118
119
		return $output;
120
	}
121
122
	/**
123
	 * @brief Delete module trigger