mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-03 22:12:37 +08:00
Added missing phpdoc
This commit is contained in:
@ -98,6 +98,8 @@ class FixtureController extends Controller
|
||||
* yii fixture/load "*, -User, -UserProfile"
|
||||
* ```
|
||||
*
|
||||
* @param array $fixturesInput
|
||||
* @return int return code
|
||||
* @throws Exception if the specified fixture does not exist.
|
||||
*/
|
||||
public function actionLoad(array $fixturesInput = [])
|
||||
@ -175,6 +177,8 @@ class FixtureController extends Controller
|
||||
* yii fixture/unload "*, -User, -UserProfile"
|
||||
* ```
|
||||
*
|
||||
* @param array $fixturesInput
|
||||
* @return int return code
|
||||
* @throws Exception if the specified fixture does not exist.
|
||||
*/
|
||||
public function actionUnload(array $fixturesInput = [])
|
||||
|
||||
@ -640,6 +640,7 @@ EOD;
|
||||
* @param boolean $sort if translations should be sorted
|
||||
* @param string $category message category
|
||||
* @param boolean $markUnused if obsolete translations should be marked
|
||||
* @return int exit code
|
||||
*/
|
||||
protected function saveMessagesCategoryToPHP($messages, $fileName, $overwrite, $removeUnused, $sort, $category, $markUnused)
|
||||
{
|
||||
@ -650,7 +651,7 @@ EOD;
|
||||
ksort($existingMessages);
|
||||
if (array_keys($existingMessages) === $messages && (!$sort || array_keys($rawExistingMessages) === $messages)) {
|
||||
$this->stdout("Nothing new in \"$category\" category... Nothing to save.\n\n", Console::FG_GREEN);
|
||||
return;
|
||||
return self::EXIT_CODE_NORMAL;
|
||||
}
|
||||
unset($rawExistingMessages);
|
||||
$merged = [];
|
||||
|
||||
@ -243,6 +243,7 @@ class Schema extends \yii\db\Schema
|
||||
/**
|
||||
* Collects the foreign key column details for the given table.
|
||||
* @param TableSchema $table the table metadata
|
||||
* @throws \Exception
|
||||
*/
|
||||
protected function findConstraints($table)
|
||||
{
|
||||
|
||||
@ -346,6 +346,7 @@ class DateValidator extends Validator
|
||||
* @param string $value string representing date
|
||||
* @param string $format the expected date format
|
||||
* @return integer|boolean a UNIX timestamp or `false` on failure.
|
||||
* @throws InvalidConfigException
|
||||
*/
|
||||
private function parseDateValueIntl($value, $format)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user