Changeset View
Changeset View
Standalone View
Standalone View
src/workflow/ArcanistWeldWorkflow.php
Context not available. | |||||
$buffer = array(); | $buffer = array(); | ||||
foreach ($files as $file) { | foreach ($files as $file) { | ||||
$data = Filesystem::readFile($file); | $data = Filesystem::readFile($file); | ||||
if (!strlen($data)) { | if (!@strlen($data)) { | ||||
continue; | continue; | ||||
} | } | ||||
$lines = phutil_split_lines($data, true); | $lines = phutil_split_lines($data, true); | ||||
Context not available. | |||||
$newline = null; | $newline = null; | ||||
$matches = null; | $matches = null; | ||||
if (preg_match('/([\r\n]+)\z/', $u, $matches)) { | if (@preg_match('/([\r\n]+)\z/', $u, $matches)) { | ||||
$newline = $matches[1]; | $newline = $matches[1]; | ||||
} | } | ||||
if (preg_match('/([\r\n]+)\z/', $v, $matches)) { | if (@preg_match('/([\r\n]+)\z/', $v, $matches)) { | ||||
$newline = $matches[1]; | $newline = $matches[1]; | ||||
} | } | ||||
Context not available. |
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0