Skip to content

Commit

Permalink
refactor code
Browse files Browse the repository at this point in the history
  • Loading branch information
virusphp committed Sep 15, 2021
1 parent 9349479 commit af99de5
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 84 deletions.
103 changes: 25 additions & 78 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/vclaim/Bpjs.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace Vclaim\Bridging;

use Virusphp\BridingBpjs\GenerateBpjs;
use Vclaim\Bridging\GenerateBpjs;

class Bpjs
{
Expand Down
6 changes: 3 additions & 3 deletions src/vclaim/BridgingBpjs.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

namespace Virusphp\BridingBpjs;
namespace Vclaim\Bridging;

use Virusphp\BridingBpjs\GenerateBpjs;
use Vclaim\Bridging\GenerateBpjs;
use GuzzleHttp\Client;
use GuzzleHttp\Psr7;
use GuzzleHttp\Exception\RequestException;
Expand All @@ -22,7 +22,7 @@ class BridgingBpjs

protected $client;

public function __construct($consid, $timestamp, $signature, $key)
public function __construct($consid, $timestamp, $signature,$key)
{
$this->key = $key;

Expand Down
3 changes: 1 addition & 2 deletions src/vclaim/GenerateBpjs.php
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
<?php

namespace Virusphp\BridingBpjs;
namespace Vclaim\Bridging;

use LZCompressor\LZString;
date_default_timezone_set('UTC');

class GenerateBpjs
{

public CONST ENCRYPT_METHOD = 'AES-256-CBC';

public static function generateSignature($conId, $secId)
Expand Down

0 comments on commit af99de5

Please sign in to comment.