diff options
author | Michal Čihař <michal@cihar.com> | 2017-01-06 09:29:30 +0100 |
---|---|---|
committer | Michal Čihař <michal@cihar.com> | 2017-01-06 09:29:30 +0100 |
commit | 5b1af708b73a0288b41e9ccbb1faa69b84579ba6 (patch) | |
tree | 116603c8082988a88454672ac2d5c1121523a3e7 | |
parent | 7c790bf6aa873dce9e872b92a77be4bb741e0321 (diff) | |
download | sql-parser-5b1af708b73a0288b41e9ccbb1faa69b84579ba6.zip sql-parser-5b1af708b73a0288b41e9ccbb1faa69b84579ba6.tar.gz sql-parser-5b1af708b73a0288b41e9ccbb1faa69b84579ba6.tar.bz2 |
Apply php-cs-fixer
Signed-off-by: Michal Čihař <michal@cihar.com>
-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); } } |