mirror of
https://github.com/yiisoft/yii2.git
synced 2025-12-19 07:07:58 +08:00
Correction of many errors code inspection.
Adjustments code according to the standards. Adding missing PHPDoc comment.
This commit is contained in:
@@ -221,7 +221,7 @@ class MessageController extends Controller
|
||||
} else {
|
||||
$last_id = $db->getLastInsertID();
|
||||
$db->createCommand()
|
||||
->update(
|
||||
->update(
|
||||
$sourceMessageTable,
|
||||
['message' => new \yii\db\Expression("CONCAT('@@',message,'@@')")],
|
||||
['in', 'id', $obsolete]
|
||||
@@ -253,7 +253,10 @@ class MessageController extends Controller
|
||||
foreach ($translator as $currentTranslator) {
|
||||
$n = preg_match_all(
|
||||
'/\b' . $currentTranslator . '\s*\(\s*(\'.*?(?<!\\\\)\'|".*?(?<!\\\\)")\s*,\s*(\'.*?(?<!\\\\)\'|".*?(?<!\\\\)")\s*[,\)]/s',
|
||||
$subject, $matches, PREG_SET_ORDER);
|
||||
$subject,
|
||||
$matches,
|
||||
PREG_SET_ORDER
|
||||
);
|
||||
for ($i = 0; $i < $n; ++$i) {
|
||||
if (($pos = strpos($matches[$i][1], '.')) !== false) {
|
||||
$category = substr($matches[$i][1], $pos + 1, -1);
|
||||
|
||||
Reference in New Issue
Block a user