Apply code formatting
Refactor to always return the number of affected rows (0 if no option ids are updated)
Refactor to internal methods to protected visibility
Fix return and exception type in phpdoc
Refactor method _addStoreLabels to protected visibility
Remove superfluous quoteInto statement before delete
Refactor to use multiInsert instead of several inserts in a loop