@@ -1508,13 +1508,13 @@ public function getWhere($where = null, $limit = null, $offset = null)
15081508 * @param array $set An associative array of insert values
15091509 * @param bool $escape Whether to escape values and identifiers
15101510 *
1511- * @param int $batch_size
1511+ * @param int $batchSize
15121512 * @param bool $testing
15131513 *
15141514 * @return int Number of rows inserted or FALSE on failure
15151515 * @throws DatabaseException
15161516 */
1517- public function insertBatch ($ set = null , $ escape = null , $ batch_size = 100 , $ testing = false )
1517+ public function insertBatch ($ set = null , $ escape = null , $ batchSize = 100 , $ testing = false )
15181518 {
15191519 if ($ set === null )
15201520 {
@@ -1547,9 +1547,9 @@ public function insertBatch($set = null, $escape = null, $batch_size = 100, $tes
15471547
15481548 // Batch this baby
15491549 $ affected_rows = 0 ;
1550- for ($ i = 0 , $ total = count ($ this ->QBSet ); $ i < $ total ; $ i += $ batch_size )
1550+ for ($ i = 0 , $ total = count ($ this ->QBSet ); $ i < $ total ; $ i += $ batchSize )
15511551 {
1552- $ sql = $ this ->_insertBatch ($ this ->db ->protectIdentifiers ($ table , true , $ escape , false ), $ this ->QBKeys , array_slice ($ this ->QBSet , $ i , $ batch_size ));
1552+ $ sql = $ this ->_insertBatch ($ this ->db ->protectIdentifiers ($ table , true , $ escape , false ), $ this ->QBKeys , array_slice ($ this ->QBSet , $ i , $ batchSize ));
15531553
15541554 if ($ testing )
15551555 {
@@ -1975,15 +1975,15 @@ protected function validateUpdate()
19751975 *
19761976 * Compiles an update string and runs the query
19771977 *
1978- * @param array $set An associative array of update values
1979- * @param string $index The where key
1980- * @param int $batch_size The size of the batch to run
1981- * @param bool $returnSQL True means SQL is returned, false will execute the query
1978+ * @param array $set An associative array of update values
1979+ * @param string $index The where key
1980+ * @param int $batchSize The size of the batch to run
1981+ * @param bool $returnSQL True means SQL is returned, false will execute the query
19821982 *
19831983 * @return mixed Number of rows affected or FALSE on failure
19841984 * @throws \CodeIgniter\Database\Exceptions\DatabaseException
19851985 */
1986- public function updateBatch ($ set = null , $ index = null , $ batch_size = 100 , $ returnSQL = false )
1986+ public function updateBatch ($ set = null , $ index = null , $ batchSize = 100 , $ returnSQL = false )
19871987 {
19881988 if ($ index === null )
19891989 {
@@ -2025,9 +2025,9 @@ public function updateBatch($set = null, $index = null, $batch_size = 100, $retu
20252025 // Batch this baby
20262026 $ affected_rows = 0 ;
20272027 $ savedSQL = [];
2028- for ($ i = 0 , $ total = count ($ this ->QBSet ); $ i < $ total ; $ i += $ batch_size )
2028+ for ($ i = 0 , $ total = count ($ this ->QBSet ); $ i < $ total ; $ i += $ batchSize )
20292029 {
2030- $ sql = $ this ->_updateBatch ($ table , array_slice ($ this ->QBSet , $ i , $ batch_size ), $ this ->db ->protectIdentifiers ($ index )
2030+ $ sql = $ this ->_updateBatch ($ table , array_slice ($ this ->QBSet , $ i , $ batchSize ), $ this ->db ->protectIdentifiers ($ index )
20312031 );
20322032
20332033 if ($ returnSQL )
0 commit comments