mirror of
https://github.com/Mibew/mibew.git
synced 2025-02-07 16:24:43 +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"
|
"ua-parser/uap-php": "~3.4.1"
|
||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"squizlabs/php_codesniffer": "1.*"
|
"squizlabs/php_codesniffer": "2.*"
|
||||||
},
|
},
|
||||||
"config": {
|
"config": {
|
||||||
"vendor-dir": "mibew/vendor"
|
"vendor-dir": "mibew/vendor"
|
||||||
|
@ -54,7 +54,6 @@ class WidgetController extends AbstractController
|
|||||||
&& (Settings::get('trackoperators') == '1' || !$this->getOperator());
|
&& (Settings::get('trackoperators') == '1' || !$this->getOperator());
|
||||||
|
|
||||||
if ($tracking_allowed) {
|
if ($tracking_allowed) {
|
||||||
|
|
||||||
$entry = $request->query->get('entry', '');
|
$entry = $request->query->get('entry', '');
|
||||||
$referer = $request->server->get('HTTP_REFERER', '');
|
$referer = $request->server->get('HTTP_REFERER', '');
|
||||||
$user_id = $request->query->get('user_id', false);
|
$user_id = $request->query->get('user_id', false);
|
||||||
|
@ -431,7 +431,6 @@ class UsersProcessor extends ClientSideProcessor implements AuthenticationManage
|
|||||||
|
|
||||||
$visitors = array();
|
$visitors = array();
|
||||||
foreach ($rows as $row) {
|
foreach ($rows as $row) {
|
||||||
|
|
||||||
// Get visitor details
|
// Get visitor details
|
||||||
$details = track_retrieve_details($row);
|
$details = track_retrieve_details($row);
|
||||||
|
|
||||||
|
@ -749,7 +749,6 @@ class Thread
|
|||||||
|| $this->agentId == $operator['operatorid'];
|
|| $this->agentId == $operator['operatorid'];
|
||||||
|
|
||||||
if ($this->state == self::STATE_WAITING && $is_operator_correct) {
|
if ($this->state == self::STATE_WAITING && $is_operator_correct) {
|
||||||
|
|
||||||
// Prepare message
|
// Prepare message
|
||||||
if ($this->nextAgent == $operator['operatorid']) {
|
if ($this->nextAgent == $operator['operatorid']) {
|
||||||
$message_to_post = getlocal(
|
$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';
|
$attr_level = array_key_exists($attr_level, $sanitize_attributes) ? $attr_level : 'high';
|
||||||
if ($sanitize_attributes[$attr_level]) {
|
if ($sanitize_attributes[$attr_level]) {
|
||||||
|
|
||||||
preg_match_all("/<([^ !\/\>\n]+)([^>]*)>/i", $string, $elements);
|
preg_match_all("/<([^ !\/\>\n]+)([^>]*)>/i", $string, $elements);
|
||||||
foreach ($elements[1] as $key => $element) {
|
foreach ($elements[1] as $key => $element) {
|
||||||
if ($elements[2][$key]) {
|
if ($elements[2][$key]) {
|
||||||
|
|
||||||
$new_attributes = '';
|
$new_attributes = '';
|
||||||
preg_match_all(
|
preg_match_all(
|
||||||
"/([^ =]+)\s*=\s*[\"|']{0,1}([^\"']*)[\"|']{0,1}/i",
|
"/([^ =]+)\s*=\s*[\"|']{0,1}([^\"']*)[\"|']{0,1}/i",
|
||||||
|
Loading…
Reference in New Issue
Block a user