Minor fixes for OrderedBehavior
Hey there and thanks for your still really useful OrderedBehavior!
I have been keeping a marginally changed private fork of your behavior for some years now, manually merging in the patches of the few last minor versions. After going through it again today, I just thought I could at least ask for an upstream remerge.
The hassle is that I switched style to PSR-1/2 long ago, so there's a lot of whitespace related changes here (at least Github provides a diff that ignores whitespace changes) and you probably don't like the style conventions. Apart from this, there are some minor but hopefully useful changes inside:
- Fixed strict PHP warnings, in particular by removing issues with call-time pass-by-reference to keep compatibility with PHP >=5.3.
- Fixed assigning weight to the first item of a new model
- Minor edits of typos and the like in comments and PHPDoc
Please just let me know, whether you can merge it as it is or if you would merge particular pieces under other circumstances.