Permalink
Browse files

Removing the innecesary new function getLastSeq and using the existin…

…g getControlSeq
  • Loading branch information...
jespino committed Aug 5, 2010
1 parent 3695629 commit eae0c9ff880266e5e594369d755538f51fcdd0d0
Showing with 2 additions and 13 deletions.
  1. +0 −11 Beautifier.php
  2. +2 −2 Beautifier/Filter/IndentStyles.filter.php
View
@@ -1819,16 +1819,5 @@ public function openBraceDontProcess()
or ($this->isPreviousTokenConstant(T_STRING) and $this->getPreviousTokenConstant(2) == T_OBJECT_OPERATOR)
or $this->getMode('double_quote');
}
-
- /**
- * getLastSeq: Return the last sequence block opened and not closed
- *
- * @access public
- * @return int
- */
- public function getLastSeq()
- {
- return $this->aControlSeq[count($this->aControlSeq)-1];
- }
}
?>
@@ -155,7 +155,7 @@ function t_open_brace_bsd($sTag)
{
$this->oBeaut->addNewLineIndent();
$this->oBeaut->add($sTag);
- if ($this->oBeaut->getLastSeq() == T_SWITCH) {
+ if ($this->oBeaut->getControlSeq() == T_SWITCH) {
$this->oBeaut->incIndent();
}
$this->oBeaut->incIndent();
@@ -176,7 +176,7 @@ function t_close_brace_bsd($sTag)
} else {
$this->oBeaut->removeWhitespace();
$this->oBeaut->decIndent();
- if ($this->oBeaut->getLastSeq() == T_SWITCH) {
+ if ($this->oBeaut->getControlSeq() == T_SWITCH) {
$this->oBeaut->decIndent();
}
$this->oBeaut->addNewLineIndent();

0 comments on commit eae0c9f

Please sign in to comment.