Skip to content

Commit

Permalink
fix: coding issues
Browse files Browse the repository at this point in the history
  • Loading branch information
jakubmikita committed Nov 7, 2024
1 parent d57f760 commit e2c58c3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Core/License.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,12 @@ function () {
$licenses = $this->getLicenses();
$license = new \stdClass();

if ( ! isset($licenses[$this->extension['slug']])) {
if (! isset($licenses[$this->extension['slug']])) {
return false;
}

foreach ($licenses[$this->extension['slug']] as $key => $value) {
$keyMapped = lcfirst(str_replace('_', '', ucwords($key, '_')));
foreach ((array)$licenses[$this->extension['slug']] as $key => $value) {
$keyMapped = lcfirst(str_replace('_', '', ucwords((string)$key, '_')));
$license->$keyMapped = $value;
}

Expand Down

0 comments on commit e2c58c3

Please sign in to comment.