Merge pull request #18544 from magnolia61/participant_status_notification_default
[civicrm-core.git] / Civi / CiUtil / CSVParser.php
index dc2196ef137f9f394986c1ccfe0078fd98ceda93..f48521fde75b7d25614a4fb58aba1ceeb0226419 100644 (file)
@@ -7,17 +7,19 @@ namespace Civi\CiUtil;
 class CSVParser {
 
   /**
-   * @param string $csvContent content; each row in the row csv should start with two cells:
+   * @param string $csvContent
+   *   Content; each row in the row csv should start with two cells:.
    *   - cell 0: the test name
    *   - cell 1: the test status
-   * @return array (string $testName => string $status)
+   * @return array
+   *   (string $testName => string $status)
    */
   public static function parseResults($csvContent) {
     $fh = fopen('php://memory', 'r+');
     fwrite($fh, $csvContent);
     rewind($fh);
 
-    $results = array();
+    $results = [];
     while (($r = fgetcsv($fh)) !== FALSE) {
       $name = str_replace('.', '::', trim($r[0]));
       $status = trim($r[1]);
@@ -27,4 +29,4 @@ class CSVParser {
     return $results;
   }
 
-}
\ No newline at end of file
+}