mirror of
https://github.com/Mibew/mibew.git
synced 2025-01-31 05:20:30 +03:00
Switch to PHPCS 2.x
This commit is contained in:
parent
62f958622c
commit
ebd6684d4a
@ -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"
|
||||
|
@ -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);
|
||||
|
@ -431,7 +431,6 @@ class UsersProcessor extends ClientSideProcessor implements AuthenticationManage
|
||||
|
||||
$visitors = array();
|
||||
foreach ($rows as $row) {
|
||||
|
||||
// Get visitor details
|
||||
$details = track_retrieve_details($row);
|
||||
|
||||
|
@ -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(
|
||||
|
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user