Skip to content

Commit

Permalink
psr-4 compliance
Browse files Browse the repository at this point in the history
  • Loading branch information
startailcoon committed Apr 14, 2024
1 parent 6483fec commit df02dcf
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
9 changes: 3 additions & 6 deletions src/Models/Chain/Contract.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,9 @@

namespace CoonDesign\phpGridcoin\Models\Chain;

require_once __DIR__ . "/contract_beacon.php";
require_once __DIR__ . "/contract_claim.php";
require_once __DIR__ . "/contract_mrc.php";
require_once __DIR__ . "/contract_project.php";
require_once __DIR__ . "/contract_poll.php";
require_once __DIR__ . "/contract_vote.php";
foreach(glob(__DIR__ . "/Contract*.php") as $file) {
require_once $file;
}

class Contract {
var int $version;
Expand Down
1 change: 0 additions & 1 deletion src/Models/Chain/ContractBody.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

namespace CoonDesign\phpGridcoin\Models\Chain;


/** Placeholder to be replaced with a specific Contract Body Class */
class ContractBody {
public static function determineClass($class, $json, $pjson) {
Expand Down
2 changes: 1 addition & 1 deletion src/Models/Chain/Transaction.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace CoonDesign\phpGridcoin\Models\Chain;

require_once __DIR__ . "/contract.php";
require_once __DIR__ . "/Contract.php";

use CoonDesign\phpGridcoin\Coin;

Expand Down

0 comments on commit df02dcf

Please sign in to comment.