Skip to content
This repository was archived by the owner on Sep 20, 2021. It is now read-only.

Commit 2bcfc76

Browse files
committed
Quality: Run devtools:cs.
1 parent b54ba93 commit 2bcfc76

19 files changed

Lines changed: 55 additions & 55 deletions

Dal.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
* New BSD License
1010
*
11-
* Copyright © 2007-2015, Hoa community. All rights reserved.
11+
* Copyright © 2007-2016, Hoa community. All rights reserved.
1212
*
1313
* Redistribution and use in source and binary forms, with or without
1414
* modification, are permitted provided that the following conditions are met:
@@ -45,7 +45,7 @@
4545
*
4646
* The higher class of the Database Abstract Layer. It wrappes all DAL.
4747
*
48-
* @copyright Copyright © 2007-2015 Hoa community
48+
* @copyright Copyright © 2007-2016 Hoa community
4949
* @license New BSD License
5050
*/
5151
class Dal implements Zformat\Parameterizable, Event\Source
@@ -129,7 +129,7 @@ class Dal implements Zformat\Parameterizable, Event\Source
129129
* @param array $connectionParameters The layer connection parameter.
130130
* @return void
131131
*/
132-
private function __construct(Array $connectionParameters)
132+
private function __construct(array $connectionParameters)
133133
{
134134
$this->_connectionParameters = $connectionParameters;
135135

@@ -148,7 +148,7 @@ private function __construct(Array $connectionParameters)
148148
* @param array $parameters Parameters.
149149
* @return void
150150
*/
151-
public static function initializeParameters(Array $parameters = [])
151+
public static function initializeParameters(array $parameters = [])
152152
{
153153
self::$_parameters = new Zformat\Parameter(
154154
__CLASS__,
@@ -189,7 +189,7 @@ public static function getInstance(
189189
$dsn = null,
190190
$username = null,
191191
$password = null,
192-
Array $driverOptions = []
192+
array $driverOptions = []
193193
) {
194194
if (null === self::$_parameters) {
195195
self::initializeParameters();
@@ -433,7 +433,7 @@ public function lastInsertId($name = null)
433433
* @return \Hoa\Database\DalStatement
434434
* @throws \Hoa\Database\Exception
435435
*/
436-
public function prepare($statement, Array $options = [])
436+
public function prepare($statement, array $options = [])
437437
{
438438
return new DalStatement(
439439
$this->getDal()->prepare(
@@ -517,7 +517,7 @@ public function getAvailableDrivers()
517517
* @return array
518518
* @throws \Hoa\Database\Exception
519519
*/
520-
public function setAttributes(Array $attributes)
520+
public function setAttributes(array $attributes)
521521
{
522522
return $this->getDal()->setAttributes($attributes);
523523
}

DalStatement.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
* New BSD License
1010
*
11-
* Copyright © 2007-2015, Hoa community. All rights reserved.
11+
* Copyright © 2007-2016, Hoa community. All rights reserved.
1212
*
1313
* Redistribution and use in source and binary forms, with or without
1414
* modification, are permitted provided that the following conditions are met:
@@ -41,7 +41,7 @@
4141
*
4242
* The higher class that represents a DAL statement.
4343
*
44-
* @copyright Copyright © 2007-2015 Hoa community
44+
* @copyright Copyright © 2007-2016 Hoa community
4545
* @license New BSD License
4646
*/
4747
class DalStatement
@@ -102,7 +102,7 @@ protected function getStatement()
102102
* @return \Hoa\Database\DalStatement
103103
* @throws \Hoa\Database\Exception
104104
*/
105-
public function execute(Array $bindParameters = [])
105+
public function execute(array $bindParameters = [])
106106
{
107107
if (empty($bindParameters)) {
108108
return $this->getStatement()->execute();

Exception.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
* New BSD License
1010
*
11-
* Copyright © 2007-2015, Hoa community. All rights reserved.
11+
* Copyright © 2007-2016, Hoa community. All rights reserved.
1212
*
1313
* Redistribution and use in source and binary forms, with or without
1414
* modification, are permitted provided that the following conditions are met:
@@ -43,7 +43,7 @@
4343
*
4444
* Extending the \Hoa\Exception\Exception class.
4545
*
46-
* @copyright Copyright © 2007-2015 Hoa community
46+
* @copyright Copyright © 2007-2016 Hoa community
4747
* @license New BSD License
4848
*/
4949
class Exception extends HoaException

IDal/Wrapper.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
* New BSD License
1010
*
11-
* Copyright © 2007-2015, Hoa community. All rights reserved.
11+
* Copyright © 2007-2016, Hoa community. All rights reserved.
1212
*
1313
* Redistribution and use in source and binary forms, with or without
1414
* modification, are permitted provided that the following conditions are met:
@@ -41,7 +41,7 @@
4141
*
4242
* Interface of a DAL wrapper.
4343
*
44-
* @copyright Copyright © 2007-2015 Hoa community
44+
* @copyright Copyright © 2007-2016 Hoa community
4545
* @license New BSD License
4646
*/
4747
interface Wrapper
@@ -60,7 +60,7 @@ public function __construct(
6060
$dsn,
6161
$username,
6262
$password,
63-
Array $driverOptions = []
63+
array $driverOptions = []
6464
);
6565

6666
/**
@@ -107,7 +107,7 @@ public function lastInsertId($name = null);
107107
* @return \Hoa\Database\IDal\WrapperStatement
108108
* @throws \Hoa\Database\Exception
109109
*/
110-
public function prepare($statement, Array $options = []);
110+
public function prepare($statement, array $options = []);
111111

112112
/**
113113
* Quote a string for use in a query.
@@ -163,7 +163,7 @@ public function getAvailableDrivers();
163163
* @return array
164164
* @throws \Hoa\Database\Exception
165165
*/
166-
public function setAttributes(Array $attributes);
166+
public function setAttributes(array $attributes);
167167

168168
/**
169169
* Set a specific attribute.

IDal/WrapperStatement.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
* New BSD License
1010
*
11-
* Copyright © 2007-2015, Hoa community. All rights reserved.
11+
* Copyright © 2007-2016, Hoa community. All rights reserved.
1212
*
1313
* Redistribution and use in source and binary forms, with or without
1414
* modification, are permitted provided that the following conditions are met:
@@ -41,7 +41,7 @@
4141
*
4242
* Interface of a DAL statement wrapper.
4343
*
44-
* @copyright Copyright © 2007-2015 Hoa community
44+
* @copyright Copyright © 2007-2016 Hoa community
4545
* @license New BSD License
4646
*/
4747
interface WrapperStatement
@@ -54,7 +54,7 @@ interface WrapperStatement
5454
* @return \Hoa\Database\IDal\WrapperStatement
5555
* @throws \Hoa\Database\Exception
5656
*/
57-
public function execute(Array $bindParameters = []);
57+
public function execute(array $bindParameters = []);
5858

5959
/**
6060
* Bind a parameter to te specified variable name.

Layer/Pdo/Pdo.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
* New BSD License
1010
*
11-
* Copyright © 2007-2015, Hoa community. All rights reserved.
11+
* Copyright © 2007-2016, Hoa community. All rights reserved.
1212
*
1313
* Redistribution and use in source and binary forms, with or without
1414
* modification, are permitted provided that the following conditions are met:
@@ -44,7 +44,7 @@
4444
*
4545
* Wrap PDO.
4646
*
47-
* @copyright Copyright © 2007-2015 Hoa community
47+
* @copyright Copyright © 2007-2016 Hoa community
4848
* @license New BSD License
4949
*/
5050
class Pdo implements Database\IDal\Wrapper
@@ -72,7 +72,7 @@ public function __construct(
7272
$dsn,
7373
$username,
7474
$password,
75-
Array $driverOptions = []
75+
array $driverOptions = []
7676
) {
7777
if (false === extension_loaded('pdo')) {
7878
throw new Database\Exception(
@@ -191,7 +191,7 @@ public function lastInsertId($name = null)
191191
* @return \Hoa\Database\Layer\Pdo\Statement
192192
* @throws \Hoa\Database\Exception
193193
*/
194-
public function prepare($statement, Array $options = [])
194+
public function prepare($statement, array $options = [])
195195
{
196196
$handle = $this->getConnection()->prepare($statement);
197197

@@ -289,7 +289,7 @@ public function getAvailableDrivers()
289289
* @return array
290290
* @throws \Hoa\Database\Exception
291291
*/
292-
public function setAttributes(Array $attributes)
292+
public function setAttributes(array $attributes)
293293
{
294294
$out = true;
295295

Layer/Pdo/Statement.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
* New BSD License
1010
*
11-
* Copyright © 2007-2015, Hoa community. All rights reserved.
11+
* Copyright © 2007-2016, Hoa community. All rights reserved.
1212
*
1313
* Redistribution and use in source and binary forms, with or without
1414
* modification, are permitted provided that the following conditions are met:
@@ -43,7 +43,7 @@
4343
*
4444
* Wrap PDOStatement.
4545
*
46-
* @copyright Copyright © 2007-2015 Hoa community
46+
* @copyright Copyright © 2007-2016 Hoa community
4747
* @license New BSD License
4848
*/
4949
class Statement implements Database\IDal\WrapperStatement
@@ -102,7 +102,7 @@ protected function getStatement()
102102
* @return \Hoa\Database\Layer\Pdo\Statement
103103
* @throws \Hoa\Database\Exception
104104
*/
105-
public function execute(Array $bindParameters = null)
105+
public function execute(array $bindParameters = null)
106106
{
107107
if (false === $this->getStatement()->execute($bindParameters)) {
108108
throw new Database\Exception(

Query/Delete.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
* New BSD License
1010
*
11-
* Copyright © 2007-2015, Hoa community. All rights reserved.
11+
* Copyright © 2007-2016, Hoa community. All rights reserved.
1212
*
1313
* Redistribution and use in source and binary forms, with or without
1414
* modification, are permitted provided that the following conditions are met:
@@ -41,7 +41,7 @@
4141
*
4242
* Build a DELETE query.
4343
*
44-
* @copyright Copyright © 2007-2015 Hoa community
44+
* @copyright Copyright © 2007-2016 Hoa community
4545
* @license New BSD License
4646
*/
4747
class Delete extends Where implements Dml

Query/Dml.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
* New BSD License
1010
*
11-
* Copyright © 2007-2015, Hoa community. All rights reserved.
11+
* Copyright © 2007-2016, Hoa community. All rights reserved.
1212
*
1313
* Redistribution and use in source and binary forms, with or without
1414
* modification, are permitted provided that the following conditions are met:
@@ -41,7 +41,7 @@
4141
*
4242
* Represent Data Manipulation Language queries.
4343
*
44-
* @copyright Copyright © 2007-2015 Hoa community
44+
* @copyright Copyright © 2007-2016 Hoa community
4545
* @license New BSD License
4646
*/
4747
interface Dml

Query/EncloseIdentifier.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
* New BSD License
1010
*
11-
* Copyright © 2007-2015, Hoa community. All rights reserved.
11+
* Copyright © 2007-2016, Hoa community. All rights reserved.
1212
*
1313
* Redistribution and use in source and binary forms, with or without
1414
* modification, are permitted provided that the following conditions are met:
@@ -41,7 +41,7 @@
4141
*
4242
* Enclose identifier feature.
4343
*
44-
* @copyright Copyright © 2007-2015 Hoa community
44+
* @copyright Copyright © 2007-2016 Hoa community
4545
* @license New BSD License
4646
*/
4747
trait EncloseIdentifier

0 commit comments

Comments
 (0)