diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/Components/CreateDefinition.php | 2 | ||||
-rw-r--r-- | src/Core.php | 10 | ||||
-rw-r--r-- | src/Translator.php | 10 |
3 files changed, 8 insertions, 14 deletions
diff --git a/src/Components/CreateDefinition.php b/src/Components/CreateDefinition.php index e40fc7d..aef8c18 100644 --- a/src/Components/CreateDefinition.php +++ b/src/Components/CreateDefinition.php @@ -221,7 +221,7 @@ class CreateDefinition extends Component $parser->error( 'A symbol name was expected! ' . 'A reserved keyword can not be used ' - . 'as a column name without backquotes.' , + . 'as a column name without backquotes.', $token ); diff --git a/src/Core.php b/src/Core.php index 2cb15cc..8af49a4 100644 --- a/src/Core.php +++ b/src/Core.php @@ -2,14 +2,12 @@ /** * Defines the core helper infrastructure of the library. - * - * @package SqlParser */ + namespace SqlParser; class Core { - /** * Whether errors should throw exceptions or just be stored. * @@ -35,11 +33,9 @@ class Core /** * Creates a new error log. * - * @param Exception $error The error exception. - * - * @throws Exception Throws the exception, if strict mode is enabled. + * @param Exception $error the error exception * - * @return void + * @throws Exception throws the exception, if strict mode is enabled */ public function error($error) { diff --git a/src/Translator.php b/src/Translator.php index 81ea94a..c2b76aa 100644 --- a/src/Translator.php +++ b/src/Translator.php @@ -2,9 +2,8 @@ /** * Defines the localization helper infrastructure of the library. - * - * @package SqlParser */ + namespace SqlParser; use MoTranslator; @@ -26,9 +25,7 @@ class Translator private static $translator; /** - * Loads transator - * - * @return void + * Loads transator. */ public static function load() { @@ -55,7 +52,7 @@ class Translator } /** - * Translates a string + * Translates a string. * * @param string $msgid String to be translated * @@ -64,6 +61,7 @@ class Translator public static function gettext($msgid) { self::load(); + return self::$translator->gettext($msgid); } } |