@@ -12,22 +12,22 @@ public function __construct(protected Client $client)
1212
1313 public function cursorPosition (): object
1414 {
15- return (object ) $ this ->client ->get (" screen/cursor-position " )->json ();
15+ return (object ) $ this ->client ->get (' screen/cursor-position ' )->json ();
1616 }
1717
1818 public function displays (): array
1919 {
20- return $ this ->client ->get (" screen/displays " )->json (" displays " );
20+ return $ this ->client ->get (' screen/displays ' )->json (' displays ' );
2121 }
2222
2323 public function primary (): object
2424 {
25- return $ this ->client ->get (" screen/primary-display " )->json (" primaryDisplay " );
25+ return $ this ->client ->get (' screen/primary-display ' )->json (' primaryDisplay ' );
2626 }
2727
2828 public function active (): object
2929 {
30- return $ this ->client ->get (" screen/active " )->json ();
30+ return $ this ->client ->get (' screen/active ' )->json ();
3131 }
3232
3333 /**
@@ -40,11 +40,11 @@ public function getCenterOfActiveScreen(): array
4040 /* Navigate every screen and check for cursor position against the bounds of the screen. */
4141 $ activeScreen = $ this ->active ();
4242
43- $ bounds = $ activeScreen [" bounds " ];
43+ $ bounds = $ activeScreen [' bounds ' ];
4444
4545 return [
46- " x " => $ bounds [" x " ] + $ bounds [" width " ] / 2 ,
47- " y " => $ bounds [" y " ] + $ bounds [" height " ] / 2 ,
46+ ' x ' => $ bounds [' x ' ] + $ bounds [' width ' ] / 2 ,
47+ ' y ' => $ bounds [' y ' ] + $ bounds [' height ' ] / 2 ,
4848 ];
4949 }
5050}
0 commit comments