Apply fixes from StyleCI

This commit is contained in:
Daniil Gentili 2017-01-01 12:32:20 +00:00 committed by StyleCI Bot
parent 3728f03af3
commit 322ec6ce09

8
id.php
View File

@ -12,9 +12,10 @@ If not, see <http://www.gnu.org/licenses/>.
require 'vendor/autoload.php';
$id = "AgADBAADcKoxG4_aCgYKET2oLMua7pxRaRkABKoeLWY9bpazGdcCAAEC";
$id = 'AgADBAADcKoxG4_aCgYKET2oLMua7pxRaRkABKoeLWY9bpazGdcCAAEC';
function foreach_offset_length($string, $callback) {
function foreach_offset_length($string, $callback)
{
$strlen = strlen($string);
for ($offset = 0; $offset < strlen($string); $offset++) {
for ($length = $strlen - $offset; $length > 0; $length--) {
@ -31,6 +32,7 @@ foreach_offset_length($base256, function ($s) {
echo $int.PHP_EOL;
});
function base64url_decode($data) {
function base64url_decode($data)
{
return base64_decode(str_pad(strtr($data, '-_', '+/'), strlen($data) % 4, '=', STR_PAD_RIGHT));
}