Skip to content
This repository has been archived by the owner on Oct 27, 2021. It is now read-only.

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
sribna committed Aug 25, 2020
1 parent dbf6b64 commit 25d64df
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docs/Requests.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Make sure that domains for activation and verification are set:
**Success response:**

Code: 200
Content: {"success" : "Callback URL where private key was sent"}
Content: {"success" : "Callback URL path where private key was sent"}

**Error response:**

Expand All @@ -43,7 +43,7 @@ Make sure that domains for activation and verification are set:
**Success response:**

Code: 200
Content: {"success" : "Callback URL where private key was sent"}
Content: {"success" : "Callback URL path where private key was sent"}

**Error response:**

Expand Down
4 changes: 2 additions & 2 deletions src/Checker.php
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ private function request(string $domain, string $type)
*/
private function getRequestUrl(string $domain, string $type): string
{
return "http://$domain/" . $this->${"{$type}UrlPath"};
return "http://$domain/" . call_user_func([$this, "get{$type}UrlPath"]);
}

/**
Expand Down Expand Up @@ -565,7 +565,7 @@ private function getSecret(): string
return self::$secret;
}

throw new LicenseException('Secret is not set. Run Sribna\Licensee\Checker::writeSecret()');
throw new LicenseException('Secret is not set');
}

/**
Expand Down

0 comments on commit 25d64df

Please sign in to comment.