Skip to content

Commit 5b1af70

Browse files
committed
Apply php-cs-fixer
Signed-off-by: Michal Čihař <[email protected]>
1 parent 7c790bf commit 5b1af70

3 files changed

Lines changed: 8 additions & 14 deletions

File tree

src/Components/CreateDefinition.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ public static function parse(Parser $parser, TokensList $list, array $options =
221221
$parser->error(
222222
'A symbol name was expected! '
223223
. 'A reserved keyword can not be used '
224-
. 'as a column name without backquotes.' ,
224+
. 'as a column name without backquotes.',
225225
$token
226226
);
227227

src/Core.php

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,12 @@
22

33
/**
44
* Defines the core helper infrastructure of the library.
5-
*
6-
* @package SqlParser
75
*/
6+
87
namespace SqlParser;
98

109
class Core
1110
{
12-
1311
/**
1412
* Whether errors should throw exceptions or just be stored.
1513
*
@@ -35,11 +33,9 @@ class Core
3533
/**
3634
* Creates a new error log.
3735
*
38-
* @param Exception $error The error exception.
39-
*
40-
* @throws Exception Throws the exception, if strict mode is enabled.
36+
* @param Exception $error the error exception
4137
*
42-
* @return void
38+
* @throws Exception throws the exception, if strict mode is enabled
4339
*/
4440
public function error($error)
4541
{

src/Translator.php

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,8 @@
22

33
/**
44
* Defines the localization helper infrastructure of the library.
5-
*
6-
* @package SqlParser
75
*/
6+
87
namespace SqlParser;
98

109
use MoTranslator;
@@ -26,9 +25,7 @@ class Translator
2625
private static $translator;
2726

2827
/**
29-
* Loads transator
30-
*
31-
* @return void
28+
* Loads transator.
3229
*/
3330
public static function load()
3431
{
@@ -55,7 +52,7 @@ public static function load()
5552
}
5653

5754
/**
58-
* Translates a string
55+
* Translates a string.
5956
*
6057
* @param string $msgid String to be translated
6158
*
@@ -64,6 +61,7 @@ public static function load()
6461
public static function gettext($msgid)
6562
{
6663
self::load();
64+
6765
return self::$translator->gettext($msgid);
6866
}
6967
}

0 commit comments

Comments
 (0)