From 603bd637bf5644b08d5ff478be096e1ce7efe233 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?IT=E5=B0=8F=E5=BC=BAxqitw=2Ecn?= <360237521@qq.com> Date: Wed, 6 Jun 2018 13:38:58 +0800 Subject: [PATCH] =?UTF-8?q?return=E8=A7=A3=E6=9E=90=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/lib/ParseLine.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/lib/ParseLine.php b/src/lib/ParseLine.php index f2226e1..70338c7 100644 --- a/src/lib/ParseLine.php +++ b/src/lib/ParseLine.php @@ -39,7 +39,8 @@ class ParseLine 'param_type' => $line[1], 'param_name' => $line[2], 'param_title' => $line[3], - 'param_default' => isset($line[4]) ? $line[4] : '', + 'param_default' => $line[4], + 'param_require' => $line[5], ]; } @@ -63,9 +64,10 @@ class ParseLine */ public function parseLineReturn($line) { return [ - 'type' => $line[0], - 'return_type' => $line[1], - 'content' => isset($line[2]) ? $line[2] : '', + 'type' => $line[0], + 'return_type' => $line[1], + 'return_name' => $line[2], + 'return_title' => isset($line[3]) ? $line[3] : '', ]; } } \ No newline at end of file