Skip to content
Merged
Show file tree
Hide file tree
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
4 changes: 2 additions & 2 deletions src/Commands/ResourceFileFromDatabaseCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ protected function getParser()

$class = sprintf('CrestApps\CodeGenerator\DatabaseParsers\%sParser', ucfirst($driver));

return new $class($this->getTableName(), $this->getDatabaseName(), $this->getLangugaes());
return new $class($this->getTableName(), $this->getDatabaseName(), $this->getLanguages());
}

/**
Expand Down Expand Up @@ -184,7 +184,7 @@ protected function getTableName()
*
* @return array
*/
protected function getLangugaes()
protected function getLanguages()
{
return Helpers::convertStringToArray($this->option('translation-for'));
}
Expand Down
8 changes: 4 additions & 4 deletions src/DatabaseParsers/ParserBase.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ abstract class ParserBase
use CommonCommand;

/**
* List of the field to exclude from all views.
* List of fields to be excluded from all views.
*
* @var array
*/
Expand Down Expand Up @@ -58,18 +58,18 @@ abstract class ParserBase
protected $fields;

/**
* The langugaes to create labels form.
* The languages to create labels form.
*
* @var array
*/
protected $langugaes;
protected $languages;

/**
* Creates a new field instance.
*
* @param string $tableName
* @param string $databaseName
* @param array $langugaes
* @param array $languages
*
* @return void
*/
Expand Down