[phpMyAdmin Git] [phpmyadmin/sql-parser] bda11c: Make the code a bit more readable

Michal Čihař michal at cihar.com
Tue Jan 3 13:31:55 CET 2017


  Branch: refs/heads/master
  Home:   https://github.com/phpmyadmin/sql-parser
  Commit: bda11c8a47be03b2691c20f1249cb2ad633d691a
      https://github.com/phpmyadmin/sql-parser/commit/bda11c8a47be03b2691c20f1249cb2ad633d691a
  Author: Michal Čihař <michal at cihar.com>
  Date:   2017-01-03 (Tue, 03 Jan 2017)

  Changed paths:
    M src/Utils/Formatter.php

  Log Message:
  -----------
  Make the code a bit more readable

Do not misuse ternary erorr silence operator to check if variable is
set.

Signed-off-by: Michal Čihař <michal at cihar.com>


  Commit: 4aadd25334b9e5aa00e48af130122a7415905cea
      https://github.com/phpmyadmin/sql-parser/commit/4aadd25334b9e5aa00e48af130122a7415905cea
  Author: Michal Čihař <michal at cihar.com>
  Date:   2017-01-03 (Tue, 03 Jan 2017)

  Changed paths:
    M src/Utils/Formatter.php
    M tests/Utils/FormatterTest.php

  Log Message:
  -----------
  Simplify rules merging

We first sanitize the merged array and we can later use it without
checking.

Signed-off-by: Michal Čihař <michal at cihar.com>


Compare: https://github.com/phpmyadmin/sql-parser/compare/7eebd40cef49...4aadd25334b9


More information about the Git mailing list