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 = 12-24 lines in 5 locations

classes/db/DBCubrid.class.php 1 location

@@ 117-140 (lines=24) @@
114
	 * @param string $string
115
	 * @return string
116
	 */
117
	function addQuotes($string)
118
	{
119
		if(version_compare(PHP_VERSION, "5.4.0", "<") &&
120
				get_magic_quotes_gpc())
121
		{
122
			$string = stripslashes(str_replace("\\", "\\\\", $string));
123
		}
124
125
		if(!is_numeric($string))
126
		{
127
			/*
128
			  if ($this->isConnected()) {
129
			  $string = cubrid_real_escape_string($string);
130
			  }
131
			  else {
132
			  $string = str_replace("'","\'",$string);
133
			  }
134
			 */
135
136
			$string = str_replace("'", "''", $string);
137
		}
138
139
		return $string;
140
	}
141
142
	/**
143
	 * DB transaction start

classes/db/DBMysql.class.php 1 location

@@ 132-143 (lines=12) @@
129
	 * @param string $string
130
	 * @return string
131
	 */
132
	function addQuotes($string)
133
	{
134
		if(version_compare(PHP_VERSION, "5.4.0", "<") && get_magic_quotes_gpc())
135
		{
136
			$string = stripslashes(str_replace("\\", "\\\\", $string));
137
		}
138
		if(!is_numeric($string))
139
		{
140
			$string = @mysql_real_escape_string($string);
141
		}
142
		return $string;
143
	}
144
145
	/**
146
	 * DB transaction start

classes/db/DBMysqli.class.php 1 location

@@ 88-100 (lines=13) @@
85
	 * @param string $string
86
	 * @return string
87
	 */
88
	function addQuotes($string)
89
	{
90
		if(version_compare(PHP_VERSION, "5.4.0", "<") && get_magic_quotes_gpc())
91
		{
92
			$string = stripslashes(str_replace("\\", "\\\\", $string));
93
		}
94
		if(!is_numeric($string))
95
		{
96
			$connection = $this->_getConnection('master');
97
			$string = mysqli_escape_string($connection, $string);
98
		}
99
		return $string;
100
	}
101
102
	/**
103
	 * Execute the query

classes/db/DBMysqli_innodb.class.php 1 location

@@ 146-158 (lines=13) @@
143
	 * @param string $string
144
	 * @return string
145
	 */
146
	function addQuotes($string)
147
	{
148
		if(version_compare(PHP_VERSION, "5.4.0", "<") && get_magic_quotes_gpc())
149
		{
150
			$string = stripslashes(str_replace("\\", "\\\\", $string));
151
		}
152
		if(!is_numeric($string))
153
		{
154
			$connection = $this->_getConnection('master');
155
			$string = mysqli_escape_string($connection, $string);
156
		}
157
		return $string;
158
	}
159
160
	/**
161
	 * Execute the query

tools/dbxml_validator/connect_wrapper.php 1 location

@@ 348-361 (lines=14) @@
345
		@access
346
		@param $string
347
		*/
348
	public function addQuotes($string)
349
	{
350
		if(version_compare(PHP_VERSION, "5.4.0", "<") && get_magic_quotes_gpc())
351
		{
352
			$string = stripslashes(str_replace("\\", "\\\\", $string));
353
		}
354
355
		if(!is_numeric($string))
356
		{
357
			$string = @mysql_real_escape_string($string);
358
		}
359
360
		return $string;
361
	}
362
363
	/**
364
		@brief