Completed
Push — master ( 034197...09db4e )
by Florian
14:50 queued 15s
created
DependencyInjection/StingerSoftPlatformExtension.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -17,11 +17,11 @@
 block discarded – undo
17 17
 	/**
18 18
 	 * {@inheritdoc}
19 19
 	 */
20
-	public function load(array $configs, ContainerBuilder $container) {
20
+	public function load(array $configs, ContainerBuilder $container){
21 21
 		$configuration = new Configuration();
22 22
 		$config = $this->processConfiguration($configuration, $configs);
23 23
 
24
-		$loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config'));
24
+		$loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
25 25
 		$loader->load('services.yml');
26 26
 	}
27 27
 }
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
 	/**
18 18
 	 * {@inheritdoc}
19 19
 	 */
20
-	public function load(array $configs, ContainerBuilder $container) {
20
+	public function load(array $configs, ContainerBuilder $container){
21 21
 		$configuration = new Configuration();
22 22
 		$config = $this->processConfiguration($configuration, $configs);
23 23
 
Please login to merge, or discard this patch.
DependencyInjection/Configuration.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
 	/**
16 16
 	 * {@inheritdoc}
17 17
 	 */
18
-	public function getConfigTreeBuilder() {
18
+	public function getConfigTreeBuilder(){
19 19
 		$treeBuilder = new TreeBuilder();
20 20
 		$rootNode = $treeBuilder->root('stinger_soft_platform');
21 21
 
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
 	/**
16 16
 	 * {@inheritdoc}
17 17
 	 */
18
-	public function getConfigTreeBuilder() {
18
+	public function getConfigTreeBuilder(){
19 19
 		$treeBuilder = new TreeBuilder();
20 20
 		$rootNode = $treeBuilder->root('stinger_soft_platform');
21 21
 
Please login to merge, or discard this patch.
Tests/TestCase.php 2 patches
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
 class TestCase extends \PHPUnit_Framework_TestCase {
24 24
 
25 25
 
26
-	public function createContainer() {
26
+	public function createContainer(){
27 27
 		$container = new ContainerBuilder(new ParameterBag(array(
28 28
 			'kernel.debug'       => false,
29 29
 //			'kernel.bundles'     => array('YamlBundle' => 'Fixtures\Bundles\YamlBundle\YamlBundle'),
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -25,13 +25,13 @@
 block discarded – undo
25 25
  */
26 26
 class TestCase extends \PHPUnit_Framework_TestCase {
27 27
 
28
-	public function createContainer() {
28
+	public function createContainer(){
29 29
 		$container = new ContainerBuilder(new ParameterBag(array(
30 30
 			'kernel.debug' => false,
31 31
 			// 'kernel.bundles' => array('YamlBundle' => 'Fixtures\Bundles\YamlBundle\YamlBundle'),
32 32
 			'kernel.cache_dir' => sys_get_temp_dir(),
33 33
 			'kernel.environment' => 'test',
34
-			'kernel.root_dir' => __DIR__ . '/../../../../' 
34
+			'kernel.root_dir' => __DIR__.'/../../../../' 
35 35
 		) // src dir
36 36
 ));
37 37
 		$extension = new StingerSoftPlatformExtension();
Please login to merge, or discard this patch.
Tests/Entity/GroupTest.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
 
14 14
 class GroupTest extends TestCase {
15 15
 
16
-	public function testBasicGroupStuff() {
16
+	public function testBasicGroupStuff(){
17 17
 		$group = new Group('mygroup');
18 18
 
19 19
 		$this->assertEquals('mygroup', $group->getName());
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
 		$this->assertEmpty($group->getRoles());
22 22
 	}
23 23
 
24
-	public function testGroupRoles() {
24
+	public function testGroupRoles(){
25 25
 		$group = new Group('mygroup', array('1', '2'));
26 26
 		$this->assertNotEmpty($group->getRoles());
27 27
 		$this->assertContains('1', $group->getRoles());
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
 		$this->assertEmpty($group->getRoles());
52 52
 	}
53 53
 
54
-	public function testGroupUsers() {
54
+	public function testGroupUsers(){
55 55
 		$group = new Group('mygroup');
56 56
 
57 57
 		$this->assertEmpty($group->getUsers());
Please login to merge, or discard this patch.
Braces   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
 
14 14
 class GroupTest extends TestCase {
15 15
 
16
-	public function testBasicGroupStuff() {
16
+	public function testBasicGroupStuff(){
17 17
 		$group = new Group('mygroup');
18 18
 
19 19
 		$this->assertEquals('mygroup', $group->getName());
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
 		$this->assertEmpty($group->getRoles());
22 22
 	}
23 23
 
24
-	public function testGroupRoles() {
24
+	public function testGroupRoles(){
25 25
 		$group = new Group('mygroup', array('1', '2'));
26 26
 		$this->assertNotEmpty($group->getRoles());
27 27
 		$this->assertContains('1', $group->getRoles());
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
 		$this->assertEmpty($group->getRoles());
52 52
 	}
53 53
 
54
-	public function testGroupUsers() {
54
+	public function testGroupUsers(){
55 55
 		$group = new Group('mygroup');
56 56
 
57 57
 		$this->assertEmpty($group->getUsers());
Please login to merge, or discard this patch.
Tests/Entity/UserTest.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
 
15 15
 class UserTest extends TestCase {
16 16
 
17
-	public function testBasicUserStuff() {
17
+	public function testBasicUserStuff(){
18 18
 		$user = new User();
19 19
 
20 20
 		$this->assertEquals('', $user->getFirstname());
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
 
15 15
 class UserTest extends TestCase {
16 16
 
17
-	public function testBasicUserStuff() {
17
+	public function testBasicUserStuff(){
18 18
 		$user = new User();
19 19
 
20 20
 		$this->assertEquals('', $user->getFirstname());
Please login to merge, or discard this patch.
Entity/User.php 2 patches
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
 	/**
43 43
 	 * @return string
44 44
 	 */
45
-	public function getFirstname() {
45
+	public function getFirstname(){
46 46
 		return $this->firstname;
47 47
 	}
48 48
 
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
 	 *
52 52
 	 * @return $this
53 53
 	 */
54
-	public function setFirstname($firstname) {
54
+	public function setFirstname($firstname){
55 55
 		$this->firstname = $firstname;
56 56
 
57 57
 		return $this;
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
 	/**
61 61
 	 * @return string
62 62
 	 */
63
-	public function getSurname() {
63
+	public function getSurname(){
64 64
 		return $this->surname;
65 65
 	}
66 66
 
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
 	 *
70 70
 	 * @return $this
71 71
 	 */
72
-	public function setSurname($surname) {
72
+	public function setSurname($surname){
73 73
 		$this->surname = $surname;
74 74
 
75 75
 		return $this;
@@ -80,9 +80,9 @@  discard block
 block discarded – undo
80 80
 	 *
81 81
 	 * @return string
82 82
 	 */
83
-	public function getRealName() {
84
-		if($this->firstname || $this->surname) {
85
-			return $this->getFirstname() . ' ' . $this->getSurname();
83
+	public function getRealName(){
84
+		if($this->firstname || $this->surname){
85
+			return $this->getFirstname().' '.$this->getSurname();
86 86
 		}
87 87
 		return null;
88 88
 	}
@@ -91,17 +91,17 @@  discard block
 block discarded – undo
91 91
 	 *
92 92
 	 * @return string - "Username" ("Firstname Surname")
93 93
 	 */
94
-	public function getUsernameAndRealName() {
95
-		return $this->getUsername() . ' (' . $this->getRealName() . ')';
94
+	public function getUsernameAndRealName(){
95
+		return $this->getUsername().' ('.$this->getRealName().')';
96 96
 	}
97 97
 
98 98
 	/**
99 99
 	 * @return string "Surname, Firstname"|"Surname"
100 100
 	 */
101
-	public function getReversedRealName() {
102
-		if($this->getFirstname()) {
103
-			return $this->getSurname() . ', ' . $this->getFirstname();
104
-		} else {
101
+	public function getReversedRealName(){
102
+		if($this->getFirstname()){
103
+			return $this->getSurname().', '.$this->getFirstname();
104
+		} else{
105 105
 			return $this->getSurname();
106 106
 		}
107 107
 	}
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
 	/**
110 110
 	 * @return string "Firstname Surname"|"Username"
111 111
 	 */
112
-	public function __toString() {
112
+	public function __toString(){
113 113
 		return $this->getRealName() != null ? $this->getRealName() : $this->getUsername();
114 114
 	}
115 115
 }
116 116
\ No newline at end of file
Please login to merge, or discard this patch.
Braces   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
 	/**
43 43
 	 * @return string
44 44
 	 */
45
-	public function getFirstname() {
45
+	public function getFirstname(){
46 46
 		return $this->firstname;
47 47
 	}
48 48
 
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
 	 *
52 52
 	 * @return $this
53 53
 	 */
54
-	public function setFirstname($firstname) {
54
+	public function setFirstname($firstname){
55 55
 		$this->firstname = $firstname;
56 56
 
57 57
 		return $this;
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
 	/**
61 61
 	 * @return string
62 62
 	 */
63
-	public function getSurname() {
63
+	public function getSurname(){
64 64
 		return $this->surname;
65 65
 	}
66 66
 
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
 	 *
70 70
 	 * @return $this
71 71
 	 */
72
-	public function setSurname($surname) {
72
+	public function setSurname($surname){
73 73
 		$this->surname = $surname;
74 74
 
75 75
 		return $this;
@@ -80,8 +80,8 @@  discard block
 block discarded – undo
80 80
 	 *
81 81
 	 * @return string
82 82
 	 */
83
-	public function getRealName() {
84
-		if($this->firstname || $this->surname) {
83
+	public function getRealName(){
84
+		if($this->firstname || $this->surname){
85 85
 			return $this->getFirstname() . ' ' . $this->getSurname();
86 86
 		}
87 87
 		return null;
@@ -91,17 +91,17 @@  discard block
 block discarded – undo
91 91
 	 *
92 92
 	 * @return string - "Username" ("Firstname Surname")
93 93
 	 */
94
-	public function getUsernameAndRealName() {
94
+	public function getUsernameAndRealName(){
95 95
 		return $this->getUsername() . ' (' . $this->getRealName() . ')';
96 96
 	}
97 97
 
98 98
 	/**
99 99
 	 * @return string "Surname, Firstname"|"Surname"
100 100
 	 */
101
-	public function getReversedRealName() {
102
-		if($this->getFirstname()) {
101
+	public function getReversedRealName(){
102
+		if($this->getFirstname()){
103 103
 			return $this->getSurname() . ', ' . $this->getFirstname();
104
-		} else {
104
+		} else{
105 105
 			return $this->getSurname();
106 106
 		}
107 107
 	}
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
 	/**
110 110
 	 * @return string "Firstname Surname"|"Username"
111 111
 	 */
112
-	public function __toString() {
112
+	public function __toString(){
113 113
 		return $this->getRealName() != null ? $this->getRealName() : $this->getUsername();
114 114
 	}
115 115
 }
116 116
\ No newline at end of file
Please login to merge, or discard this patch.
StingerSoftPlatformBundle.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
 
16 16
 class StingerSoftPlatformBundle extends Bundle {
17 17
 
18
-	public static function getRequiredBundle($env) {
18
+	public static function getRequiredBundle($env){
19 19
 		$bundles = [];
20 20
 		$bundles['FrameworkBundle'] = '\Symfony\Bundle\FrameworkBundle\FrameworkBundle';
21 21
 		$bundles['SecurityBundle'] = '\Symfony\Bundle\SecurityBundle\SecurityBundle';
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
 		if(in_array($env, [
29 29
 			'dev',
30 30
 			'test' 
31
-		], true)) {
31
+		], true)){
32 32
 			$bundles['DebugBundle'] = '\Symfony\Bundle\DebugBundle\DebugBundle';
33 33
 			$bundles['WebProfilerBundle'] = '\Symfony\Bundle\WebProfilerBundle\WebProfilerBundle';
34 34
 			$bundles['SensioDistributionBundle'] = '\Sensio\Bundle\DistributionBundle\SensioDistributionBundle';
Please login to merge, or discard this patch.
Braces   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
 
16 16
 class StingerSoftPlatformBundle extends Bundle {
17 17
 
18
-	public static function getRequiredBundle($env) {
18
+	public static function getRequiredBundle($env){
19 19
 		$bundles = [];
20 20
 		$bundles['FrameworkBundle'] = '\Symfony\Bundle\FrameworkBundle\FrameworkBundle';
21 21
 		$bundles['SecurityBundle'] = '\Symfony\Bundle\SecurityBundle\SecurityBundle';
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
 		if(in_array($env, [
29 29
 			'dev',
30 30
 			'test' 
31
-		], true)) {
31
+		], true)){
32 32
 			$bundles['DebugBundle'] = '\Symfony\Bundle\DebugBundle\DebugBundle';
33 33
 			$bundles['WebProfilerBundle'] = '\Symfony\Bundle\WebProfilerBundle\WebProfilerBundle';
34 34
 			$bundles['SensioDistributionBundle'] = '\Sensio\Bundle\DistributionBundle\SensioDistributionBundle';
Please login to merge, or discard this patch.
Service/Doctrine/TablePrefixService.php 2 patches
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
 
27 27
 	const SERVICE_ID = 'stinger_soft_platform.doctrine.table_prefix';
28 28
 
29
-	public function getSubscribedEvents() {
29
+	public function getSubscribedEvents(){
30 30
 		return array(
31 31
 			'loadClassMetadata' 
32 32
 		);
@@ -36,36 +36,36 @@  discard block
 block discarded – undo
36 36
 	 *
37 37
 	 * @param LoadClassMetadataEventArgs $args        	
38 38
 	 */
39
-	public function loadClassMetadata(LoadClassMetadataEventArgs $args) {
39
+	public function loadClassMetadata(LoadClassMetadataEventArgs $args){
40 40
 		$classMetadata = $args->getClassMetadata();
41 41
 		
42 42
 		// Do not re-apply the prefix in an inheritance hierarchy.
43
-		if($classMetadata->isInheritanceTypeSingleTable() && !$classMetadata->isRootEntity()) {
43
+		if($classMetadata->isInheritanceTypeSingleTable() && !$classMetadata->isRootEntity()){
44 44
 			return;
45 45
 		}
46 46
 		
47 47
 		$prefix = $classMetadata->namespace;
48
-		if(!preg_match('/([^\\\\]+)Bundle/i', $classMetadata->namespace, $prefix)) {
48
+		if(!preg_match('/([^\\\\]+)Bundle/i', $classMetadata->namespace, $prefix)){
49 49
 			return;
50 50
 		}
51 51
 		// Can this happen??
52 52
 		// if(count($prefix)!=2){
53 53
 		// return;
54 54
 		// }
55
-		$prefix = strtolower($prefix[1]) . '_';
55
+		$prefix = strtolower($prefix[1]).'_';
56 56
 		
57 57
 		$classMetadata->setPrimaryTable(array(
58
-			'name' => $prefix . $classMetadata->getTableName() 
58
+			'name' => $prefix.$classMetadata->getTableName() 
59 59
 		));
60 60
 		
61
-		foreach($classMetadata->getAssociationMappings() as $fieldName => $mapping) {
62
-			if($mapping['type'] == ClassMetadataInfo::MANY_TO_MANY && isset($classMetadata->associationMappings[$fieldName]['joinTable']['name'])) {
63
-				if(isset($classMetadata->associationMappings[$fieldName]['joinTable']['prefixed']) && $classMetadata->associationMappings[$fieldName]['joinTable']['prefixed']) {
61
+		foreach($classMetadata->getAssociationMappings() as $fieldName => $mapping){
62
+			if($mapping['type'] == ClassMetadataInfo::MANY_TO_MANY && isset($classMetadata->associationMappings[$fieldName]['joinTable']['name'])){
63
+				if(isset($classMetadata->associationMappings[$fieldName]['joinTable']['prefixed']) && $classMetadata->associationMappings[$fieldName]['joinTable']['prefixed']){
64 64
 					continue;
65 65
 				}
66 66
 				
67 67
 				$mappedTableName = $classMetadata->associationMappings[$fieldName]['joinTable']['name'];
68
-				$classMetadata->associationMappings[$fieldName]['joinTable']['name'] = $prefix . $mappedTableName;
68
+				$classMetadata->associationMappings[$fieldName]['joinTable']['name'] = $prefix.$mappedTableName;
69 69
 				$classMetadata->associationMappings[$fieldName]['joinTable']['prefixed'] = true;
70 70
 			}
71 71
 		}
Please login to merge, or discard this patch.
Braces   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
 
27 27
 	const SERVICE_ID = 'stinger_soft_platform.doctrine.table_prefix';
28 28
 
29
-	public function getSubscribedEvents() {
29
+	public function getSubscribedEvents(){
30 30
 		return array(
31 31
 			'loadClassMetadata' 
32 32
 		);
@@ -36,16 +36,16 @@  discard block
 block discarded – undo
36 36
 	 *
37 37
 	 * @param LoadClassMetadataEventArgs $args        	
38 38
 	 */
39
-	public function loadClassMetadata(LoadClassMetadataEventArgs $args) {
39
+	public function loadClassMetadata(LoadClassMetadataEventArgs $args){
40 40
 		$classMetadata = $args->getClassMetadata();
41 41
 		
42 42
 		// Do not re-apply the prefix in an inheritance hierarchy.
43
-		if($classMetadata->isInheritanceTypeSingleTable() && !$classMetadata->isRootEntity()) {
43
+		if($classMetadata->isInheritanceTypeSingleTable() && !$classMetadata->isRootEntity()){
44 44
 			return;
45 45
 		}
46 46
 		
47 47
 		$prefix = $classMetadata->namespace;
48
-		if(!preg_match('/([^\\\\]+)Bundle/i', $classMetadata->namespace, $prefix)) {
48
+		if(!preg_match('/([^\\\\]+)Bundle/i', $classMetadata->namespace, $prefix)){
49 49
 			return;
50 50
 		}
51 51
 		// Can this happen??
@@ -58,9 +58,9 @@  discard block
 block discarded – undo
58 58
 			'name' => $prefix . $classMetadata->getTableName() 
59 59
 		));
60 60
 		
61
-		foreach($classMetadata->getAssociationMappings() as $fieldName => $mapping) {
62
-			if($mapping['type'] == ClassMetadataInfo::MANY_TO_MANY && isset($classMetadata->associationMappings[$fieldName]['joinTable']['name'])) {
63
-				if(isset($classMetadata->associationMappings[$fieldName]['joinTable']['prefixed']) && $classMetadata->associationMappings[$fieldName]['joinTable']['prefixed']) {
61
+		foreach($classMetadata->getAssociationMappings() as $fieldName => $mapping){
62
+			if($mapping['type'] == ClassMetadataInfo::MANY_TO_MANY && isset($classMetadata->associationMappings[$fieldName]['joinTable']['name'])){
63
+				if(isset($classMetadata->associationMappings[$fieldName]['joinTable']['prefixed']) && $classMetadata->associationMappings[$fieldName]['joinTable']['prefixed']){
64 64
 					continue;
65 65
 				}
66 66
 				
Please login to merge, or discard this patch.
Entity/Group.php 2 patches
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -38,19 +38,19 @@  discard block
 block discarded – undo
38 38
 	 *        	$name
39 39
 	 * @param array $roles        	
40 40
 	 */
41
-	public function __construct($name, $roles = array()) {
41
+	public function __construct($name, $roles = array()){
42 42
 		$this->users = new ArrayCollection();
43 43
 		parent::__construct($name, $roles);
44 44
 	}
45 45
 
46
-	public function addRoles(array $roles) {
47
-		foreach($roles as $role) {
46
+	public function addRoles(array $roles){
47
+		foreach($roles as $role){
48 48
 			$this->addRole($role);
49 49
 		}
50 50
 	}
51 51
 
52
-	public function removeRoles(array $roles) {
53
-		foreach($roles as $role) {
52
+	public function removeRoles(array $roles){
53
+		foreach($roles as $role){
54 54
 			$this->removeRole($role);
55 55
 		}
56 56
 	}
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
 	 *
63 63
 	 * @return Group
64 64
 	 */
65
-	public function addUser(User $user) {
65
+	public function addUser(User $user){
66 66
 		$this->users[] = $user;
67 67
 		
68 68
 		return $this;
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
 	 *
74 74
 	 * @param User $user        	
75 75
 	 */
76
-	public function removeUser(User $user) {
76
+	public function removeUser(User $user){
77 77
 		$this->users->removeElement($user);
78 78
 	}
79 79
 
@@ -82,11 +82,11 @@  discard block
 block discarded – undo
82 82
 	 *
83 83
 	 * @return \Doctrine\Common\Collections\Collection
84 84
 	 */
85
-	public function getUsers() {
85
+	public function getUsers(){
86 86
 		return $this->users;
87 87
 	}
88 88
 
89
-	public function getUsersCount() {
89
+	public function getUsersCount(){
90 90
 		return $this->users->count();
91 91
 	}
92 92
 }
93 93
\ No newline at end of file
Please login to merge, or discard this patch.
Braces   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -38,19 +38,19 @@  discard block
 block discarded – undo
38 38
 	 *        	$name
39 39
 	 * @param array $roles        	
40 40
 	 */
41
-	public function __construct($name, $roles = array()) {
41
+	public function __construct($name, $roles = array()){
42 42
 		$this->users = new ArrayCollection();
43 43
 		parent::__construct($name, $roles);
44 44
 	}
45 45
 
46
-	public function addRoles(array $roles) {
47
-		foreach($roles as $role) {
46
+	public function addRoles(array $roles){
47
+		foreach($roles as $role){
48 48
 			$this->addRole($role);
49 49
 		}
50 50
 	}
51 51
 
52
-	public function removeRoles(array $roles) {
53
-		foreach($roles as $role) {
52
+	public function removeRoles(array $roles){
53
+		foreach($roles as $role){
54 54
 			$this->removeRole($role);
55 55
 		}
56 56
 	}
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
 	 *
63 63
 	 * @return Group
64 64
 	 */
65
-	public function addUser(User $user) {
65
+	public function addUser(User $user){
66 66
 		$this->users[] = $user;
67 67
 		
68 68
 		return $this;
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
 	 *
74 74
 	 * @param User $user        	
75 75
 	 */
76
-	public function removeUser(User $user) {
76
+	public function removeUser(User $user){
77 77
 		$this->users->removeElement($user);
78 78
 	}
79 79
 
@@ -82,11 +82,11 @@  discard block
 block discarded – undo
82 82
 	 *
83 83
 	 * @return \Doctrine\Common\Collections\Collection
84 84
 	 */
85
-	public function getUsers() {
85
+	public function getUsers(){
86 86
 		return $this->users;
87 87
 	}
88 88
 
89
-	public function getUsersCount() {
89
+	public function getUsersCount(){
90 90
 		return $this->users->count();
91 91
 	}
92 92
 }
93 93
\ No newline at end of file
Please login to merge, or discard this patch.