Skip to content
Snippets Groups Projects
  1. Apr 10, 2020
    • Christoph Wurst's avatar
      Format control structures, classes, methods and function · caff1023
      Christoph Wurst authored
      
      To continue this formatting madness, here's a tiny patch that adds
      unified formatting for control structures like if and loops as well as
      classes, their methods and anonymous functions. This basically forces
      the constructs to start on the same line. This is not exactly what PSR2
      wants, but I think we can have a few exceptions with "our" style. The
      starting of braces on the same line is pracrically standard for our
      code.
      
      This also removes and empty lines from method/function bodies at the
      beginning and end.
      
      Signed-off-by: default avatarChristoph Wurst <christoph@winzerhof-wurst.at>
      caff1023
  2. Dec 05, 2019
  3. Nov 22, 2019
  4. Jul 08, 2019
  5. Nov 06, 2017
  6. Oct 24, 2017
  7. Oct 03, 2017
  8. Sep 01, 2017
  9. Aug 10, 2017
  10. Aug 09, 2017
  11. Aug 02, 2017
  12. Jul 21, 2017
  13. Jul 20, 2017
    • Lukas Reschke's avatar
      Add Phan plugin to check for SQL injections · 3d2600b0
      Lukas Reschke authored
      
      This adds a phan plugin which checks for SQL injections on code using our QueryBuilder, while it isn't perfect it should already catch most potential issues.
      
      As always, static analysis will sometimes have false positives and this is also here the case. So in some cases the analyzer just doesn't know if something is potential user input or not, thus I had to add some `@suppress SqlInjectionChecker` in front of those potential injections.
      
      The Phan plugin hasn't the most awesome code but it works and I also added a file with test cases.
      
      Signed-off-by: default avatarLukas Reschke <lukas@statuscode.ch>
      3d2600b0
  14. Jul 18, 2017
  15. Jul 13, 2017
  16. Jun 29, 2017
  17. Jun 22, 2017
Loading