Skip to content

Commit 4ce7787

Browse files
authored
Apply fixes from StyleCI (#32)
1 parent fbc84de commit 4ce7787

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

database/factories/ConfigFactory.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@
99

1010
$factory->define(Config::class, function (Faker $faker, array $attributes = []) {
1111
return [
12-
'name' => $attributes['name'] ?? $faker->word().$faker->asciify('*****'),
13-
'type' => $attributes['type'] ?? $faker->randomElement(['boolean', 'text']),
14-
'val' => $attributes['val'] ?? $faker->word(),
12+
'name' => $attributes['name'] ?? $faker->word().$faker->asciify('*****'),
13+
'type' => $attributes['type'] ?? $faker->randomElement(['boolean', 'text']),
14+
'val' => $attributes['val'] ?? $faker->word(),
1515
'description' => $faker->realText('50'),
16-
'tags' => $attributes['tags'] ?? [$faker->randomElement(['admin', 'blog', 'global'])],
17-
'created_at' => Carbon::now(),
18-
'updated_at' => Carbon::now(),
16+
'tags' => $attributes['tags'] ?? [$faker->randomElement(['admin', 'blog', 'global'])],
17+
'created_at' => Carbon::now(),
18+
'updated_at' => Carbon::now(),
1919
];
2020
});

src/Config/ConfigFactory.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public function setName(string $name): self
4343
/**
4444
* Set the value of config parameter.
4545
*
46-
* @param $value
46+
* @param $value
4747
* @return $this
4848
*/
4949
public function setValue($value): self
@@ -56,7 +56,7 @@ public function setValue($value): self
5656
/**
5757
* Set the type of config parameter.
5858
*
59-
* @param $type
59+
* @param $type
6060
* @return $this
6161
*/
6262
public function setType($type): self
@@ -69,7 +69,7 @@ public function setType($type): self
6969
/**
7070
* Set the description of config parameter.
7171
*
72-
* @param $description
72+
* @param $description
7373
* @return $this
7474
*/
7575
public function setDescription($description): self
@@ -82,7 +82,7 @@ public function setDescription($description): self
8282
/**
8383
* Set the tags of config parameter.
8484
*
85-
* @param $tags
85+
* @param $tags
8686
* @return $this
8787
*/
8888
public function setTags($tags): self

src/helpers.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ function delete_config(Config $config)
7878
* Shortcut to update the value of a config item by given name and value.
7979
*
8080
* @param string $key
81-
* @param $value
81+
* @param $value
8282
* @return mixed
8383
*/
8484
function set_config_value(string $key, $value)

0 commit comments

Comments
 (0)