Passed
Push — master ( 6b115b...a9306a )
by Adrian
01:37
created
src/DB/DbService.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
 	/**
47 47
 	 * @var array
48 48
 	 */
49
-	private $parameters = [];
49
+	private $parameters = [ ];
50 50
 
51 51
 	/**
52 52
 	 * @var string;
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
 		$column = null;
126 126
 
127 127
 		foreach ( $Columns as $cells ) {
128
-			$column[] = $cells[ 0 ];
128
+			$column[ ] = $cells[ 0 ];
129 129
 		}
130 130
 
131 131
 		return $column;
@@ -209,7 +209,7 @@  discard block
 block discarded – undo
209 209
 	 * @param array $parameters
210 210
 	 * @throws DbException
211 211
 	 */
212
-	private function queryInit( $query, $parameters = [] )
212
+	private function queryInit( $query, $parameters = [ ] )
213 213
 	{
214 214
 		$this->lastStatement = self::getQueryStatement( $query );
215 215
 		$this->createPdoConnection();
@@ -220,7 +220,7 @@  discard block
 block discarded – undo
220 220
 			 * Prepare query
221 221
 			 */
222 222
 			$this->sQuery = $this->pdo->prepare( $query );
223
-			$this->prepareParams($parameters);
223
+			$this->prepareParams( $parameters );
224 224
 			$this->pdoBindValues();
225 225
 			$this->sQuery->execute();
226 226
 			if ( DbConfig::getInstance()->isEnableLogQueryDuration() ) {
@@ -246,7 +246,7 @@  discard block
 block discarded – undo
246 246
 			$this->bindMore( $parameters );
247 247
 		else
248 248
 			foreach ( $parameters as $key => $val )
249
-				$this->parameters[] = array( $key + 1, $val );
249
+				$this->parameters[ ] = array( $key + 1, $val );
250 250
 	}
251 251
 
252 252
 	private function pdoBindValues()
@@ -288,7 +288,7 @@  discard block
 block discarded – undo
288 288
 	 */
289 289
 	public function bind( $para, $value )
290 290
 	{
291
-		$this->parameters[] = [ ":" . $para, $value ];
291
+		$this->parameters[ ] = [ ":" . $para, $value ];
292 292
 	}
293 293
 
294 294
 	public function CloseConnection()
Please login to merge, or discard this patch.
sample/select.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
 $query = QueryBuild::select( 'employees' )
15 15
 	->fields( 'lastName, jobTitle, officeCode' )
16 16
 	->whereEqual( 'jobTitle', "Sales Rep" )
17
-	->whereIn( 'officeCode', [ 2, 3, 4 ] )->orderBy('lastName')->havingEqual('officeCode',2);
17
+	->whereIn( 'officeCode', [ 2, 3, 4 ] )->orderBy( 'lastName' )->havingEqual( 'officeCode', 2 );
18 18
 
19 19
 
20 20
 
Please login to merge, or discard this patch.