original_string: protected function processUpdateLists($result)
      {
          if ($core = array_get($result, 'core')) {
              $result['core']['updates'] = array_reverse(array_get($core, 'updates', []), true);
          }
  
          foreach (array_get($result, 'plugins', []) as $code => $plugin) {
              $result['plugins'][$code]['updates'] = array_reverse(array_get($plugin, 'updates', []), true);
          }
  
          return $result;
      }
code: protected function processUpdateLists($result)
      {
          if ($core = array_get($result, 'core')) {
              $result['core']['updates'] = array_reverse(array_get($core, 'updates', []), true);
          }
  
          foreach (array_get($result, 'plugins', []) as $code => $plugin) {
              $result['plugins'][$code]['updates'] = array_reverse(array_get($plugin, 'updates', []), true);
          }
  
          return $result;
      }
code_tokens: protected function processUpdateLists ( $ result ) { if ( $ core = array_get ( $ result , 'core' ) ) { $ result [ 'core' ] [ 'updates' ] = array_reverse ( array_get ( $ core , 'updates' , [ ] ) , true ) ; } foreach ( array_get ( $ result , 'plugins' , [ ] ) as $ code => $ plugin ) { $ result [ 'plugins' ] [ $ code ] [ 'updates' ] = array_reverse ( array_get ( $ plugin , 'updates' , [ ] ) , true ) ; } return $ result ; }
docstring: Reverses the update lists for the core and all plugins.
  @param array  $result
  @return array
docstring_tokens: Reverses the update lists for the core and all plugins .