@@ -238,7 +238,7 @@ protected function _validateConditions($rule)
238
238
$ msgs = array_merge ($ msgs , $ this ->_processCondition ($ condition ));
239
239
}
240
240
if (count ($ msgs ) > 0 ) {
241
- $ errorMsgs = $ this ->_multi_implode ('' , $ msgs );
241
+ $ errorMsgs = $ this ->_multiImplode ('' , $ msgs );
242
242
Mage::throwException ($ this ->_formatMessage ($ errorMsgs ));
243
243
}
244
244
}
@@ -329,8 +329,7 @@ protected function _processRule($condition = array())
329
329
->setStoreFilter ($ storeId , false )
330
330
->addFieldToFilter ('tsv.option_id ' , array ('in ' => $ value ));
331
331
if ($ collection ->getSize () > 0 ) {
332
- $ item = $ collection ->getFirstItem ();
333
- $ value = $ item ->getValue ();
332
+ $ value = $ collection ->getFirstItem ()->getValue ();
334
333
}
335
334
}
336
335
}
@@ -359,7 +358,6 @@ protected function _processRule($condition = array())
359
358
* Setup a heading for aggregated rule conditions.
360
359
*
361
360
* @param String $aggregator "any" or "all"
362
- * @param bool $aggregatedOnly False if the heading is in addition to existing error messages
363
361
* @return String containing aggregate heading
364
362
*/
365
363
protected function _createAggregatedHeading ($ aggregator )
@@ -408,13 +406,13 @@ protected function _formatMessage($message, $params = '', $internalMessage = nul
408
406
* @param $array
409
407
* @return string
410
408
*/
411
- protected function _multi_implode ($ glue , $ array )
409
+ protected function _multiImplode ($ glue , $ array )
412
410
{
413
411
$ ret = '' ;
414
412
415
413
foreach ($ array as $ item ) {
416
414
if (is_array ($ item )) {
417
- $ ret .= $ this ->_multi_implode ($ glue , $ item ) . $ glue ;
415
+ $ ret .= $ this ->_multiImplode ($ glue , $ item ) . $ glue ;
418
416
}
419
417
else {
420
418
$ ret .= $ item . $ glue ;
0 commit comments