original_string: public function getInstallable($list_type_installed = ['plugins' => true, 'themes' => true])
      {
          $items = ['total' => 0];
          foreach ($list_type_installed as $type => $type_installed) {
              if ($type_installed === false) {
                  continue;
              }
              $methodInstallableType = 'getInstalled' . ucfirst($type);
              $to_install = $this->$methodInstallableType();
              $items[$type] = $to_install;
              $items['total'] += count($to_install);
          }
          return $items;
      }
code: public function getInstallable($list_type_installed = ['plugins' => true, 'themes' => true])
      {
          $items = ['total' => 0];
          foreach ($list_type_installed as $type => $type_installed) {
              if ($type_installed === false) {
                  continue;
              }
              $methodInstallableType = 'getInstalled' . ucfirst($type);
              $to_install = $this->$methodInstallableType();
              $items[$type] = $to_install;
              $items['total'] += count($to_install);
          }
          return $items;
      }
code_tokens: public function getInstallable ( $ list_type_installed = [ 'plugins' => true , 'themes' => true ] ) { $ items = [ 'total' => 0 ] ; foreach ( $ list_type_installed as $ type => $ type_installed ) { if ( $ type_installed === false ) { continue ; } $ methodInstallableType = 'getInstalled' . ucfirst ( $ type ) ; $ to_install = $ this -> $ methodInstallableType ( ) ; $ items [ $ type ] = $ to_install ; $ items [ 'total' ] += count ( $ to_install ) ; } return $ items ; }
docstring: Returns the Locally installable packages
  
  @param array $list_type_installed
  @return array The installed packages
docstring_tokens: Returns the Locally installable packages