代码规范化

This commit is contained in:
thinkphp
2016-08-09 10:35:06 +08:00
parent 8b147f6895
commit 131aaf1357
18 changed files with 60 additions and 75 deletions

View File

@@ -22,7 +22,7 @@ class Command
/** @var Console */
private $console;
private $name;
private $aliases = [];
private $aliases = [];
private $definition;
private $help;
private $description;
@@ -30,8 +30,8 @@ class Command
private $consoleDefinitionMerged = false;
private $consoleDefinitionMergedWithArgs = false;
private $code;
private $synopsis = [];
private $usages = [];
private $synopsis = [];
private $usages = [];
/** @var Input */
protected $input;
@@ -172,7 +172,7 @@ class Command
$statusCode = $this->execute($input, $output);
}
return is_numeric($statusCode) ? (int)$statusCode : 0;
return is_numeric($statusCode) ? (int) $statusCode : 0;
}
/**
@@ -362,7 +362,6 @@ class Command
return $this->help;
}
/**
* 描述信息
* @return string
@@ -465,4 +464,4 @@ class Command
throw new \InvalidArgumentException(sprintf('Command name "%s" is invalid.', $name));
}
}
}
}