... if (strlen($line) === 0) { if ($this->inCli) { echo "WARNING: empty line #" . $this->line . "\n"; } $this->invalidLines++; return $this->getDataList(); } $item = json_decode($line, true); if (!is_array($item) || count($item) === 0) { switch ...
... if (strlen($line) === 0) { if ($this->inCli) { echo "WARNING: empty line #" . $this->line . "\n"; } $this->invalidLines++; return $this->getDataList(); } $item = json_decode($line, true); if (!is_array($item) || count($item) === 0) { switch ...
... === 1 && is_null($item[0])) { if ($this->inCli) { echo "WARNING: invalid csv line #" . $this->line . "\n"; } $this->invalidLines++; return $this->getDataList(); } return array($item);} init() 方法 protected void init() 源码: sdk/ph...
... === 1 && is_null($item[0])) { if ($this->inCli) { echo "WARNING: invalid csv line #" . $this->line . "\n"; } $this->invalidLines++; return $this->getDataList(); } return array($item);}