original_string: public function loadActivatedPlugins()
      {
          $pluginsToLoad = $this->getActivatedPluginsFromConfig();
          if (!SettingsPiwik::isInternetEnabled()) {
              $pluginsToLoad = array_filter($pluginsToLoad, function($name) {
                  $plugin = Manager::makePluginClass($name);
                  return !$plugin->requiresInternetConnection();
              });
          }
          $this->loadPlugins($pluginsToLoad);
      }
code: public function loadActivatedPlugins()
      {
          $pluginsToLoad = $this->getActivatedPluginsFromConfig();
          if (!SettingsPiwik::isInternetEnabled()) {
              $pluginsToLoad = array_filter($pluginsToLoad, function($name) {
                  $plugin = Manager::makePluginClass($name);
                  return !$plugin->requiresInternetConnection();
              });
          }
          $this->loadPlugins($pluginsToLoad);
      }
code_tokens: public function loadActivatedPlugins ( ) { $ pluginsToLoad = $ this -> getActivatedPluginsFromConfig ( ) ; if ( ! SettingsPiwik :: isInternetEnabled ( ) ) { $ pluginsToLoad = array_filter ( $ pluginsToLoad , function ( $ name ) { $ plugin = Manager :: makePluginClass ( $ name ) ; return ! $ plugin -> requiresInternetConnection ( ) ; } ) ; } $ this -> loadPlugins ( $ pluginsToLoad ) ; }
docstring: Loads plugin that are enabled
docstring_tokens: Loads plugin that are enabled