Skip to content

Commit 6b3f0aa

Browse files
committed
- fix classes imports and an undefined valiable
1 parent 04299ac commit 6b3f0aa

File tree

5 files changed

+6
-3
lines changed

5 files changed

+6
-3
lines changed

src/OpenTok/Broadcast.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
use OpenTok\Exception\BroadcastDomainException;
66
use OpenTok\Exception\BroadcastUnexpectedValueException;
7+
use OpenTok\Exception\InvalidArgumentException;
8+
use OpenTok\Util\Client;
79
use OpenTok\Util\Validators;
810

911
class Broadcast {

src/OpenTok/Exception/AuthenticationException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
/**
77
* Defines the exception thrown when you use an invalid API or secret.
88
*/
9-
class AuthenticationException extends OpenTok\Exception\DomainException implements \OpenTok\Exception\Exception
9+
class AuthenticationException extends \OpenTok\Exception\DomainException implements \OpenTok\Exception\Exception
1010
{
1111
public function __construct($apiKey, $apiSecret, $code = 0, $previous)
1212
{

src/OpenTok/OpenTok.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ public function stopArchive($archiveId)
331331
* @param String $archiveId The archive ID.
332332
*
333333
* @throws ArchiveException There is no archive with the specified ID.
334-
* @throws OpenTokArgumentException The archive ID provided is null or an empty string.
334+
* @throws InvalidArgumentException The archive ID provided is null or an empty string.
335335
*
336336
* @return Archive The Archive object.
337337
*/

src/OpenTok/Util/Client.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
use OpenTok\Exception\BroadcastDomainException;
2020
use OpenTok\Exception\BroadcastUnexpectedValueException;
2121
use OpenTok\Exception\BroadcastAuthenticationException;
22+
use OpenTok\MediaMode;
2223

2324
// TODO: build this dynamically
2425
/** @internal */

src/OpenTok/Util/Validators.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ public static function validateArchiveListData($archiveListData)
171171
$document->loadSchema(self::$archiveSchemaUri);
172172
if (!$document->validate()) {
173173
throw new InvalidArgumentException(
174-
'The archive data provided is not valid. Errors:'.$document->lastError.' archiveData:'.print_r($archiveData, true)
174+
'The archive data provided is not valid. Errors:'.$document->lastError.' archiveData:'.print_r($archiveListData, true)
175175
);
176176
}
177177
}

0 commit comments

Comments
 (0)