Skip to content
This repository was archived by the owner on Aug 15, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .phplint-cache

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,8 @@ There're two kind of snippets we test:
body may or may not has the parameters needed to update the resource
according to the expected result.

- **Twiml snippets:**
When running Twiml snippets, the snippets should print the `xml` result to the
- **TwiML snippets:**
When running TwiML snippets, the snippets should print the `xml` result to the
standard output, so we can capture that output and compare it with the
expected `xml` sample. We read this `/output/sample.xml` file which is
placed in the same folder of the snippet.
Expand Down Expand Up @@ -132,7 +132,7 @@ testable:
```

**Notes:**
- For testing Twiml snippets the option available is:
- For testing TwiML snippets the option available is:

```
meta.json -> "test_output": true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Get the PHP helper library from https://twilio.com/docs/libraries/php

require_once 'vendor/autoload.php'; // Loads the library
use Twilio\Twiml\MessagingResponse;
use Twilio\TwiML\MessagingResponse;

$response = new MessagingResponse;
$body = $_REQUEST['Body'];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Get the PHP helper library from https://twilio.com/docs/libraries/php

require_once 'vendor/autoload.php'; // Loads the library
use Twilio\Twiml\MessagingResponse;
use Twilio\TwiML\MessagingResponse;

$response = new MessagingResponse;
$message = $response->message();
Expand Down
2 changes: 1 addition & 1 deletion rest/messages/generate-twiml-sms-voice/example-1.5.x.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

// this line loads the library
require('vendor/autoload.php');
use Twilio\Twiml\VoiceResponse;
use Twilio\TwiML\VoiceResponse;

$response = new VoiceResponse;
$response->say("Hello! You will get an SMS message soon.");
Expand Down
2 changes: 1 addition & 1 deletion rest/taskrouter/twiml/example1/example/example.5.x.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Download the library and copy into the folder containing this file.
require_once '/path/to/vendor/autoload.php'; // Loads the library

use Twilio\Twiml\VoiceResponse;
use Twilio\TwiML\VoiceResponse;

$response = new VoiceResponse();
$response->enqueue(null, ['workflowSid' => 'WW0123456789abcdef0123456789abcdef']);
Expand Down
2 changes: 1 addition & 1 deletion rest/taskrouter/twiml/example2/example/example.5.x.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Download the library and copy into the folder containing this file.
require_once '/path/to/vendor/autoload.php'; // Loads the library

use Twilio\Twiml\VoiceResponse;
use Twilio\TwiML\VoiceResponse;

$response = new VoiceResponse();
$response->enqueue(null, ["workflowSid" => "WW0123456789abcdef0123456789abcdef"])
Expand Down
2 changes: 1 addition & 1 deletion rest/taskrouter/twiml/example3/example/example.5.x.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Download the library and copy into the folder containing this file.
require_once '/path/to/vendor/autoload.php'; // Loads the library

use Twilio\Twiml\VoiceResponse;
use Twilio\TwiML\VoiceResponse;

$response = new VoiceResponse();
$response->enqueue(null, ['workflowSid' => 'WW0123456789abcdef0123456789abcdef'])
Expand Down
2 changes: 1 addition & 1 deletion rest/taskrouter/twiml/example4/example/example.5.x.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Download the library and copy into the folder containing this file.
require_once '/path/to/vendor/autoload.php'; // Loads the library

use Twilio\Twiml\VoiceResponse;
use Twilio\TwiML\VoiceResponse;

$response = new VoiceResponse();
$response->enqueue(
Expand Down
2 changes: 1 addition & 1 deletion voice/queueing/agent/queue-agent.5.x.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// https://www.twilio.com/docs/libraries/php
require_once '/path/to/vendor/autoload.php';

use Twilio\Twiml\VoiceResponse;
use Twilio\TwiML\VoiceResponse;

$response = new VoiceResponse();
$response->dial()
Expand Down
2 changes: 1 addition & 1 deletion voice/queueing/caller/queue-caller.5.x.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// https://www.twilio.com/docs/libraries/php
require_once '/path/to/vendor/autoload.php';

use Twilio\Twiml\VoiceResponse;
use Twilio\TwiML\VoiceResponse;

$response = new VoiceResponse();
$response->enqueue('Queue Demo');
Expand Down
2 changes: 1 addition & 1 deletion voice/queueing/redirect/queue-redirect.5.x.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// https://www.twilio.com/docs/libraries/php
require_once '/path/to/vendor/autoload.php';

use Twilio\Twiml\VoiceResponse;
use Twilio\TwiML\VoiceResponse;

$response = new VoiceResponse();

Expand Down