Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / vendor / drush / drush / commands / core / outputformat / csv_or_string.inc
diff --git a/vendor/drush/drush/commands/core/outputformat/csv_or_string.inc b/vendor/drush/drush/commands/core/outputformat/csv_or_string.inc
deleted file mode 100644 (file)
index ad3b992..0000000
+++ /dev/null
@@ -1,21 +0,0 @@
-<?php
-
-/**
- * Output formatter 'csv-or-string'
- *
- * @param $data
- *   The render data may be either a string or an array
- *   - string: printed as-is, without quotes.
- *   - array: the value is printed as a csv list.
- *
- * This is a helper format for handling nested csv lists.
- */
-class drush_outputformat_csv_or_string extends drush_outputformat {
-  function format($data, $metadata) {
-    // If the data is an array, print it as a comma-separated list
-    if (is_array($data)) {
-      return drush_format($data, $metadata, 'csv');
-    }
-    return (string)$data;
-  }
-}