I accidently disabled an error checking measure. How do i turn it back on?

Hello, on PHPStorm i accidently disabled a code checking measure of where it tells you that you do not need the variable and it can simply be done in one simple return. How do i reset the plugin back to default?

$results = do the db query
return $results;


return do the db query


If you are not connected to SonarQube, here is how you can customize SonarLint rules:

  • Open Settings
  • Go to ‘Other Settings’ -> ‘SonarLint General Settings’
  • Go to the “Rules” tab

You can find there a button to restore the default configuration.

1 Like