Passed
Push — master ( de3595...5928a0 )
by dima
05:09
created
example/Domain/City/CityMapper.php 3 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
 	 * создаем сущность
28 28
 	 * 
29 29
 	 * @param array $row
30
-	 * @return type
30
+	 * @return \SimpleORM\EntityInterface
31 31
 	 */
32 32
 	public function createEntity(array $row) {
33 33
 		return $this->buildEntity(new City(), $row);
Please login to merge, or discard this patch.
Unused Use Statements   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -7,8 +7,7 @@
 block discarded – undo
7 7
 
8 8
 namespace Test\Domain\City;
9 9
 
10
-use 
11
-	SimpleORM\AbstractDataMapper;
10
+use SimpleORM\AbstractDataMapper;
12 11
 
13 12
 /**
14 13
  * Description of PriceMapper
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
45 45
 					'primary'	 => true
46 46
 					]
47 47
 				)
48
-				->addMappingField('name','cty_name')
48
+				->addMappingField('name', 'cty_name')
49 49
 			;
50 50
 
51 51
 	}	
Please login to merge, or discard this patch.
example/Domain/User/User.php 1 patch
Doc Comments   +8 added lines patch added patch discarded remove patch
@@ -22,6 +22,11 @@  discard block
 block discarded – undo
22 22
 	protected $group;
23 23
 	protected $address;
24 24
 			
25
+	/**
26
+	 * @param string $name
27
+	 * @param string $email
28
+	 * @param string $password
29
+	 */
25 30
 	function __construct($name, $email, $password, UserGroup $Group) {
26 31
 		$this->setName($name);
27 32
 		$this->setEmail($email);
@@ -64,6 +69,9 @@  discard block
 block discarded – undo
64 69
 		$this->password = $password;
65 70
 	}
66 71
 
72
+	/**
73
+	 * @param UserGroup $group
74
+	 */
67 75
 	function setGroup($group) {
68 76
 		$this->group = $group;
69 77
 	}
Please login to merge, or discard this patch.
example/Domain/UserAddress/UserAddressMapper.php 3 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
 	 * создаем сущность
28 28
 	 * 
29 29
 	 * @param array $row
30
-	 * @return type
30
+	 * @return \SimpleORM\EntityInterface
31 31
 	 */
32 32
 	public function createEntity(array $row) {
33 33
 		return $this->buildEntity(new UserAddress(), $row);
Please login to merge, or discard this patch.
Unused Use Statements   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -7,8 +7,7 @@
 block discarded – undo
7 7
 
8 8
 namespace Test\Domain\UserAddress;
9 9
 
10
-use 
11
-	SimpleORM\AbstractDataMapper;
10
+use SimpleORM\AbstractDataMapper;
12 11
 
13 12
 /**
14 13
  * Description of PriceMapper
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
45 45
 					'primary'	 => true
46 46
 					]
47 47
 				)
48
-				->addMappingField('code','adr_code')
48
+				->addMappingField('code', 'adr_code')
49 49
 				->addMappingField('street', 'adr_street')
50 50
 				->addMappingField('city', [
51 51
 					'field'		=> 'adr_cty_id',
Please login to merge, or discard this patch.
example/Domain/UserGroup/UserGroup.php 2 patches
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -18,6 +18,10 @@
 block discarded – undo
18 18
 	
19 19
 	protected $title;
20 20
 	
21
+	/**
22
+	 * @param string $code
23
+	 * @param string $title
24
+	 */
21 25
 	function __construct($code,$title){
22 26
 		$this->setCode($code);
23 27
 		$this->setTitle($title);
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
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
 	}
Please login to merge, or discard this patch.
example/Domain/User/UserMapper.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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', [
Please login to merge, or discard this patch.
example/Domain/UserAddress/UserAddress.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
 	
22 22
 	protected $city;
23 23
 
24
-	function __construct(\Test\Domain\City\City $City,$code,$street) {
24
+	function __construct(\Test\Domain\City\City $City, $code, $street) {
25 25
 		$this->setCity($City);
26 26
 		$this->setCode($code);
27 27
 		$this->setStreet($street);
Please login to merge, or discard this patch.
example/Domain/UserGroup/UserGroupMapper.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 	}	
Please login to merge, or discard this patch.
example/ServiceProvider.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -24,20 +24,20 @@
 block discarded – undo
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']);	
Please login to merge, or discard this patch.