Skip to content

Commit 8f19b8f

Browse files
committed
Updated coding style to follow PSR-2 coding standards.
1 parent 1415469 commit 8f19b8f

38 files changed

+99
-120
lines changed

src/Component.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,9 @@ abstract class Component
3939
* @return mixed
4040
*/
4141
public static function parse(
42-
Parser $parser, TokensList $list, array $options = array()
42+
Parser $parser,
43+
TokensList $list,
44+
array $options = array()
4345
) {
4446
// This method should be abstract, but it can't be both static and
4547
// abstract.

src/Components/AlterOperation.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,6 @@ public static function parse(Parser $parser, TokensList $list, array $options =
137137
$state = 0;
138138

139139
for (; $list->idx < $list->count; ++$list->idx) {
140-
141140
/**
142141
* Token parsed at this moment.
143142
*

src/Components/Array2d.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ public static function parse(Parser $parser, TokensList $list, array $options =
5858
$state = 0;
5959

6060
for (; $list->idx < $list->count; ++$list->idx) {
61-
6261
/**
6362
* Token parsed at this moment.
6463
*

src/Components/ArrayObj.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,6 @@ public static function parse(Parser $parser, TokensList $list, array $options =
7979
$state = 0;
8080

8181
for (; $list->idx < $list->count; ++$list->idx) {
82-
8382
/**
8483
* Token parsed at this moment.
8584
*

src/Components/Condition.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,6 @@ public static function parse(Parser $parser, TokensList $list, array $options =
111111
$betweenBefore = false;
112112

113113
for (; $list->idx < $list->count; ++$list->idx) {
114-
115114
/**
116115
* Token parsed at this moment.
117116
*

src/Components/CreateDefinition.php

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,12 @@ class CreateDefinition extends Component
126126
* @param bool $isConstraint Whether this field is a constraint or not.
127127
* @param Reference $references References.
128128
*/
129-
public function __construct($name = null, $options = null, $type = null,
130-
$isConstraint = false, $references = null
129+
public function __construct(
130+
$name = null,
131+
$options = null,
132+
$type = null,
133+
$isConstraint = false,
134+
$references = null
131135
) {
132136
$this->name = $name;
133137
$this->options = $options;
@@ -178,7 +182,6 @@ public static function parse(Parser $parser, TokensList $list, array $options =
178182
$state = 0;
179183

180184
for (; $list->idx < $list->count; ++$list->idx) {
181-
182185
/**
183186
* Token parsed at this moment.
184187
*

src/Components/DataType.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,9 @@ class DataType extends Component
7575
* @param array $parameters The parameters (size or possible values).
7676
* @param OptionsArray $options The options of this data type.
7777
*/
78-
public function __construct($name = null, array $parameters = array(),
78+
public function __construct(
79+
$name = null,
80+
array $parameters = array(),
7981
$options = null
8082
) {
8183
$this->name = $name;
@@ -108,7 +110,6 @@ public static function parse(Parser $parser, TokensList $list, array $options =
108110
$state = 0;
109111

110112
for (; $list->idx < $list->count; ++$list->idx) {
111-
112113
/**
113114
* Token parsed at this moment.
114115
*

src/Components/Expression.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,6 @@ public static function parse(Parser $parser, TokensList $list, array $options =
160160
$prev = null;
161161

162162
for (; $list->idx < $list->count; ++$list->idx) {
163-
164163
/**
165164
* Token parsed at this moment.
166165
*
@@ -274,7 +273,6 @@ public static function parse(Parser $parser, TokensList $list, array $options =
274273
// field should be skipped; used to parse table names).
275274
$field = (!empty($options['skipColumn'])) ? 'table' : 'column';
276275
if (!empty($ret->$field)) {
277-
278276
// No alias is expected.
279277
if (!empty($options['noAlias'])) {
280278
break;

src/Components/ExpressionArray.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ public static function parse(Parser $parser, TokensList $list, array $options =
5151
$state = 0;
5252

5353
for (; $list->idx < $list->count; ++$list->idx) {
54-
5554
/**
5655
* Token parsed at this moment.
5756
*

src/Components/FunctionCall.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,6 @@ public static function parse(Parser $parser, TokensList $list, array $options =
8080
$state = 0;
8181

8282
for (; $list->idx < $list->count; ++$list->idx) {
83-
8483
/**
8584
* Token parsed at this moment.
8685
*

0 commit comments

Comments
 (0)