Passed
Branch master (4b81e6)
by Adrian
03:33 queued 23s
created
src/Traits/SelectFields.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -62,11 +62,11 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
Please login to merge, or discard this patch.
src/Traits/SetFields.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -28,9 +28,9 @@
 block discarded – undo
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
 	}
Please login to merge, or discard this patch.