Skip to content

Commit

Permalink
«Use of echo language construct is discouraged»: #28
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitrii-fediuk committed Sep 27, 2017
1 parent 30f72a8 commit 7e4efa9
Show file tree
Hide file tree
Showing 11 changed files with 23 additions and 23 deletions.
2 changes: 1 addition & 1 deletion Core/T/lib/array.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ class arrayT extends \Df\Core\TestCase {
function t00() {}

/** 2017-07-13 */
function t01() {$a = []; echo array_shift($a);}
function t01() {$a = []; print_r(array_shift($a));}

/** 2017-07-13 */
function t02() {
Expand Down
2 changes: 1 addition & 1 deletion Core/T/lib/csv.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ function t01() {
$p = mb_strrpos($l, ',');
$l = mb_substr($l, 0, $p + 1) . $d . mb_substr($l, $p + 1) . $d;
}
echo $l;
print_r($l);
}
}
6 changes: 3 additions & 3 deletions Core/T/lib/date.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ class date extends \Df\Core\TestCase {
function t00() {}

/** 2017-02-18 */
function t01() {echo df_date_from_db('1982-07-08 00:00:00')->toString('Y-MM-dd');}
function t01() {print_r(df_date_from_db('1982-07-08 00:00:00')->toString('Y-MM-dd'));}

/** 2017-02-18 */
function t02() {
ZL::findLocale('test');
echo df_num_days(df_date_parse('2017-03-08', false));
print_r(df_num_days(df_date_parse('2017-03-08', false)));
}

/** 2017-09-05 */
Expand All @@ -30,6 +30,6 @@ function t03() {
*/
$d->setTimezone('Europe/Moscow');
$d->addDay(45);
echo $d->toString('y-MM-ddTHH:mm:ss');
print_r($d->toString('y-MM-ddTHH:mm:ss'));
}
}
2 changes: 1 addition & 1 deletion Core/T/lib/html.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ class html extends \Df\Core\TestCase {
function t00() {}

/** @test 2017-09-09 */
function t01() {echo df_cc_br(df_link_inline('Df_Phone::lib/css/main.css', 'Df_Phone::main.css'));}
function t01() {print_r(df_cc_br(df_link_inline('Df_Phone::lib/css/main.css', 'Df_Phone::main.css')));}
}
2 changes: 1 addition & 1 deletion Core/T/lib/json.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ class json extends \Df\Core\TestCase {
function t00() {}

/** 2017-08-22 */
function t01() {echo df_json_encode(['A' => 1, 'B' => 2, 'a' => 3]);}
function t01() {print_r(df_json_encode(['A' => 1, 'B' => 2, 'a' => 3]));}
}
2 changes: 1 addition & 1 deletion Core/T/lib/state.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ class state extends \Df\Core\TestCase {
function t00() {}

/** 2017-03-15 */
function t01() {echo df_action_name();}
function t01() {print_r(df_action_name());}
}
18 changes: 9 additions & 9 deletions Core/T/lib/url.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,16 @@ function t00() {}

/** 2017-02-13 */
function t01() {
echo df_url_trim_index('https://mage2.pro/sandbox/dfe-paymill/index/index/') . "\n";
echo df_url_trim_index('https://mage2.pro/sandbox/dfe-paymill/index/index') . "\n";
echo df_url_trim_index('https://mage2.pro/sandbox/dfe-paymill/index/') . "\n";
echo df_url_trim_index('https://mage2.pro/sandbox/dfe-paymill/index') . "\n";
echo df_url_trim_index('https://mage2.pro/sandbox/dfe-paymill/') . "\n";
echo df_url_trim_index('https://mage2.pro/sandbox/dfe-paymill') . "\n";
echo df_url_trim_index('https://mage2.pro') . "\n";
echo df_url_trim_index('/sandbox/dfe-paymill/index/index/') . "\n";
print_r(df_url_trim_index('https://mage2.pro/sandbox/dfe-paymill/index/index/') . "\n");
print_r(df_url_trim_index('https://mage2.pro/sandbox/dfe-paymill/index/index') . "\n");
print_r(df_url_trim_index('https://mage2.pro/sandbox/dfe-paymill/index/') . "\n");
print_r(df_url_trim_index('https://mage2.pro/sandbox/dfe-paymill/index') . "\n");
print_r(df_url_trim_index('https://mage2.pro/sandbox/dfe-paymill/') . "\n");
print_r(df_url_trim_index('https://mage2.pro/sandbox/dfe-paymill') . "\n");
print_r(df_url_trim_index('https://mage2.pro') . "\n");
print_r(df_url_trim_index('/sandbox/dfe-paymill/index/index/') . "\n");
}

/** 2017-08-18 */
function t02() {echo sprintf("«%s»\n", df_url_backend_ns());}
function t02() {print_r(sprintf("«%s»\n", df_url_backend_ns()));}
}
2 changes: 1 addition & 1 deletion Directory/T/lib/country.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ class country extends \Df\Core\TestCase {
function t00() {}

/** 2017-09-07 */
function t01() {echo df_json_encode(df_country_codes_allowed());}
function t01() {print_r(df_json_encode(df_country_codes_allowed()));}
}
2 changes: 1 addition & 1 deletion Directory/T/lib/currency.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ class currency extends \Df\Core\TestCase {
function t00() {}

/** 2017-01-29 */
function t01() {echo df_currency_by_country_c('FI');}
function t01() {print_r(df_currency_by_country_c('FI'));}
}
4 changes: 2 additions & 2 deletions Intl/T/Main.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ class Main extends \Df\Core\TestCase {
function t00() {}

/** 2017-06-17 @test */
function t01() {echo df_json_encode([
function t01() {print_r(df_json_encode([
__('Dashboard')->__toString()
]);}
]));}
}
4 changes: 2 additions & 2 deletions Zf/T/lib/priority-queue.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ function t01() {
$q->insert('value 5', 0);
df_zf_pq_add_lowest($q, 'value 4');
df_zf_pq_add_highest($q, 'value 6');
echo df_zf_pq_max($q) . "\n";
echo df_zf_pq_min($q) . "\n";
print_r(df_zf_pq_max($q) . "\n");
print_r(df_zf_pq_min($q) . "\n");
}
}

0 comments on commit 7e4efa9

Please sign in to comment.