Skip to content

Commit 4846659

Browse files
committed
coding style
1 parent 4150079 commit 4846659

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

examples/authorization.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
);
2323

2424
if (!isset($app->client_id, $app->client_secret)) {
25-
die('could not create app!');
25+
exit('could not create app!');
2626
}
2727

2828
// request oauth token for this app

examples/basic_use.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -25,19 +25,19 @@
2525
exit('account not found');
2626
}
2727

28-
print 'Found account: ' . $account->display_name . \PHP_EOL;
28+
echo 'Found account: ' . $account->display_name . \PHP_EOL;
2929

3030
// get followers of an account (paged result)
3131
// returns a subclass of \Illuminate\Support\Collection, which acts as a plain array
3232
$followers = $client->methods()->accounts()->followers($account->id);
3333

3434
foreach ($followers as $follower) {
35-
print 'Follower : ' . $follower->display_name . \PHP_EOL;
35+
echo 'Follower : ' . $follower->display_name . \PHP_EOL;
3636
}
3737

3838
// get the next page(s) of results
3939
while ($followers = $followers->getNextPage()) {
4040
foreach ($followers as $follower) {
41-
print 'Follower : ' . $follower->display_name . \PHP_EOL;
41+
echo 'Follower : ' . $follower->display_name . \PHP_EOL;
4242
}
4343
}

0 commit comments

Comments
 (0)