Switch to PHPCS 2.x

This commit is contained in:
Dmitriy Simushev 2015-02-03 09:49:00 +00:00
parent 62f958622c
commit ebd6684d4a
7 changed files with 8 additions and 13 deletions

View File

@ -32,7 +32,7 @@
"ua-parser/uap-php": "~3.4.1"
},
"require-dev": {
"squizlabs/php_codesniffer": "1.*"
"squizlabs/php_codesniffer": "2.*"
},
"config": {
"vendor-dir": "mibew/vendor"

View File

@ -54,7 +54,6 @@ class WidgetController extends AbstractController
&& (Settings::get('trackoperators') == '1' || !$this->getOperator());
if ($tracking_allowed) {
$entry = $request->query->get('entry', '');
$referer = $request->server->get('HTTP_REFERER', '');
$user_id = $request->query->get('user_id', false);

View File

@ -431,7 +431,6 @@ class UsersProcessor extends ClientSideProcessor implements AuthenticationManage
$visitors = array();
foreach ($rows as $row) {
// Get visitor details
$details = track_retrieve_details($row);

View File

@ -749,7 +749,6 @@ class Thread
|| $this->agentId == $operator['operatorid'];
if ($this->state == self::STATE_WAITING && $is_operator_correct) {
// Prepare message
if ($this->nextAgent == $operator['operatorid']) {
$message_to_post = getlocal(

View File

@ -88,11 +88,9 @@ function sanitize_string($string, $tags_level = 'high', $attr_level = 'high')
$attr_level = array_key_exists($attr_level, $sanitize_attributes) ? $attr_level : 'high';
if ($sanitize_attributes[$attr_level]) {
preg_match_all("/<([^ !\/\>\n]+)([^>]*)>/i", $string, $elements);
foreach ($elements[1] as $key => $element) {
if ($elements[2][$key]) {
$new_attributes = '';
preg_match_all(
"/([^ =]+)\s*=\s*[\"|']{0,1}([^\"']*)[\"|']{0,1}/i",