Sounds minor but its interface, and we should fix this before release.

1) Coding standard requires snack_case for arguments.
2) the method name ist stockEvent. A parameter with the same name hurts my brain.

So I suggest renaming it to $stock_event_id.

As I look into it, i would rename the $transaction_type to $transaction_type_id to. If it is an id, name it as such. Is much easier to understand.

Comments

olafkarsten created an issue. See original summary.

olafkarsten’s picture

@guy_schneerson tell me what you think and I will do it.

guy_schneerson’s picture

$stock_event_id is perfect and happy to rename $transaction_type to $transaction_type_id.

olafkarsten’s picture

Priority: Normal » Major

bumping up, because it API relevant, therefore needs to be done before beta.

olafkarsten’s picture

Assigned: olafkarsten » Unassigned
Priority: Major » Normal
Status: Active » Postponed
Issue tags: +2.x

no more API changes that are not essential for 8.1