original_string: public function getUpdatable($list_type_update = ['plugins' => true, 'themes' => true])
      {
  
          $items = ['total' => 0];
          foreach ($list_type_update as $type => $type_updatable) {
              if ($type_updatable === false) {
                  continue;
              }
              $methodUpdatableType = 'getUpdatable' . ucfirst($type);
              $to_update = $this->$methodUpdatableType();
              $items[$type] = $to_update;
              $items['total'] += count($to_update);
          }
          return $items;
      }
code: public function getUpdatable($list_type_update = ['plugins' => true, 'themes' => true])
      {
  
          $items = ['total' => 0];
          foreach ($list_type_update as $type => $type_updatable) {
              if ($type_updatable === false) {
                  continue;
              }
              $methodUpdatableType = 'getUpdatable' . ucfirst($type);
              $to_update = $this->$methodUpdatableType();
              $items[$type] = $to_update;
              $items['total'] += count($to_update);
          }
          return $items;
      }
code_tokens: public function getUpdatable ( $ list_type_update = [ 'plugins' => true , 'themes' => true ] ) { $ items = [ 'total' => 0 ] ; foreach ( $ list_type_update as $ type => $ type_updatable ) { if ( $ type_updatable === false ) { continue ; } $ methodUpdatableType = 'getUpdatable' . ucfirst ( $ type ) ; $ to_update = $ this -> $ methodUpdatableType ( ) ; $ items [ $ type ] = $ to_update ; $ items [ 'total' ] += count ( $ to_update ) ; } return $ items ; }
docstring: Returns an array of Plugins and Themes that can be updated.
  Plugins and Themes are extended with the `available` property that relies to the remote version
  @param array $list_type_update specifies what type of package to update
  @return array Array of updatable Plugins and Themes.
  Format: ['total' => int, 'plugins' => array, 'themes' => array]
docstring_tokens: Returns an array of Plugins and Themes that can be updated . Plugins and Themes are extended with the available property that relies to the remote version