Skip to content

Commit b89edfa

Browse files
committed
Improve our climate score
1 parent 2528ba8 commit b89edfa

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/Console/AddUserCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ class AddUserCommand extends RolloutCommand
2828
public function handle()
2929
{
3030
$name = $this->argument('feature');
31-
$id = $this->argument('user');
31+
$userIdentifier = $this->argument('user');
3232

33-
$feature = $this->rollout->activateUser($name, new User($id));
33+
$this->rollout->activateUser($name, new User($userIdentifier));
3434
}
3535
}

src/Helpers/User.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,17 @@ class User implements Contract
1111
*
1212
* @var string
1313
*/
14-
protected $id;
14+
protected $userIdentifier;
1515

1616
/**
1717
* Constructs our user helper with an id.
1818
*
19-
* @param string $id
19+
* @param string $userIdentifier
2020
* The id of the user.
2121
*/
22-
public function __construct(string $id)
22+
public function __construct(string $userIdentifier)
2323
{
24-
$this->id = $id;
24+
$this->userIdentifier = $userIdentifier;
2525
}
2626

2727
/**
@@ -32,6 +32,6 @@ public function __construct(string $id)
3232
*/
3333
public function getRolloutIdentifier()
3434
{
35-
return $this->id;
35+
return $this->userIdentifier;
3636
}
3737
}

0 commit comments

Comments
 (0)