function startArrayScope($scopeName, $startedBySquareBracket) { $classScope = false; if ($this->currentScope instanceof ClassScope) { $classScope = $this->currentScope; } $this->pushScope(CODE_SCOPE_ARRAY, $scopeName); $this->changeToState(CONVERTER_STATE_DEFAULT); if ($classScope != false) { $this->currentScope->setVariableName($classScope->currentVariableName); } if ($startedBySquareBracket == true) { $this->currentScope->incrementSquareBracketCount(); } $this->currentScope->startedBySquareBracket = $startedBySquareBracket; }