[PSR] Fixed Samples

- Using `php-cs-fixer` tool.
This commit is contained in:
Jay Patel
2016-07-14 13:09:36 -05:00
parent cffa2463b1
commit 8c907803e3
130 changed files with 9 additions and 220 deletions

View File

@@ -228,5 +228,4 @@ class BillingAgreementsFunctionalTest extends \PHPUnit_Framework_TestCase
$this->assertEquals('Cancelled', $get->getState());
return $get;
}
}

View File

@@ -128,12 +128,10 @@ class BillingPlansFunctionalTest extends \PHPUnit_Framework_TestCase
}
if (!$found) {
$result = Plan::all(array('page' => --$totalPages, 'page_size' => '20', 'total_required' => 'yes'), $this->apiContext, $this->mockPayPalRestCall);
}
} while ($totalPages > 0 && $found == false);
$this->assertTrue($found, "The Created Plan was not found in the get list");
$this->assertEquals($plan->getId(), $foundObject->getId());
}
/**

View File

@@ -1,6 +1,7 @@
<?php
namespace PayPal\Test\Functional\Api;
use PayPal\Api\CancelNotification;
use PayPal\Api\Invoice;
use PayPal\Api\Notification;
@@ -114,7 +115,6 @@ class InvoiceFunctionalTest extends \PHPUnit_Framework_TestCase
}
if (!$found) {
$result = Invoice::getAll(array('page' => --$totalPages, 'page_size' => '20', 'total_required' => 'yes'), $this->apiContext, $this->mockPayPalRestCall);
}
} while ($totalPages > 0 && $found == false);
$this->assertTrue($found, "The Created Invoice was not found in the get list");
@@ -235,6 +235,4 @@ class InvoiceFunctionalTest extends \PHPUnit_Framework_TestCase
$result = $invoice->delete($this->apiContext, $this->mockPayPalRestCall);
$this->assertNotNull($result);
}
}

View File

@@ -120,5 +120,4 @@ class PayoutsFunctionalTest extends \PHPUnit_Framework_TestCase
$this->assertEquals($item->getPayoutItemFee(), $result->getPayoutItemFee());
$this->assertEquals('RETURNED', $result->getTransactionStatus());
}
}

View File

@@ -96,7 +96,6 @@ class WebProfileFunctionalTest extends \PHPUnit_Framework_TestCase
$this->assertEquals($this->operation['response']['body'][0]['presentation']['logo_image'], $foundObject->getPresentation()->getLogoImage());
$this->assertEquals($this->operation['response']['body'][0]['input_fields']['no_shipping'], $foundObject->getInputFields()->getNoShipping());
$this->assertEquals($this->operation['response']['body'][0]['input_fields']['address_override'], $foundObject->getInputFields()->getAddressOverride());
}
/**
@@ -145,5 +144,4 @@ class WebProfileFunctionalTest extends \PHPUnit_Framework_TestCase
$result = $webProfile->delete($this->apiContext, $this->mockPayPalRestCall);
$this->assertTrue($result);
}
}

View File

@@ -61,7 +61,7 @@ class WebhookFunctionalTest extends \PHPUnit_Framework_TestCase
$result = $obj->create($this->apiContext, $this->mockPayPalRestCall);
} catch (PayPalConnectionException $ex) {
$data = $ex->getData();
if (strpos($data,'WEBHOOK_NUMBER_LIMIT_EXCEEDED') !== false) {
if (strpos($data, 'WEBHOOK_NUMBER_LIMIT_EXCEEDED') !== false) {
$this->deleteAll();
$result = $obj->create($this->apiContext, $this->mockPayPalRestCall);
} else {
@@ -176,7 +176,7 @@ class WebhookFunctionalTest extends \PHPUnit_Framework_TestCase
public function testEventSearch()
{
$result = WebhookEvent::all(array(),$this->apiContext, $this->mockPayPalRestCall);
$result = WebhookEvent::all(array(), $this->apiContext, $this->mockPayPalRestCall);
$this->assertNotNull($result);
return $result;
}