Update .scrutinizer.yml

tests directory must ignored for scanning
fix CS and logic errors