@@ -489,7 +489,7 @@ public function getPrintJobsByPrinters()
489
489
* @param string $computerId id of computer to find scales
490
490
* @return Entity[]
491
491
* */
492
- public function getScales (string $ computerId )
492
+ public function getScales ($ computerId )
493
493
{
494
494
$ endPointUrl = $ this ->apiurl ."/computer/ " ;
495
495
$ endPointUrl .= $ computerId ;
@@ -522,7 +522,7 @@ public function getPrintersByComputers()
522
522
$ arguments = func_get_args ();
523
523
524
524
if (count ($ arguments ) > 2 ) {
525
- throw new InvalidArgumentException (
525
+ throw new \ InvalidArgumentException (
526
526
sprintf (
527
527
'Too many arguments given to getPrintersByComputers. '
528
528
)
@@ -570,7 +570,7 @@ public function __call($methodName, $arguments)
570
570
$ arguments = array_shift ($ arguments );
571
571
572
572
if (!is_string ($ arguments )) {
573
- throw new InvalidArgumentException (
573
+ throw new \ InvalidArgumentException (
574
574
sprintf (
575
575
'Invalid argument type passed to %s. Expecting a string got %s ' ,
576
576
$ methodName ,
@@ -614,7 +614,7 @@ public function __call($methodName, $arguments)
614
614
public function patch (Entity $ entity )
615
615
{
616
616
if (!($ entity instanceof Entity)) {
617
- throw new InvalidArgumentException (
617
+ throw new \ InvalidArgumentException (
618
618
sprintf (
619
619
'Invalid argument type passed to patch. Expecting Entity got %s ' ,
620
620
gettype ($ entity )
@@ -644,7 +644,7 @@ public function patch(Entity $entity)
644
644
public function post (Entity $ entity )
645
645
{
646
646
if (!($ entity instanceof Entity)) {
647
- throw new InvalidArgumentException (
647
+ throw new \ InvalidArgumentException (
648
648
sprintf (
649
649
'Invalid argument type passed to patch. Expecting Entity got %s ' ,
650
650
gettype ($ entity )
@@ -677,7 +677,7 @@ public function put()
677
677
$ entity = array_shift ($ arguments );
678
678
679
679
if (!($ entity instanceof Entity)) {
680
- throw new InvalidArgumentException (
680
+ throw new \ InvalidArgumentException (
681
681
sprintf (
682
682
'Invalid argument type passed to patch. Expecting Entity got %s ' ,
683
683
gettype ($ entity )
0 commit comments