[Phpmyadmin-git] [phpmyadmin/phpmyadmin] 697cbf: Simplify code

Michal Čihař michal at cihar.com
Tue Jun 10 09:50:11 CEST 2014


  Branch: refs/heads/master
  Home:   https://github.com/phpmyadmin/phpmyadmin
  Commit: 697cbf22d587dfadb0ca790ba11516dd894ec584
      https://github.com/phpmyadmin/phpmyadmin/commit/697cbf22d587dfadb0ca790ba11516dd894ec584
  Author: Michal Čihař <michal at cihar.com>
  Date:   2014-06-10 (Tue, 10 Jun 2014)

  Changed paths:
    M libraries/DatabaseInterface.class.php

  Log Message:
  -----------
  Simplify code

foreach on empty list does nothing, so we can skip the initial
condition.

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


  Commit: dbd18940bed525f713698c13939c31abc1d1ecd7
      https://github.com/phpmyadmin/phpmyadmin/commit/dbd18940bed525f713698c13939c31abc1d1ecd7
  Author: Michal Čihař <michal at cihar.com>
  Date:   2014-06-10 (Tue, 10 Jun 2014)

  Changed paths:
    M libraries/DatabaseInterface.class.php

  Log Message:
  -----------
  Remove explicit unsetting of local variables

This was useful in global scope, but makes no sense when used inside
method as all it's variables are cleaned up anyway.

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


Compare: https://github.com/phpmyadmin/phpmyadmin/compare/c8eefc22b6f9...dbd18940bed5


More information about the Git mailing list