original_string: public static function getDoneFlags(array $plugins, Segment $segment)
      {
          $doneFlags = array();
          $doneAllPlugins = self::getDoneFlagArchiveContainsAllPlugins($segment);
          $doneFlags[$doneAllPlugins] = $doneAllPlugins;
  
          $plugins = array_unique($plugins);
          foreach ($plugins as $plugin) {
              $doneOnePlugin = self::getDoneFlagArchiveContainsOnePlugin($segment, $plugin);
              $doneFlags[$plugin] = $doneOnePlugin;
          }
          return $doneFlags;
      }
code: public static function getDoneFlags(array $plugins, Segment $segment)
      {
          $doneFlags = array();
          $doneAllPlugins = self::getDoneFlagArchiveContainsAllPlugins($segment);
          $doneFlags[$doneAllPlugins] = $doneAllPlugins;
  
          $plugins = array_unique($plugins);
          foreach ($plugins as $plugin) {
              $doneOnePlugin = self::getDoneFlagArchiveContainsOnePlugin($segment, $plugin);
              $doneFlags[$plugin] = $doneOnePlugin;
          }
          return $doneFlags;
      }
code_tokens: public static function getDoneFlags ( array $ plugins , Segment $ segment ) { $ doneFlags = array ( ) ; $ doneAllPlugins = self :: getDoneFlagArchiveContainsAllPlugins ( $ segment ) ; $ doneFlags [ $ doneAllPlugins ] = $ doneAllPlugins ; $ plugins = array_unique ( $ plugins ) ; foreach ( $ plugins as $ plugin ) { $ doneOnePlugin = self :: getDoneFlagArchiveContainsOnePlugin ( $ segment , $ plugin ) ; $ doneFlags [ $ plugin ] = $ doneOnePlugin ; } return $ doneFlags ; }
docstring: Return done flags used to tell how the archiving process for a specific archive was completed,
  
  @param array $plugins
  @param $segment
  @return array
docstring_tokens: Return done flags used to tell how the archiving process for a specific archive was completed