original_string: public function getComponentUpdates()
      {
          $componentsToCheck = array(
              'core' => Version::VERSION
          );
  
          $manager = \Piwik\Plugin\Manager::getInstance();
          $plugins = $manager->getLoadedPlugins();
          foreach ($plugins as $pluginName => $plugin) {
              if ($manager->isPluginInstalled($pluginName)) {
                  $componentsToCheck[$pluginName] = $plugin->getVersion();
              }
          }
  
          $columnsVersions = $this->columnsUpdater->getAllVersions($this);
          foreach ($columnsVersions as $component => $version) {
              $componentsToCheck[$component] = $version;
          }
  
          $componentsWithUpdateFile = $this->getComponentsWithUpdateFile($componentsToCheck);
  
          if (count($componentsWithUpdateFile) == 0) {
              $this->columnsUpdater->onNoUpdateAvailable($columnsVersions);
  
              return null;
          }
  
          return $componentsWithUpdateFile;
      }
code: public function getComponentUpdates()
      {
          $componentsToCheck = array(
              'core' => Version::VERSION
          );
  
          $manager = \Piwik\Plugin\Manager::getInstance();
          $plugins = $manager->getLoadedPlugins();
          foreach ($plugins as $pluginName => $plugin) {
              if ($manager->isPluginInstalled($pluginName)) {
                  $componentsToCheck[$pluginName] = $plugin->getVersion();
              }
          }
  
          $columnsVersions = $this->columnsUpdater->getAllVersions($this);
          foreach ($columnsVersions as $component => $version) {
              $componentsToCheck[$component] = $version;
          }
  
          $componentsWithUpdateFile = $this->getComponentsWithUpdateFile($componentsToCheck);
  
          if (count($componentsWithUpdateFile) == 0) {
              $this->columnsUpdater->onNoUpdateAvailable($columnsVersions);
  
              return null;
          }
  
          return $componentsWithUpdateFile;
      }
code_tokens: public function getComponentUpdates ( ) { $ componentsToCheck = array ( 'core' => Version :: VERSION ) ; $ manager = \ Piwik \ Plugin \ Manager :: getInstance ( ) ; $ plugins = $ manager -> getLoadedPlugins ( ) ; foreach ( $ plugins as $ pluginName => $ plugin ) { if ( $ manager -> isPluginInstalled ( $ pluginName ) ) { $ componentsToCheck [ $ pluginName ] = $ plugin -> getVersion ( ) ; } } $ columnsVersions = $ this -> columnsUpdater -> getAllVersions ( $ this ) ; foreach ( $ columnsVersions as $ component => $ version ) { $ componentsToCheck [ $ component ] = $ version ; } $ componentsWithUpdateFile = $ this -> getComponentsWithUpdateFile ( $ componentsToCheck ) ; if ( count ( $ componentsWithUpdateFile ) == 0 ) { $ this -> columnsUpdater -> onNoUpdateAvailable ( $ columnsVersions ) ; return null ; } return $ componentsWithUpdateFile ; }
docstring: Returns any updates that should occur for core and all plugins that are both loaded and
  installed. Also includes updates required for dimensions.
  
  @return string[]|null Returns the result of `getComponentsWithUpdateFile()`.
docstring_tokens: Returns any updates that should occur for core and all plugins that are both loaded and installed . Also includes updates required for dimensions .