Added missing phpdoc

This commit is contained in:
Alexander Makarov
2016-07-30 00:02:51 +03:00
parent 33a45b196c
commit 9b1b4fc5fa
4 changed files with 8 additions and 1 deletions

View File

@ -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 = [])

View File

@ -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 = [];

View File

@ -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)
{

View File

@ -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)
{