Skip to content

Commit

Permalink
1.0.22: «Use of echo language construct is discouraged»: mage2pro/cor…
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitrii-fediuk committed Sep 27, 2017
1 parent b50b9a5 commit ea39216
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion T/CaseT/Card.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ function t00() {}
*/
function t01_add() {
try {
echo lC::s()->addCard('CUS-UKXT2RQ2TULX', tCard::s()->get(1))->j();
print_r(lC::s()->addCard('CUS-UKXT2RQ2TULX', tCard::s()->get(1))->j());
}
catch (\Exception $e) {
if (function_exists('xdebug_break')) {
Expand Down
4 changes: 2 additions & 2 deletions T/CaseT/Customer.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ function t00() {}
function t01_create() {
try {
// 2017-04-22 https://dev.moip.com.br/reference#criar-um-cliente
echo C::s()->create($this->pCustomer())->j();
print_r(C::s()->create($this->pCustomer())->j());
}
catch (\Exception $e) {
if (function_exists('xdebug_break')) {
Expand Down Expand Up @@ -48,7 +48,7 @@ function t02_get() {
/** @var string $id */
$id = 'CUS-UKXT2RQ2TULX';
try {
echo C::s()->get($id)->j();
print_r(C::s()->get($id)->j());
}
catch (\Exception $e) {
if (function_exists('xdebug_break')) {
Expand Down
8 changes: 4 additions & 4 deletions T/CaseT/Notification.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function t00() {}
*/
function t01_all() {
try {
echo (new N)->all()->j();
print_r((new N)->all()->j());
}
catch (\Exception $e) {
if (function_exists('xdebug_break')) {
Expand All @@ -43,7 +43,7 @@ function t01_all() {
*/
function t02_create() {
try {
echo $this->create()->j();
print_r($this->create()->j());
//echo df_json_encode($this->pOrder());
}
catch (\Exception $e) {
Expand All @@ -63,7 +63,7 @@ function t02_create() {
*/
function t03_delete() {
try {
echo (new N)->delete($this->create()['id'])->j();
print_r((new N)->delete($this->create()['id'])->j());
//echo df_json_encode($this->pOrder());
}
catch (\Exception $e) {
Expand All @@ -80,7 +80,7 @@ function t04_delete_all() {
$n = new N; /** @var N $n */
array_map(function($id) use($n) {
$n->delete($id);
echo "Deleted: $id\n";
print_r("Deleted: $id\n");
}, array_column($n->all()->a(), 'id'));
}
catch (\Exception $e) {
Expand Down
2 changes: 1 addition & 1 deletion T/CaseT/Order.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ function t00() {}
*/
function t01_create() {
try {
echo (new tOrder)->create()->j();
print_r((new tOrder)->create()->j());
//echo df_json_encode($this->pOrder());
}
catch (\Exception $e) {
Expand Down
2 changes: 1 addition & 1 deletion T/CaseT/Payment/Boleto.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ function t00() {}
*/
function t01_create() {
try {
echo lP::s()->create2((new tOrder)->create()['id'], $this->pPayment())->j();
print_r(lP::s()->create2((new tOrder)->create()['id'], $this->pPayment())->j());
}
catch (\Exception $e) {
if (function_exists('xdebug_break')) {
Expand Down
2 changes: 1 addition & 1 deletion T/CaseT/Payment/Card.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ function t00() {}
*/
function t01_create() {
try {
echo lP::s()->create2((new tOrder)->create()['id'], $this->pPayment())->j();
print_r(lP::s()->create2((new tOrder)->create()['id'], $this->pPayment())->j());
}
catch (\Exception $e) {
if (function_exists('xdebug_break')) {
Expand Down
2 changes: 1 addition & 1 deletion T/CaseT/Payment/OnlineBanking.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ function t00() {}
*/
function t01_create() {
try {
echo lP::s()->create2((new tOrder)->create()['id'], $this->pPayment())->j();
print_r(lP::s()->create2((new tOrder)->create()['id'], $this->pPayment())->j());
}
catch (\Exception $e) {
if (function_exists('xdebug_break')) {
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mage2pro/moip"
,"version": "1.0.21"
,"version": "1.0.22"
,"description": "The «Moip» payment extension for Magento 2."
,"type": "magento2-module"
,"homepage": "https://mage2.pro/c/extensions/moip"
Expand All @@ -11,7 +11,7 @@
"homepage": "https://mage2.pro/users/dmitry_fedyuk",
"role": "Developer"
}]
,"require": {"mage2pro/core": ">=2.12.3", "mage2pro/geo": ">=1.2.0", "mage2pro/phone": ">=1.0.0"}
,"require": {"mage2pro/core": ">=2.12.21", "mage2pro/geo": ">=1.2.0", "mage2pro/phone": ">=1.0.0"}
,"autoload": {"files": ["registration.php"], "psr-4": {"Dfe\\Moip\\": ""}}
,"keywords": [
"API"
Expand Down

0 comments on commit ea39216

Please sign in to comment.