|
@@ 312-315 (lines=4) @@
|
| 309 |
|
|
| 310 |
|
$config_xml = new SimpleXMLElement($file_contents); |
| 311 |
|
|
| 312 |
|
if (isset($config_xml['useDocblockTypes'])) { |
| 313 |
|
$attribute_text = (string) $config_xml['useDocblockTypes']; |
| 314 |
|
$config->use_docblock_types = $attribute_text === 'true' || $attribute_text === '1'; |
| 315 |
|
} |
| 316 |
|
|
| 317 |
|
if (isset($config_xml['useDocblockPropertyTypes'])) { |
| 318 |
|
$attribute_text = (string) $config_xml['useDocblockPropertyTypes']; |
|
@@ 317-320 (lines=4) @@
|
| 314 |
|
$config->use_docblock_types = $attribute_text === 'true' || $attribute_text === '1'; |
| 315 |
|
} |
| 316 |
|
|
| 317 |
|
if (isset($config_xml['useDocblockPropertyTypes'])) { |
| 318 |
|
$attribute_text = (string) $config_xml['useDocblockPropertyTypes']; |
| 319 |
|
$config->use_docblock_property_types = $attribute_text === 'true' || $attribute_text === '1'; |
| 320 |
|
} |
| 321 |
|
|
| 322 |
|
if (isset($config_xml['throwExceptionOnError'])) { |
| 323 |
|
$attribute_text = (string) $config_xml['throwExceptionOnError']; |
|
@@ 322-325 (lines=4) @@
|
| 319 |
|
$config->use_docblock_property_types = $attribute_text === 'true' || $attribute_text === '1'; |
| 320 |
|
} |
| 321 |
|
|
| 322 |
|
if (isset($config_xml['throwExceptionOnError'])) { |
| 323 |
|
$attribute_text = (string) $config_xml['throwExceptionOnError']; |
| 324 |
|
$config->throw_exception = $attribute_text === 'true' || $attribute_text === '1'; |
| 325 |
|
} |
| 326 |
|
|
| 327 |
|
if (isset($config_xml['hideExternalErrors'])) { |
| 328 |
|
$attribute_text = (string) $config_xml['hideExternalErrors']; |
|
@@ 327-330 (lines=4) @@
|
| 324 |
|
$config->throw_exception = $attribute_text === 'true' || $attribute_text === '1'; |
| 325 |
|
} |
| 326 |
|
|
| 327 |
|
if (isset($config_xml['hideExternalErrors'])) { |
| 328 |
|
$attribute_text = (string) $config_xml['hideExternalErrors']; |
| 329 |
|
$config->hide_external_errors = $attribute_text === 'true' || $attribute_text === '1'; |
| 330 |
|
} |
| 331 |
|
|
| 332 |
|
if (isset($config_xml['autoloader'])) { |
| 333 |
|
$config->autoloader = (string) $config_xml['autoloader']; |
|
@@ 346-349 (lines=4) @@
|
| 343 |
|
trigger_error('Could not create cache directory: ' . $config->cache_directory, E_USER_ERROR); |
| 344 |
|
} |
| 345 |
|
|
| 346 |
|
if (isset($config_xml['allowFileIncludes'])) { |
| 347 |
|
$attribute_text = (string) $config_xml['allowFileIncludes']; |
| 348 |
|
$config->allow_includes = $attribute_text === 'true' || $attribute_text === '1'; |
| 349 |
|
} |
| 350 |
|
|
| 351 |
|
if (isset($config_xml['totallyTyped'])) { |
| 352 |
|
$attribute_text = (string) $config_xml['totallyTyped']; |
|
@@ 351-354 (lines=4) @@
|
| 348 |
|
$config->allow_includes = $attribute_text === 'true' || $attribute_text === '1'; |
| 349 |
|
} |
| 350 |
|
|
| 351 |
|
if (isset($config_xml['totallyTyped'])) { |
| 352 |
|
$attribute_text = (string) $config_xml['totallyTyped']; |
| 353 |
|
$config->totally_typed = $attribute_text === 'true' || $attribute_text === '1'; |
| 354 |
|
} |
| 355 |
|
|
| 356 |
|
if (isset($config_xml['strictBinaryOperands'])) { |
| 357 |
|
$attribute_text = (string) $config_xml['strictBinaryOperands']; |
|
@@ 356-359 (lines=4) @@
|
| 353 |
|
$config->totally_typed = $attribute_text === 'true' || $attribute_text === '1'; |
| 354 |
|
} |
| 355 |
|
|
| 356 |
|
if (isset($config_xml['strictBinaryOperands'])) { |
| 357 |
|
$attribute_text = (string) $config_xml['strictBinaryOperands']; |
| 358 |
|
$config->strict_binary_operands = $attribute_text === 'true' || $attribute_text === '1'; |
| 359 |
|
} |
| 360 |
|
|
| 361 |
|
if (isset($config_xml['requireVoidReturnType'])) { |
| 362 |
|
$attribute_text = (string) $config_xml['requireVoidReturnType']; |
|
@@ 361-364 (lines=4) @@
|
| 358 |
|
$config->strict_binary_operands = $attribute_text === 'true' || $attribute_text === '1'; |
| 359 |
|
} |
| 360 |
|
|
| 361 |
|
if (isset($config_xml['requireVoidReturnType'])) { |
| 362 |
|
$attribute_text = (string) $config_xml['requireVoidReturnType']; |
| 363 |
|
$config->add_void_docblocks = $attribute_text === 'true' || $attribute_text === '1'; |
| 364 |
|
} |
| 365 |
|
|
| 366 |
|
if (isset($config_xml['useAssertForType'])) { |
| 367 |
|
$attribute_text = (string) $config_xml['useAssertForType']; |
|
@@ 366-369 (lines=4) @@
|
| 363 |
|
$config->add_void_docblocks = $attribute_text === 'true' || $attribute_text === '1'; |
| 364 |
|
} |
| 365 |
|
|
| 366 |
|
if (isset($config_xml['useAssertForType'])) { |
| 367 |
|
$attribute_text = (string) $config_xml['useAssertForType']; |
| 368 |
|
$config->use_assert_for_type = $attribute_text === 'true' || $attribute_text === '1'; |
| 369 |
|
} |
| 370 |
|
|
| 371 |
|
if (isset($config_xml['cacheFileContentHashes'])) { |
| 372 |
|
$attribute_text = (string) $config_xml['cacheFileContentHashes']; |
|
@@ 371-374 (lines=4) @@
|
| 368 |
|
$config->use_assert_for_type = $attribute_text === 'true' || $attribute_text === '1'; |
| 369 |
|
} |
| 370 |
|
|
| 371 |
|
if (isset($config_xml['cacheFileContentHashes'])) { |
| 372 |
|
$attribute_text = (string) $config_xml['cacheFileContentHashes']; |
| 373 |
|
$config->cache_file_hashes_during_run = $attribute_text === 'true' || $attribute_text === '1'; |
| 374 |
|
} |
| 375 |
|
|
| 376 |
|
if (isset($config_xml['rememberPropertyAssignmentsAfterCall'])) { |
| 377 |
|
$attribute_text = (string) $config_xml['rememberPropertyAssignmentsAfterCall']; |
|
@@ 376-379 (lines=4) @@
|
| 373 |
|
$config->cache_file_hashes_during_run = $attribute_text === 'true' || $attribute_text === '1'; |
| 374 |
|
} |
| 375 |
|
|
| 376 |
|
if (isset($config_xml['rememberPropertyAssignmentsAfterCall'])) { |
| 377 |
|
$attribute_text = (string) $config_xml['rememberPropertyAssignmentsAfterCall']; |
| 378 |
|
$config->remember_property_assignments_after_call = $attribute_text === 'true' || $attribute_text === '1'; |
| 379 |
|
} |
| 380 |
|
|
| 381 |
|
if (isset($config_xml['serializer'])) { |
| 382 |
|
$attribute_text = (string) $config_xml['serializer']; |