fix and failing testcase for custom barcode adapters in barcode object construtor
update invalid adapter exception message
Merge pull request #6576 from fabiocarneiro/hotfix-custom-barcode-validator

hotfix custom barcode adapter wasn't being set to options.
[#6576] do not use short array syntax

- as we still support 5.3.
[#6576] CS fixes (trailing whitespace)
Merge branch 'hotfix/6576'

Close #6576