public static function buildResult(tao_install_services_Data $data, common_configuration_Report $report, common_configuration_Component $component)
 {
     $content = json_decode($data->getContent(), true);
     $value = $content['value']['value'];
     $id = $content['value']['id'];
     $data = array('type' => 'PHPINIValueReport', 'value' => array('status' => $report->getStatusAsString(), 'id' => $id, 'message' => $report->getMessage(), 'expectedValue' => $value, 'value' => $component->getValue(), 'optional' => $component->isOptional(), 'name' => $component->getName()));
     return new tao_install_services_Data(json_encode($data));
 }
 public static function buildResult(tao_install_services_Data $data, common_configuration_Report $report, common_configuration_Component $component)
 {
     $content = json_decode($data->getContent(), true);
     $id = $content['value']['id'];
     $value = array('status' => $report->getStatusAsString(), 'id' => $id, 'message' => $report->getMessage(), 'min' => $component->getMin(), 'value' => $component->getValue(), 'optional' => $component->isOptional());
     $max = $component->getMax();
     if (!empty($max)) {
         $value['max'] = $component->getMax();
     }
     $data = array('type' => 'PHPRuntimeReport', 'value' => $value);
     return new tao_install_services_Data(json_encode($data));
 }