Skip to content
This repository was archived by the owner on Nov 14, 2019. It is now read-only.

Apply fixes from StyleCI #3

Merged
merged 1 commit into from
Nov 28, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions lib/Cws/CwsOvhLogsDownloader.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ public function __construct(CwsDebug $cwsDebug, CwsCurl $cwsCurl)
$this->dlEnable = false;
$this->overwrite = false;
$this->url = null;
$this->rootLogs = [];
$this->rootLogs = array();
$this->error = null;
}

Expand Down Expand Up @@ -205,14 +205,14 @@ public function getLogsSsh($year = null, $month = null)
*/
public function getAll($year = null, $month = null)
{
return [
return array(
$this->getLogsWeb($year, $month),
$this->getLogsError($year, $month),
$this->getLogsFtp($year, $month),
$this->getLogsCgi($year, $month),
$this->getLogsOut($year, $month),
$this->getLogsSsh($year, $month),
];
);
}

/**
Expand All @@ -230,11 +230,11 @@ private function getLogs($type, $year = null, $month = null)
$this->cwsDebug->labelValue('Type', $type);
$this->cwsDebug->labelValue('Date', $month.'/'.$year);

$result = [
$result = array(
'type' => $type,
'download' => false,
'logs' => false,
];
);

$byDate = !empty($year) && !empty($month);
if ((empty($year) && !empty($month)) || (!empty($year) && empty($month))) {
Expand Down Expand Up @@ -293,7 +293,7 @@ private function getLogs($type, $year = null, $month = null)
private function procRootLogs($type)
{
$this->cwsDebug->titleH3('procRootLogs', CwsDebug::VERBOSE_REPORT);
$this->rootLogs = [];
$this->rootLogs = array();

if (!empty($this->nic) && !empty($this->password) && !empty($this->domain)) {
$this->url = 'https://logs.ovh.net/'.$this->domain;
Expand Down Expand Up @@ -332,11 +332,11 @@ private function procDownload($resultLogs, $type)
{
$this->cwsDebug->titleH3('procDownload', CwsDebug::VERBOSE_REPORT);

$result = [
$result = array(
'count' => 0,
'size' => 0,
'time' => 0,
];
);

if (empty($this->dlPath)) {
$this->error = '<strong>dlPath</strong> is required!';
Expand Down Expand Up @@ -430,7 +430,7 @@ private function getContent($params = '')
*/
private function parse($src, $regexp, $contain)
{
$result = [];
$result = array();

preg_match_all($regexp, $src, $matches);
if (!empty($matches)) {
Expand Down