original_string: private function applyEdits()
      {
          foreach ($this->edits as $edit) {
              $mainMenuToEdit = $edit[0];
              $subMenuToEdit  = $edit[1];
              $newUrl         = $edit[2];
  
              if ($subMenuToEdit === null) {
                  if (isset($this->menu[$mainMenuToEdit])) {
                      $menuDataToEdit = &$this->menu[$mainMenuToEdit];
                  } else {
                      $menuDataToEdit = null;
                  }
              } else {
                  if (isset($this->menu[$mainMenuToEdit][$subMenuToEdit])) {
                      $menuDataToEdit = &$this->menu[$mainMenuToEdit][$subMenuToEdit];
                  } else {
                      $menuDataToEdit = null;
                  }
              }
  
              if (empty($menuDataToEdit)) {
                  $this->buildMenuItem($mainMenuToEdit, $subMenuToEdit, $newUrl);
              } else {
                  $menuDataToEdit['_url'] = $newUrl;
              }
          }
      }
code: private function applyEdits()
      {
          foreach ($this->edits as $edit) {
              $mainMenuToEdit = $edit[0];
              $subMenuToEdit  = $edit[1];
              $newUrl         = $edit[2];
  
              if ($subMenuToEdit === null) {
                  if (isset($this->menu[$mainMenuToEdit])) {
                      $menuDataToEdit = &$this->menu[$mainMenuToEdit];
                  } else {
                      $menuDataToEdit = null;
                  }
              } else {
                  if (isset($this->menu[$mainMenuToEdit][$subMenuToEdit])) {
                      $menuDataToEdit = &$this->menu[$mainMenuToEdit][$subMenuToEdit];
                  } else {
                      $menuDataToEdit = null;
                  }
              }
  
              if (empty($menuDataToEdit)) {
                  $this->buildMenuItem($mainMenuToEdit, $subMenuToEdit, $newUrl);
              } else {
                  $menuDataToEdit['_url'] = $newUrl;
              }
          }
      }
code_tokens: private function applyEdits ( ) { foreach ( $ this -> edits as $ edit ) { $ mainMenuToEdit = $ edit [ 0 ] ; $ subMenuToEdit = $ edit [ 1 ] ; $ newUrl = $ edit [ 2 ] ; if ( $ subMenuToEdit === null ) { if ( isset ( $ this -> menu [ $ mainMenuToEdit ] ) ) { $ menuDataToEdit = & $ this -> menu [ $ mainMenuToEdit ] ; } else { $ menuDataToEdit = null ; } } else { if ( isset ( $ this -> menu [ $ mainMenuToEdit ] [ $ subMenuToEdit ] ) ) { $ menuDataToEdit = & $ this -> menu [ $ mainMenuToEdit ] [ $ subMenuToEdit ] ; } else { $ menuDataToEdit = null ; } } if ( empty ( $ menuDataToEdit ) ) { $ this -> buildMenuItem ( $ mainMenuToEdit , $ subMenuToEdit , $ newUrl ) ; } else { $ menuDataToEdit [ '_url' ] = $ newUrl ; } } }
docstring: Applies all edits to the menu.
docstring_tokens: Applies all edits to the menu .