Skip to content

Commit

Permalink
Tighten permissions to get SonarQube off my back
Browse files Browse the repository at this point in the history
  • Loading branch information
mtompset committed Dec 11, 2024
1 parent f75c039 commit 8405eba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions SilMock/DataStore/Sqlite/SqliteUtils.php
Original file line number Diff line number Diff line change
Expand Up @@ -241,14 +241,14 @@ public function recordData($dataType, $dataClass, $data)

/**
* If the database file does not exist, creates it with an empty string
* with 0644 permissions.
* with 0640 permissions.
* @returns null
*/
public function createDbIfNotExists()
{
if (! file_exists($this->dbFile)) {
file_put_contents($this->dbFile, '');
chmod($this->dbFile, 0644);
chmod($this->dbFile, 0640);
}
}

Expand Down

0 comments on commit 8405eba

Please sign in to comment.