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

File

./SimpleExiftoolFacade.php, line 101

Class

SimpleExifToolFacade
Helper class to handle the whole data processing of EXIF with exiftool.

Namespace

Drupal\exif

Code

public function tolowerJsonResult(array $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;
}