You are here

function SimpleExifToolFacade::tolowerJsonResult in Exif 7

Same name and namespace in other branches
  1. 8.2 src/SimpleExifToolFacade.php \Drupal\exif\SimpleExifToolFacade::toLowerJsonResult()
  2. 8 src/SimpleExifToolFacade.php \Drupal\exif\SimpleExifToolFacade::toLowerJsonResult()
1 call to SimpleExifToolFacade::tolowerJsonResult()
SimpleExifToolFacade::readAllInformation in ./SimpleExiftoolFacade.php

File

./SimpleExiftoolFacade.php, line 121

Class

SimpleExifToolFacade

Namespace

Drupal\exif

Code

function tolowerJsonResult($data) {
  $result = array();
  foreach ($data as $section => $values) {
    if (is_array($values)) {
      $result[strtolower($section)] = array_change_key_case($values);
    }
    else {
      $result[strtolower($section)] = $values;
    }
  }
  return $result;
}