{"comment":{"url":"https://api.github.com/repos/yiisoft/yii2/comments/22047306","html_url":"https://github.com/yiisoft/yii2/commit/6db6a2ddbea852b51bdf19cfa911355df26205d3#commitcomment-22047306","id":22047306,"user":{"login":"Tigrov","id":8563175,"avatar_url":"https://avatars0.githubusercontent.com/u/8563175?v=3","gravatar_id":"","url":"https://api.github.com/users/Tigrov","html_url":"https://github.com/Tigrov","followers_url":"https://api.github.com/users/Tigrov/followers","following_url":"https://api.github.com/users/Tigrov/following{/other_user}","gists_url":"https://api.github.com/users/Tigrov/gists{/gist_id}","starred_url":"https://api.github.com/users/Tigrov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tigrov/subscriptions","organizations_url":"https://api.github.com/users/Tigrov/orgs","repos_url":"https://api.github.com/users/Tigrov/repos","events_url":"https://api.github.com/users/Tigrov/events{/privacy}","received_events_url":"https://api.github.com/users/Tigrov/received_events","type":"User","site_admin":false},"position":null,"line":null,"path":null,"commit_id":"6db6a2ddbea852b51bdf19cfa911355df26205d3","created_at":"2017-05-07T18:37:39Z","updated_at":"2017-05-07T18:37:39Z","body":"In follow cases\r\n```php\r\npublic function batchInsert($table, $columns, $rows)\r\n{\r\n    if (empty($rows)) {\r\n        return '';\r\n    }\r\n    // ...\r\n    $values = [];\r\n    foreach ($rows as $row) {\r\n        $vs = [];\r\n        // ...\r\n        $values[] = '(' . implode(', ', $vs) . ')';\r\n    }\r\n    if (empty($values)) {\r\n        return '';\r\n    }\r\n    // ....\r\n}\r\n```\r\nthe code \r\n```php\r\nif (empty($values)) {\r\n    return '';\r\n}\r\n```\r\nwill never be executed."}}
{"actor":{"display_login":"Tigrov"}}