Skip to content

Commit

Permalink
Merge pull request #5 from Dipantry/analysis-MPwLLO
Browse files Browse the repository at this point in the history
Apply fixes from StyleCI
  • Loading branch information
Rigsto authored Sep 22, 2022
2 parents e608dbb + 1b7989c commit b9ce0ba
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Commands/SeedCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

namespace Dipantry\Rajaongkir\Commands;

use Dflydev\DotAccessData\Data;
use Dipantry\Rajaongkir\Constants\Packages;
use Dipantry\Rajaongkir\Helper\SystemSecurity;
use Illuminate\Console\Command;
Expand Down Expand Up @@ -45,6 +44,7 @@ public function handle(): void

if (!SystemSecurity::checkApiKey()) {
$this->error('API Key is not valid');

return;
}

Expand Down
2 changes: 1 addition & 1 deletion src/Constants/Packages.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ abstract class Packages extends BasicEnum
const STARTER = 'starter';
const BASIC = 'basic';
const PRO = 'pro';
}
}
1 change: 1 addition & 0 deletions src/Controller/BaseRajaongkir.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ private function checkPackage(): string
if (empty($package)) {
$message = 'API Package not specified';
}

try {
if (!Packages::isValidValue($package)) {
$message = 'Invalid Package';
Expand Down
1 change: 1 addition & 0 deletions src/Controller/BaseVanillaRajaongkir.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ private function checkPackage(string $package): string
if (empty($package)) {
$message = 'API Package not specified';
}

try {
if (!Packages::isValidValue($package)) {
$message = 'Invalid Package';
Expand Down
2 changes: 1 addition & 1 deletion src/Service/HTTPService.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,4 +72,4 @@ public function post(string $url, array $params, bool $manyResults)

return $result;
}
}
}

0 comments on commit b9ce0ba

Please sign in to comment.