Passed
Push — master ( c0e9f0...37b7eb )
by Adrian
02:12
created
src/Traits/SetFields.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
 	 */
25 25
 	public function setField( $fieldName, $fieldValue )
26 26
 	{
27
-		$fieldName = $this->queryStructure->prepare($fieldName);
27
+		$fieldName = $this->queryStructure->prepare( $fieldName );
28 28
 		$valuePdoString = $this->queryStructure->bindParam( $fieldName, $fieldValue );
29 29
 		$this->queryStructure->setElement( QueryStructure::SET_FIELDS, "$fieldName = $valuePdoString" );
30 30
 
Please login to merge, or discard this patch.
src/Traits/SelectFields.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -63,14 +63,14 @@
 block discarded – undo
63 63
 	 */
64 64
 	private function prepareArrayFields( $fieldsArray = array() )
65 65
 	{
66
-		$prepareArray = [];
66
+		$prepareArray = [ ];
67 67
 
68 68
 		foreach ( $fieldsArray as $field ) {
69 69
 			if ( gettype( $field ) !== QueryStructure::ELEMENT_TYPE_STRING )
70 70
 				throw new QueryException( 'Invalid select field type!', QueryException::QUERY_ERROR_SELECT_INVALID_FIELD );
71 71
 
72 72
 			if ( '' !== trim( $field ) )
73
-				$prepareArray[] = $this->queryStructure->prepare( $field );
73
+				$prepareArray[ ] = $this->queryStructure->prepare( $field );
74 74
 		}
75 75
 
76 76
 		return $prepareArray;
Please login to merge, or discard this patch.
src/Traits/WhereAndHavingBuilder.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -139,7 +139,7 @@  discard block
 block discarded – undo
139 139
 
140 140
 		$pdoArray = array();
141 141
 		foreach ( $value as $item ) {
142
-			$pdoArray[] = $this->queryStructure->bindParam( 'a', $item );
142
+			$pdoArray[ ] = $this->queryStructure->bindParam( 'a', $item );
143 143
 		}
144 144
 		$body = [
145 145
 			$field,
@@ -216,7 +216,7 @@  discard block
 block discarded – undo
216 216
 			throw new QueryException( 'Invalid where array!', QueryException::QUERY_ERROR_WHERE_INVALID_PARAM_ARRAY );
217 217
 
218 218
 		if ( count( $param ) == 2 )
219
-			$param[] = '=';
219
+			$param[ ] = '=';
220 220
 
221 221
 		$param[ 0 ] = $this->queryStructure->prepare( $param[ 0 ] );
222 222
 		$param[ 2 ] = trim( strtoupper( $param[ 2 ] ) );
Please login to merge, or discard this patch.
src/Traits/OrderBy.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -24,9 +24,9 @@  discard block
 block discarded – undo
24 24
 	 * @return $this
25 25
 	 * @throws QueryException
26 26
 	 */
27
-	public function orderBy( $column, array $allowedColumns = [] )
27
+	public function orderBy( $column, array $allowedColumns = [ ] )
28 28
 	{
29
-		$column = $this->queryStructure->prepare($column);
29
+		$column = $this->queryStructure->prepare( $column );
30 30
 
31 31
 		if ( !$this->validateColumn( $column, $allowedColumns ) )
32 32
 			throw new QueryException( 'Invalid column name in ORDER BY clause', QueryException::QUERY_ERROR_INVALID_COLUMN_NAME );
@@ -43,9 +43,9 @@  discard block
 block discarded – undo
43 43
 	 * @return $this
44 44
 	 * @throws QueryException
45 45
 	 */
46
-	public function orderByDesc( $column, array $allowedColumns = [] )
46
+	public function orderByDesc( $column, array $allowedColumns = [ ] )
47 47
 	{
48
-		$column = $this->queryStructure->prepare($column);
48
+		$column = $this->queryStructure->prepare( $column );
49 49
 
50 50
 		if ( !$this->validateColumn( $column, $allowedColumns ) )
51 51
 			throw new QueryException( 'Invalid column name in ORDER BY clause', QueryException::QUERY_ERROR_INVALID_COLUMN_NAME );
Please login to merge, or discard this patch.