@@ -16,7 +16,7 @@ |
||
16 | 16 | |
17 | 17 | /** |
18 | 18 | * {@inheritdoc} |
19 | - */ |
|
19 | + */ |
|
20 | 20 | public function executeCommand(string $command, array $parameters = array()) |
21 | 21 | { |
22 | 22 | $this->executeParameterisedQuery($command, $parameters); |
@@ -30,7 +30,7 @@ |
||
30 | 30 | { |
31 | 31 | $queryResult = $this->dbAdapter->executeQuery($query, $parameters); |
32 | 32 | $entities = []; |
33 | - foreach($queryResult as $resultItem) { |
|
33 | + foreach ($queryResult as $resultItem) { |
|
34 | 34 | $entities[] = $this->entityMapper->map($resultItem, $entityClassName); |
35 | 35 | } |
36 | 36 |
@@ -6,8 +6,8 @@ |
||
6 | 6 | |
7 | 7 | class StripGet implements FieldNameMapperInterface |
8 | 8 | { |
9 | - public function map(string $getterName) : string |
|
10 | - { |
|
11 | - return lcfirst(substr($getterName, 3)); |
|
12 | - } |
|
9 | + public function map(string $getterName) : string |
|
10 | + { |
|
11 | + return lcfirst(substr($getterName, 3)); |
|
12 | + } |
|
13 | 13 | } |
14 | 14 | \ No newline at end of file |
@@ -6,8 +6,8 @@ |
||
6 | 6 | |
7 | 7 | class ToUnderscores implements FieldNameMapperInterface |
8 | 8 | { |
9 | - public function map(string $getterName) : string |
|
10 | - { |
|
11 | - return preg_replace_callback('/[A-Z]/', function($x) { return '_'.strtolower($x[0]); }, lcfirst(substr($getterName, 3))); |
|
12 | - } |
|
9 | + public function map(string $getterName) : string |
|
10 | + { |
|
11 | + return preg_replace_callback('/[A-Z]/', function($x) { return '_'.strtolower($x[0]); }, lcfirst(substr($getterName, 3))); |
|
12 | + } |
|
13 | 13 | } |
14 | 14 | \ No newline at end of file |
@@ -7,5 +7,5 @@ |
||
7 | 7 | */ |
8 | 8 | interface FieldNameMapperInterface |
9 | 9 | { |
10 | - public function map(string $getterName) : string; |
|
10 | + public function map(string $getterName) : string; |
|
11 | 11 | } |
12 | 12 | \ No newline at end of file |