@@ -19,10 +19,8 @@ public function all($endpoint = '', $options = [])
1919 self ::__construct ();
2020
2121 return $ this ->client ->get ($ endpoint , $ options );
22-
23- } catch ( \Exception $ e ) {
22+ } catch (\Exception $ e ) {
2423 throw new \Exception ($ e ->getMessages (), 1 );
25-
2624 }
2725 }
2826
@@ -41,10 +39,8 @@ public function find($endpoint = '', $options = [])
4139 self ::__construct ();
4240
4341 return $ this ->client ->get ($ endpoint , $ options );
44-
45- } catch ( \Exception $ e ) {
42+ } catch (\Exception $ e ) {
4643 throw new \Exception ($ e ->getMessages (), 1 );
47-
4844 }
4945 }
5046
@@ -63,10 +59,8 @@ public function create($endpoint, $data)
6359 self ::__construct ();
6460
6561 return $ this ->client ->post ($ endpoint , $ data );
66-
67- } catch ( \Exception $ e ) {
62+ } catch (\Exception $ e ) {
6863 throw new \Exception ($ e ->getMessages (), 1 );
69-
7064 }
7165 }
7266
@@ -85,10 +79,8 @@ public function update($endpoint, $data)
8579 self ::__construct ();
8680
8781 return $ this ->client ->put ($ endpoint , $ data );
88-
89- } catch ( \Exception $ e ) {
82+ } catch (\Exception $ e ) {
9083 throw new \Exception ($ e ->getMessages (), 1 );
91-
9284 }
9385 }
9486
@@ -107,10 +99,8 @@ public function delete($endpoint, $options = [])
10799 self ::__construct ();
108100
109101 return $ this ->client ->delete ($ endpoint , $ options );
110-
111- } catch ( \Exception $ e ) {
102+ } catch (\Exception $ e ) {
112103 throw new \Exception ($ e ->getMessages (), 1 );
113-
114104 }
115105 }
116106
@@ -122,14 +112,10 @@ public function delete($endpoint, $options = [])
122112 public function getRequest ()
123113 {
124114 try {
125-
126115 return $ this ->client ->http ->getRequest ();
127-
128- } catch ( \Exception $ e ) {
116+ } catch (\Exception $ e ) {
129117 throw new \Exception ($ e ->getMessages (), 1 );
130-
131118 }
132-
133119 }
134120
135121 /**
@@ -140,12 +126,9 @@ public function getRequest()
140126 public function getResponse ()
141127 {
142128 try {
143-
144129 return $ this ->client ->http ->getResponse ();
145-
146- } catch ( \Exception $ e ) {
130+ } catch (\Exception $ e ) {
147131 throw new \Exception ($ e ->getMessages (), 1 );
148-
149132 }
150133 }
151134
0 commit comments