@@ -30,7 +30,7 @@ |
||
30 | 30 | |
31 | 31 | public function getWhereType(); |
32 | 32 | |
33 | - public function setWhere($field,$value = false); |
|
33 | + public function setWhere($field, $value = false); |
|
34 | 34 | |
35 | 35 | public function setLimit($limit); |
36 | 36 |
@@ -14,13 +14,13 @@ |
||
14 | 14 | */ |
15 | 15 | interface QueryBuilderInterface { |
16 | 16 | |
17 | - public function getResultQuery($table,\SimpleORM\ISpecificationCriteria $Criteria); |
|
17 | + public function getResultQuery($table, \SimpleORM\ISpecificationCriteria $Criteria); |
|
18 | 18 | |
19 | - public function update($table,array $data,$where = []); |
|
19 | + public function update($table, array $data, $where = []); |
|
20 | 20 | |
21 | - public function insert($table,array $data); |
|
21 | + public function insert($table, array $data); |
|
22 | 22 | |
23 | 23 | public function insert_id(); |
24 | 24 | |
25 | - public function delete($table,$where = []); |
|
25 | + public function delete($table, $where = []); |
|
26 | 26 | } |
@@ -1,7 +1,7 @@ |
||
1 | 1 | <?php |
2 | 2 | $loader = require_once __DIR__.'/../vendor/autoload.php'; |
3 | 3 | |
4 | -class TestHelper{ |
|
4 | +class TestHelper { |
|
5 | 5 | |
6 | 6 | /** |
7 | 7 | * получение защищенного свойства |
@@ -45,7 +45,7 @@ |
||
45 | 45 | 'primary' => true |
46 | 46 | ] |
47 | 47 | ) |
48 | - ->addMappingField('name','cty_name') |
|
48 | + ->addMappingField('name', 'cty_name') |
|
49 | 49 | ; |
50 | 50 | |
51 | 51 | } |
@@ -31,7 +31,7 @@ discard block |
||
31 | 31 | */ |
32 | 32 | public function createEntity(array $row) { |
33 | 33 | $Group = $this->DI->get('UserGroupMapper')->createEntity([]); |
34 | - return $this->buildEntity(new User('testname','[email protected]','asdftyasdvh21267g',$Group), $row); |
|
34 | + return $this->buildEntity(new User('testname', '[email protected]', 'asdftyasdvh21267g', $Group), $row); |
|
35 | 35 | } |
36 | 36 | |
37 | 37 | /** |
@@ -46,7 +46,7 @@ discard block |
||
46 | 46 | 'primary' => true |
47 | 47 | ] |
48 | 48 | ) |
49 | - ->addMappingField('name','usr_name') |
|
49 | + ->addMappingField('name', 'usr_name') |
|
50 | 50 | ->addMappingField('email', 'usr_email') |
51 | 51 | ->addMappingField('password', 'usr_password') |
52 | 52 | ->addMappingField('group', [ |
@@ -18,7 +18,7 @@ |
||
18 | 18 | |
19 | 19 | protected $title; |
20 | 20 | |
21 | - function __construct($code,$title){ |
|
21 | + function __construct($code, $title) { |
|
22 | 22 | $this->setCode($code); |
23 | 23 | $this->setTitle($title); |
24 | 24 | } |
@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | * @return type |
31 | 31 | */ |
32 | 32 | public function createEntity(array $row) { |
33 | - return $this->buildEntity(new UserGroup('admin','admin test'), $row); |
|
33 | + return $this->buildEntity(new UserGroup('admin', 'admin test'), $row); |
|
34 | 34 | } |
35 | 35 | |
36 | 36 | /** |
@@ -45,8 +45,8 @@ discard block |
||
45 | 45 | 'primary' => true |
46 | 46 | ] |
47 | 47 | ) |
48 | - ->addMappingField('title','grp_title') |
|
49 | - ->addMappingField('code','grp_code') |
|
48 | + ->addMappingField('title', 'grp_title') |
|
49 | + ->addMappingField('code', 'grp_code') |
|
50 | 50 | ; |
51 | 51 | |
52 | 52 | } |
@@ -24,20 +24,20 @@ |
||
24 | 24 | |
25 | 25 | $db = new \SimpleORM\Adapter\CodeigniterQueryBuilder(get_instance()->db); |
26 | 26 | |
27 | - $this->getContainer()->add('UserMapper','Test\Domain\User\UserMapper') |
|
27 | + $this->getContainer()->add('UserMapper', 'Test\Domain\User\UserMapper') |
|
28 | 28 | ->withArgument($this->getContainer()) |
29 | 29 | ->withArgument($db) |
30 | 30 | ->withArgument($__AR2['autoresource_db']); |
31 | 31 | |
32 | - $this->getContainer()->add('UserGroupMapper','Test\Domain\UserGroup\UserGroupMapper') |
|
32 | + $this->getContainer()->add('UserGroupMapper', 'Test\Domain\UserGroup\UserGroupMapper') |
|
33 | 33 | ->withArgument($this->getContainer()) |
34 | 34 | ->withArgument($db) |
35 | 35 | ->withArgument($__AR2['autoresource_db']); |
36 | - $this->getContainer()->add('UserAddressMapper','Test\Domain\UserAddress\UserAddressMapper') |
|
36 | + $this->getContainer()->add('UserAddressMapper', 'Test\Domain\UserAddress\UserAddressMapper') |
|
37 | 37 | ->withArgument($this->getContainer()) |
38 | 38 | ->withArgument($db) |
39 | 39 | ->withArgument($__AR2['autoresource_db']); |
40 | - $this->getContainer()->add('CityMapper','Test\Domain\City\CityMapper') |
|
40 | + $this->getContainer()->add('CityMapper', 'Test\Domain\City\CityMapper') |
|
41 | 41 | ->withArgument($this->getContainer()) |
42 | 42 | ->withArgument($db) |
43 | 43 | ->withArgument($__AR2['autoresource_db']); |
@@ -22,7 +22,7 @@ |
||
22 | 22 | |
23 | 23 | protected $city; |
24 | 24 | |
25 | - function __construct(City $City,$code,$street) { |
|
25 | + function __construct(City $City, $code, $street) { |
|
26 | 26 | $this->setCity($City); |
27 | 27 | $this->setCode($code); |
28 | 28 | $this->setStreet($street); |