@@ -48,9 +48,9 @@ public function configure($apiKey, $apiSecret, $apiUrl, $options = array())
4848 $ this ->apiSecret = $ apiSecret ;
4949
5050 if (empty ($ options ['handler ' ])) {
51- $ handlerStack = HandlerStack::create ();
51+ $ handlerStack = HandlerStack::create ();
5252 } else {
53- $ handlerStack = $ options ['handler ' ];
53+ $ handlerStack = $ options ['handler ' ];
5454 }
5555
5656 $ handler = Middleware::mapRequest (function (RequestInterface $ request ) {
@@ -71,7 +71,8 @@ public function configure($apiKey, $apiSecret, $apiUrl, $options = array())
7171 $ this ->configured = true ;
7272 }
7373
74- public function isConfigured () {
74+ public function isConfigured ()
75+ {
7576 return $ this ->configured ;
7677 }
7778
@@ -232,10 +233,10 @@ public function listArchives($offset, $count)
232233 $ request = new Request ('GET ' , '/v2/project/ ' .$ this ->apiKey .'/archive ' );
233234 $ queryParams = [];
234235 if ($ offset != 0 ) {
235- $ queryParams ['offset ' ] = $ offset ;
236+ $ queryParams ['offset ' ] = $ offset ;
236237 }
237238 if (!empty ($ count )) {
238- $ queryParams ['count ' ] = $ count ;
239+ $ queryParams ['count ' ] = $ count ;
239240 }
240241 try {
241242 $ response = $ this ->client ->send ($ request , [
@@ -320,8 +321,8 @@ public function getLayout($resourceId, $resourceType = 'broadcast')
320321 public function updateLayout ($ resourceId , $ layout , $ resourceType = 'broadcast ' )
321322 {
322323 $ request = new Request (
323- 'PUT ' ,
324- '/v2/project/ ' .$ this ->apiKey .'/ ' .$ resourceType .'/ ' .$ resourceId .'/layout '
324+ 'PUT ' ,
325+ '/v2/project/ ' .$ this ->apiKey .'/ ' .$ resourceType .'/ ' .$ resourceId .'/layout '
325326 );
326327 try {
327328 $ response = $ this ->client ->send ($ request , [
@@ -355,12 +356,12 @@ public function updateStream($sessionId, $streamId, $properties)
355356 public function dial ($ sessionId , $ token , $ sipUri , $ options )
356357 {
357358 $ body = array (
358- 'sessionId ' => $ sessionId ,
359- 'token ' => $ token ,
360- 'sip ' => array (
361- 'uri ' => $ sipUri ,
362- 'secure ' => $ options ['secure ' ]
363- )
359+ 'sessionId ' => $ sessionId ,
360+ 'token ' => $ token ,
361+ 'sip ' => array (
362+ 'uri ' => $ sipUri ,
363+ 'secure ' => $ options ['secure ' ]
364+ )
364365 );
365366
366367 if (isset ($ options ) && array_key_exists ('headers ' , $ options ) && sizeof ($ options ['headers ' ]) > 0 ) {
0 commit comments