@@ -62,11 +62,11 @@ discard block |
||
62 | 62 | |
63 | 63 | private function normalizeFields( $fields ) { |
64 | 64 | $array = Arrays::flattenValues( $fields ); |
65 | - $array = (array)$array; |
|
65 | + $array = ( array ) $array; |
|
66 | 66 | $return = array(); |
67 | 67 | array_walk_recursive( $array, function( $a ) use ( &$return ) { |
68 | 68 | $a = explode( ',', $a ); |
69 | - $return[] = $a; |
|
69 | + $return[ ] = $a; |
|
70 | 70 | } ); |
71 | 71 | |
72 | 72 | return $return; |
@@ -80,7 +80,7 @@ discard block |
||
80 | 80 | return '*'; |
81 | 81 | } |
82 | 82 | |
83 | - return implode( ', ', $this->queryStructure->getElement( QueryStructure::FIELDS )); |
|
83 | + return implode( ', ', $this->queryStructure->getElement( QueryStructure::FIELDS ) ); |
|
84 | 84 | } |
85 | 85 | |
86 | 86 | } |
87 | 87 | \ No newline at end of file |
@@ -28,9 +28,9 @@ |
||
28 | 28 | */ |
29 | 29 | public function setField( $fieldName, $fieldValue ) |
30 | 30 | { |
31 | - $fieldName = $this->queryStructure->prepare($fieldName); |
|
31 | + $fieldName = $this->queryStructure->prepare( $fieldName ); |
|
32 | 32 | $valuePdoString = $this->queryStructure->bindParam( $fieldName, $fieldValue ); |
33 | - $this->queryStructure->setElement( QueryStructure::SET_FIELDS, $this->queryStructure->prepare($fieldName) . " = $valuePdoString" ); |
|
33 | + $this->queryStructure->setElement( QueryStructure::SET_FIELDS, $this->queryStructure->prepare( $fieldName ) . " = $valuePdoString" ); |
|
34 | 34 | |
35 | 35 | return $this; |
36 | 36 | } |