Skip to content

Commit

Permalink
fix PSR2
Browse files Browse the repository at this point in the history
  • Loading branch information
briskt committed Sep 19, 2024
1 parent 3592033 commit 57216e9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion application/common/models/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -800,7 +800,7 @@ public function save($runValidation = true, $attributeNames = null)

return parent::save($runValidation, $attributeNames);
}

public function updateLastLogin()
{
$this->last_login_utc = MySqlDateTime::now();
Expand Down
2 changes: 1 addition & 1 deletion application/features/bootstrap/FeatureContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,7 @@ public function theOnlyPropertyToChangeShouldBe($property)
$current = $this->userFromDb->$name;

$name === $property ? Assert::notEq($current, $previous, "$property is equal. Previous: $previous, Current: $current")
: Assert::eq($current, $previous,"$property is not equal. Previous: $previous, Current: $current");
: Assert::eq($current, $previous, "$property is not equal. Previous: $previous, Current: $current");
}
}

Expand Down
2 changes: 1 addition & 1 deletion application/frontend/controllers/UserController.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public function actionUpdateLastLogin(string $employeeId)

return null;
}

$user->scenario = User::SCENARIO_UPDATE_USER;

if (!$user->updateLastLogin()) {
Expand Down

0 comments on commit 57216e9

Please sign in to comment.