Fixed up code styles as per review by juliushaertl

Signed-off-by: Ryan Fletcher <ryan.fletcher@codepassion.ca>
This commit is contained in:
Ryan Fletcher
2018-07-12 11:17:11 -04:00
parent af92da9a7c
commit 8d4dbd4d82
3 changed files with 7 additions and 11 deletions

View File

@@ -57,11 +57,11 @@ class DefaultBoardService {
}
public function checkFirstRun($userId, $appName) {
$firstRun = $this->config->getUserValue($userId,$appName,'firstRun','yes');
$firstRun = $this->config->getUserValue($userId, $appName, 'firstRun', 'yes');
$userBoards = $this->boardMapper->findAllByUser($userId);
if ($firstRun === 'yes' && count($userBoards) === 0) {
$this->config->setUserValue($userId,$appName,'firstRun','no');
$this->config->setUserValue($userId, $appName, 'firstRun', 'no');
return true;
}