summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Ungureanu <udan1107@gmail.com>2015-07-10 16:55:42 +0300
committerDan Ungureanu <udan1107@gmail.com>2015-07-10 16:55:42 +0300
commit80cc0cd6920e4266b97e915289e6d0c146086968 (patch)
tree43b0d0d6c37309b456e55ddd8ee1b0b5e2e4db35
parent87cc627fdd144543bdac6264ec7c3dd5c3e824ab (diff)
downloadsql-parser-80cc0cd6920e4266b97e915289e6d0c146086968.zip
sql-parser-80cc0cd6920e4266b97e915289e6d0c146086968.tar.gz
sql-parser-80cc0cd6920e4266b97e915289e6d0c146086968.tar.bz2
Fixed coding style.
-rw-r--r--src/Components/Condition.php2
-rw-r--r--src/Components/DataType.php4
-rw-r--r--src/Components/FieldDefinition.php10
-rw-r--r--src/Components/FunctionCall.php2
-rw-r--r--src/Components/Key.php6
-rw-r--r--src/Components/ParameterDefinition.php2
-rw-r--r--src/Components/Reference.php4
7 files changed, 15 insertions, 15 deletions
diff --git a/src/Components/Condition.php b/src/Components/Condition.php
index 643e961..1f57e72 100644
--- a/src/Components/Condition.php
+++ b/src/Components/Condition.php
@@ -200,7 +200,7 @@ class Condition extends Component
public static function build($component)
{
$ret = array();
- foreach ($component as $f) {
+ foreach ($component as $c) {
$ret[] = $f->expr;
}
return implode(' ', $ret);
diff --git a/src/Components/DataType.php b/src/Components/DataType.php
index 60f5bba..e541aaa 100644
--- a/src/Components/DataType.php
+++ b/src/Components/DataType.php
@@ -71,8 +71,8 @@ class DataType extends Component
/**
* Constructor.
*
- * @param string $name The name of this data type.
- * @param array $parameters The parameters (size or possible values).
+ * @param string $name The name of this data type.
+ * @param array $parameters The parameters (size or possible values).
* @param OptionsArray $options The options of this data type.
*/
public function __construct($name = null, array $parameters = array(),
diff --git a/src/Components/FieldDefinition.php b/src/Components/FieldDefinition.php
index 97cda27..9fd494c 100644
--- a/src/Components/FieldDefinition.php
+++ b/src/Components/FieldDefinition.php
@@ -94,11 +94,11 @@ class FieldDefinition extends Component
/**
* Constructor.
*
- * @param string $name The name of the field.
- * @param OptionsArray $options The options of this field.
+ * @param string $name The name of the field.
+ * @param OptionsArray $options The options of this field.
* @param DataType|Key $type The data type of this field or the key.
- * @param bool $isConstraint Whether this field is a constraint or not.
- * @param Reference $references References.
+ * @param bool $isConstraint Whether this field is a constraint or not.
+ * @param Reference $references References.
*/
public function __construct($name = null, $options = null, $type = null,
$isConstraint = false, $references = null
@@ -232,7 +232,7 @@ class FieldDefinition extends Component
{
$ret = array();
- foreach ($component as $f) {
+ foreach ($component as $c) {
$tmp = '';
if ($f->isConstraint) {
diff --git a/src/Components/FunctionCall.php b/src/Components/FunctionCall.php
index 572b3f8..b86eeb8 100644
--- a/src/Components/FunctionCall.php
+++ b/src/Components/FunctionCall.php
@@ -42,7 +42,7 @@ class FunctionCall extends Component
/**
* Constructor.
*
- * @param string $name The name of the function to be called.
+ * @param string $name The name of the function to be called.
* @param array|ArrayObj $parameters The parameters of this function.
*/
public function __construct($name = null, $parameters = null)
diff --git a/src/Components/Key.php b/src/Components/Key.php
index a79feef..bb8bbf0 100644
--- a/src/Components/Key.php
+++ b/src/Components/Key.php
@@ -70,9 +70,9 @@ class Key extends Component
/**
* Constructor.
*
- * @param string $name The name of the key.
- * @param array $columns The columns covered by this key.
- * @param string $type The type of this key.
+ * @param string $name The name of the key.
+ * @param array $columns The columns covered by this key.
+ * @param string $type The type of this key.
* @param OptionsArray $options The options of this key.
*/
public function __construct($name = null, array $columns = array(),
diff --git a/src/Components/ParameterDefinition.php b/src/Components/ParameterDefinition.php
index a089c3e..3116b24 100644
--- a/src/Components/ParameterDefinition.php
+++ b/src/Components/ParameterDefinition.php
@@ -145,7 +145,7 @@ class ParameterDefinition extends Component
public static function build($component)
{
$ret = array();
- foreach ($component as $f) {
+ foreach ($component as $c) {
$tmp = '';
if (!empty($f->inOut)) {
$tmp .= $f->inOut . ' ';
diff --git a/src/Components/Reference.php b/src/Components/Reference.php
index fef8fa4..fa46887 100644
--- a/src/Components/Reference.php
+++ b/src/Components/Reference.php
@@ -61,8 +61,8 @@ class Reference extends Component
/**
* Constructor.
*
- * @param string $table The name of the table referenced.
- * @param array $columns The columns referenced.
+ * @param string $table The name of the table referenced.
+ * @param array $columns The columns referenced.
* @param OptionsArray $options The options.
*/
public function __construct($table = null, array $columns = array(), $options = null)