@@ -33,6 +33,7 @@ |
||
| 33 | 33 | |
| 34 | 34 | /** |
| 35 | 35 | * A SQL statement that has been formatted per the PDO prepared statement syntax |
| 36 | + * @return string |
|
| 36 | 37 | */ |
| 37 | 38 | public function getSql(); |
| 38 | 39 | |
@@ -72,7 +72,7 @@ |
||
| 72 | 72 | /** |
| 73 | 73 | * adds a where statement to a given statement |
| 74 | 74 | * @param WhereStatementInterface $where where statement to be used added |
| 75 | - * @return inherit bubbling |
|
| 75 | + * @return WhereTrait bubbling |
|
| 76 | 76 | * @since v1.0.0 |
| 77 | 77 | */ |
| 78 | 78 | public function setWhere(WhereStatementInterface $where = null) |
@@ -42,7 +42,7 @@ |
||
| 42 | 42 | |
| 43 | 43 | /** |
| 44 | 44 | * provides a means for functional access to the objects of this library |
| 45 | - * @return \static a new instance of this object |
|
| 45 | + * @return Query a new instance of this object |
|
| 46 | 46 | * @since v1.0.0 |
| 47 | 47 | */ |
| 48 | 48 | public static function with() |
@@ -36,6 +36,7 @@ |
||
| 36 | 36 | * returns just the expression of a PDO prepared where statement |
| 37 | 37 | * |
| 38 | 38 | * i.e. id = :id |
| 39 | + * @return string |
|
| 39 | 40 | */ |
| 40 | 41 | public function getStatement(); |
| 41 | 42 | |
@@ -98,7 +98,7 @@ |
||
| 98 | 98 | throw new EmptyDatasetException(); |
| 99 | 99 | } |
| 100 | 100 | |
| 101 | - $sets = array_map(function ($value) { |
|
| 101 | + $sets = array_map(function($value) { |
|
| 102 | 102 | return sprintf('%1$s = :%1$s', $value); |
| 103 | 103 | }, array_keys($this->getData())); |
| 104 | 104 | $where = $this->getWhereStatement(); |
@@ -71,7 +71,7 @@ |
||
| 71 | 71 | $suffix = $keyPrefix = ($this->getUseParanthesis() ? ")" : ""); |
| 72 | 72 | |
| 73 | 73 | $glue = $keyPrefix . ' ' . $this->getFieldOperator() . ' ' . $keySuffix; |
| 74 | - return $prefix . implode($glue, array_map(function ($key, $value) use ($keySalt) { |
|
| 74 | + return $prefix . implode($glue, array_map(function($key, $value) use ($keySalt) { |
|
| 75 | 75 | $saltedKey = $key . "-" . $keySalt; |
| 76 | 76 | $this->addData($saltedKey, $value); |
| 77 | 77 | return sprintf('%s = :%s', $key, $saltedKey); |