Printer paper tray status and error states (#9859)

* adding paper tray status and error states

* adding paper tray test data

* Create jetdirect_papertray.json

* Store printer supply type

* Update json data

* fix style
This commit is contained in:
tarik
2019-03-06 16:58:14 -08:00
committed by Tony Murray
parent 1b01e432da
commit e3e3de1442
18 changed files with 3146 additions and 171 deletions

View File

@@ -78,4 +78,14 @@ class StringHelpers
return isset($replacements[$string]) ? $replacements[$string] : ucwords(str_replace(['_', '-'], ' ', $string));
}
/**
* Convert a camel or studly case string to Title case (with spaces)
* @param $string
* @return string
*/
public static function camelToTitle($string)
{
return ucwords(implode(' ', preg_split('/(?=[A-Z])/', $string)));
}
}