Skip to content

Commit

Permalink
Apply fixes from StyleCI (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
frkcn authored Mar 5, 2024
1 parent fbc84de commit 4ce7787
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
12 changes: 6 additions & 6 deletions database/factories/ConfigFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@

$factory->define(Config::class, function (Faker $faker, array $attributes = []) {
return [
'name' => $attributes['name'] ?? $faker->word().$faker->asciify('*****'),
'type' => $attributes['type'] ?? $faker->randomElement(['boolean', 'text']),
'val' => $attributes['val'] ?? $faker->word(),
'name' => $attributes['name'] ?? $faker->word().$faker->asciify('*****'),
'type' => $attributes['type'] ?? $faker->randomElement(['boolean', 'text']),
'val' => $attributes['val'] ?? $faker->word(),
'description' => $faker->realText('50'),
'tags' => $attributes['tags'] ?? [$faker->randomElement(['admin', 'blog', 'global'])],
'created_at' => Carbon::now(),
'updated_at' => Carbon::now(),
'tags' => $attributes['tags'] ?? [$faker->randomElement(['admin', 'blog', 'global'])],
'created_at' => Carbon::now(),
'updated_at' => Carbon::now(),
];
});
8 changes: 4 additions & 4 deletions src/Config/ConfigFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public function setName(string $name): self
/**
* Set the value of config parameter.
*
* @param $value
* @param $value
* @return $this
*/
public function setValue($value): self
Expand All @@ -56,7 +56,7 @@ public function setValue($value): self
/**
* Set the type of config parameter.
*
* @param $type
* @param $type
* @return $this
*/
public function setType($type): self
Expand All @@ -69,7 +69,7 @@ public function setType($type): self
/**
* Set the description of config parameter.
*
* @param $description
* @param $description
* @return $this
*/
public function setDescription($description): self
Expand All @@ -82,7 +82,7 @@ public function setDescription($description): self
/**
* Set the tags of config parameter.
*
* @param $tags
* @param $tags
* @return $this
*/
public function setTags($tags): self
Expand Down
2 changes: 1 addition & 1 deletion src/helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ function delete_config(Config $config)
* Shortcut to update the value of a config item by given name and value.
*
* @param string $key
* @param $value
* @param $value
* @return mixed
*/
function set_config_value(string $key, $value)
Expand Down

0 comments on commit 4ce7787

Please sign in to comment.