Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: trailing comma #414

Merged
merged 1 commit into from
Jan 27, 2023
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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,7 @@ public function __construct(
Version $version,
$accountSid,
$sid
)
{
) {
parent::__construct($version);

// Path Solution
Expand Down Expand Up @@ -89,7 +88,7 @@ public function update(\DateTime $endDate, \DateTime $startDate, array $options
$this->version,
$payload,
$this->solution['accountSid'],
$this->solution['sid'],
$this->solution['sid']
);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,7 @@ class FeedbackCallSummaryList extends ListResource
public function __construct(
Version $version,
string $accountSid
)
{
) {
parent::__construct($version);

// Path Solution
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,7 @@ public function __construct(

string $accountSid = Values::NONE

)
{
) {
$this->options['accountSid'] = $accountSid;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,7 @@ public function __construct(
Version $version,
$accountSid,
$testInteger
)
{
) {
parent::__construct($version);

// Path Solution
Expand Down Expand Up @@ -92,7 +91,7 @@ public function fetch(): CallInstance
$this->version,
$payload,
$this->solution['accountSid'],
$this->solution['testInteger'],
$this->solution['testInteger']
);
}

Expand Down
6 changes: 2 additions & 4 deletions examples/php/src/Twilio/Rest/Api/V2010/Account/CallList.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,7 @@ class CallList extends ListResource
public function __construct(
Version $version,
string $accountSid
)
{
) {
parent::__construct($version);

// Path Solution
Expand Down Expand Up @@ -91,7 +90,7 @@ public function create(string $requiredStringProperty, string $testMethod, array
return new CallInstance(
$this->version,
$payload,
$this->solution['accountSid'],
$this->solution['accountSid']
);
}

Expand Down Expand Up @@ -122,7 +121,6 @@ protected function getFeedbackCallSummary(): FeedbackCallSummaryList
$this->_feedbackCallSummary = new FeedbackCallSummaryList(
$this->version,
$this->solution['accountSid']

);
}
return $this->_feedbackCallSummary;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,7 @@ public function __construct(
array $testArrayOfStrings = Values::ARRAY_NONE,
array $testArrayOfUri = Values::ARRAY_NONE

)
{
) {
$this->options['testArrayOfStrings'] = $testArrayOfStrings;
$this->options['testArrayOfUri'] = $testArrayOfUri;
}
Expand Down
9 changes: 4 additions & 5 deletions examples/php/src/Twilio/Rest/Api/V2010/AccountContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,7 @@ class AccountContext extends InstanceContext
public function __construct(
Version $version,
$sid
)
{
) {
parent::__construct($version);

// Path Solution
Expand Down Expand Up @@ -89,7 +88,7 @@ public function fetch(): AccountInstance
return new AccountInstance(
$this->version,
$payload,
$this->solution['sid'],
$this->solution['sid']
);
}

Expand Down Expand Up @@ -119,7 +118,7 @@ public function update(string $status, array $options = []): AccountInstance
return new AccountInstance(
$this->version,
$payload,
$this->solution['sid'],
$this->solution['sid']
);
}

Expand All @@ -132,7 +131,7 @@ protected function getCalls(): CallList
if (!$this->_calls) {
$this->_calls = new CallList(
$this->version,
$this->solution['sid'],
$this->solution['sid']
);
}

Expand Down
6 changes: 3 additions & 3 deletions examples/php/src/Twilio/Rest/Api/V2010/AccountList.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ class AccountList extends ListResource
* @param Version $version Version that contains the resource
*/
public function __construct(
Version $version)
{
Version $version
) {
parent::__construct($version);

// Path Solution
Expand Down Expand Up @@ -76,7 +76,7 @@ public function create(array $options = []): AccountInstance

return new AccountInstance(
$this->version,
$payload,
$payload
);
}

Expand Down
9 changes: 3 additions & 6 deletions examples/php/src/Twilio/Rest/Api/V2010/AccountOptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,7 @@ public function __construct(
string $twiml = Values::NONE,
string $xTwilioWebhookEnabled = Values::NONE

)
{
) {
$this->options['recordingStatusCallback'] = $recordingStatusCallback;
$this->options['recordingStatusCallbackEvent'] = $recordingStatusCallbackEvent;
$this->options['twiml'] = $twiml;
Expand Down Expand Up @@ -189,8 +188,7 @@ public function __construct(
\DateTime $dateCreatedBefore = Values::NONE,
\DateTime $dateCreatedAfter = Values::NONE

)
{
) {
$this->options['dateCreated'] = $dateCreated;
$this->options['dateTest'] = $dateTest;
$this->options['dateCreatedBefore'] = $dateCreatedBefore;
Expand Down Expand Up @@ -258,8 +256,7 @@ public function __construct(

string $pauseBehavior = Values::NONE

)
{
) {
$this->options['pauseBehavior'] = $pauseBehavior;
}

Expand Down
5 changes: 2 additions & 3 deletions examples/php/src/Twilio/Rest/FlexApi/V1/CallContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,7 @@ class CallContext extends InstanceContext
public function __construct(
Version $version,
$sid
)
{
) {
parent::__construct($version);

// Path Solution
Expand All @@ -69,7 +68,7 @@ public function update(): CallInstance
return new CallInstance(
$this->version,
$payload,
$this->solution['sid'],
$this->solution['sid']
);
}

Expand Down
4 changes: 2 additions & 2 deletions examples/php/src/Twilio/Rest/FlexApi/V1/CallList.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ class CallList extends ListResource
* @param Version $version Version that contains the resource
*/
public function __construct(
Version $version)
{
Version $version
) {
parent::__construct($version);

// Path Solution
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,7 @@ class HistoryContext extends InstanceContext
public function __construct(
Version $version,
$sid
)
{
) {
parent::__construct($version);

// Path Solution
Expand Down Expand Up @@ -76,7 +75,7 @@ public function fetch(array $options = []): HistoryInstance
return new HistoryInstance(
$this->version,
$payload,
$this->solution['sid'],
$this->solution['sid']
);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,7 @@ class HistoryList extends ListResource
public function __construct(
Version $version,
string $sid
)
{
) {
parent::__construct($version);

// Path Solution
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,7 @@ public function __construct(

string $addOnsData = Values::NONE

)
{
) {
$this->options['addOnsData'] = $addOnsData;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,7 @@ class AwsContext extends InstanceContext
public function __construct(
Version $version,
$sid
)
{
) {
parent::__construct($version);

// Path Solution
Expand Down Expand Up @@ -89,7 +88,7 @@ public function fetch(): AwsInstance
return new AwsInstance(
$this->version,
$payload,
$this->solution['sid'],
$this->solution['sid']
);
}

Expand Down Expand Up @@ -118,7 +117,7 @@ public function update(array $options = []): AwsInstance
return new AwsInstance(
$this->version,
$payload,
$this->solution['sid'],
$this->solution['sid']
);
}

Expand All @@ -131,7 +130,7 @@ protected function getHistory(): HistoryList
if (!$this->_history) {
$this->_history = new HistoryList(
$this->version,
$this->solution['sid'],
$this->solution['sid']
);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ class AwsList extends ListResource
* @param Version $version Version that contains the resource
*/
public function __construct(
Version $version)
{
Version $version
) {
parent::__construct($version);

// Path Solution
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,7 @@ public function __construct(
string $testString = Values::NONE,
bool $testBoolean = Values::NONE

)
{
) {
$this->options['testString'] = $testString;
$this->options['testBoolean'] = $testBoolean;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ class NewCredentialsList extends ListResource
* @param Version $version Version that contains the resource
*/
public function __construct(
Version $version)
{
Version $version
) {
parent::__construct($version);

// Path Solution
Expand Down Expand Up @@ -102,7 +102,7 @@ public function create(string $testString, array $options = []): NewCredentialsI

return new NewCredentialsInstance(
$this->version,
$payload,
$payload
);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,7 @@ public function __construct(
array $permissions = Values::ARRAY_NONE,
string $someA2PThing = Values::NONE

)
{
) {
$this->options['testInteger'] = $testInteger;
$this->options['testNumberFloat'] = $testNumberFloat;
$this->options['testObject'] = $testObject;
Expand Down
4 changes: 2 additions & 2 deletions examples/php/src/Twilio/Rest/FlexApi/V1/CredentialList.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ class CredentialList extends ListResource
* @param Version $version Version that contains the resource
*/
public function __construct(
Version $version)
{
Version $version
) {
parent::__construct($version);

// Path Solution
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,7 @@ class FleetContext extends InstanceContext
public function __construct(
Version $version,
$sid
)
{
) {
parent::__construct($version);

// Path Solution
Expand All @@ -69,7 +68,7 @@ public function fetch(): FleetInstance
return new FleetInstance(
$this->version,
$payload,
$this->solution['sid'],
$this->solution['sid']
);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ class FleetList extends ListResource
* @param Version $version Version that contains the resource
*/
public function __construct(
Version $version)
{
Version $version
) {
parent::__construct($version);

// Path Solution
Expand Down Expand Up @@ -69,7 +69,7 @@ public function create(array $options = []): FleetInstance

return new FleetInstance(
$this->version,
$payload,
$payload
);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,7 @@ public function __construct(

string $name = Values::NONE

)
{
) {
$this->options['name'] = $name;
}

Expand Down