@@ -17,11 +17,11 @@ |
||
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 | } |
@@ -17,7 +17,7 @@ |
||
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 |
@@ -15,7 +15,7 @@ |
||
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 |
@@ -15,7 +15,7 @@ |
||
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 |
@@ -23,7 +23,7 @@ |
||
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'), |
@@ -25,13 +25,13 @@ |
||
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(); |
@@ -13,7 +13,7 @@ discard block |
||
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 |
||
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 |
||
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()); |
@@ -13,7 +13,7 @@ discard block |
||
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 |
||
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 |
||
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()); |
@@ -14,7 +14,7 @@ |
||
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()); |
@@ -14,7 +14,7 @@ |
||
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()); |
@@ -42,7 +42,7 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | * |
48 | 48 | * @return string |
49 | 49 | */ |
50 | - public function getFirstname() { |
|
50 | + public function getFirstname(){ |
|
51 | 51 | return $this->firstname; |
52 | 52 | } |
53 | 53 | |
@@ -57,7 +57,7 @@ discard block |
||
57 | 57 | * |
58 | 58 | * @return $this |
59 | 59 | */ |
60 | - public function setFirstname($firstname) { |
|
60 | + public function setFirstname($firstname){ |
|
61 | 61 | $this->firstname = $firstname; |
62 | 62 | |
63 | 63 | return $this; |
@@ -67,7 +67,7 @@ discard block |
||
67 | 67 | * |
68 | 68 | * @return string |
69 | 69 | */ |
70 | - public function getSurname() { |
|
70 | + public function getSurname(){ |
|
71 | 71 | return $this->surname; |
72 | 72 | } |
73 | 73 | |
@@ -77,7 +77,7 @@ discard block |
||
77 | 77 | * |
78 | 78 | * @return $this |
79 | 79 | */ |
80 | - public function setSurname($surname) { |
|
80 | + public function setSurname($surname){ |
|
81 | 81 | $this->surname = $surname; |
82 | 82 | |
83 | 83 | return $this; |
@@ -88,9 +88,9 @@ discard block |
||
88 | 88 | * |
89 | 89 | * @return string |
90 | 90 | */ |
91 | - public function getRealName() { |
|
92 | - if($this->firstname || $this->surname) { |
|
93 | - return trim($this->getFirstname() . ' ' . $this->getSurname()); |
|
91 | + public function getRealName(){ |
|
92 | + if($this->firstname || $this->surname){ |
|
93 | + return trim($this->getFirstname().' '.$this->getSurname()); |
|
94 | 94 | } |
95 | 95 | return null; |
96 | 96 | } |
@@ -99,18 +99,18 @@ discard block |
||
99 | 99 | * |
100 | 100 | * @return string - "Username" ("Firstname Surname") |
101 | 101 | */ |
102 | - public function getUsernameAndRealName() { |
|
103 | - return $this->getUsername() . ' (' . $this->getRealName() . ')'; |
|
102 | + public function getUsernameAndRealName(){ |
|
103 | + return $this->getUsername().' ('.$this->getRealName().')'; |
|
104 | 104 | } |
105 | 105 | |
106 | 106 | /** |
107 | 107 | * |
108 | 108 | * @return string "Surname, Firstname"|"Surname" |
109 | 109 | */ |
110 | - public function getReversedRealName() { |
|
111 | - if($this->getFirstname()) { |
|
112 | - return $this->getSurname() . ', ' . $this->getFirstname(); |
|
113 | - } else { |
|
110 | + public function getReversedRealName(){ |
|
111 | + if($this->getFirstname()){ |
|
112 | + return $this->getSurname().', '.$this->getFirstname(); |
|
113 | + } else{ |
|
114 | 114 | return $this->getSurname(); |
115 | 115 | } |
116 | 116 | } |
@@ -119,7 +119,7 @@ discard block |
||
119 | 119 | * |
120 | 120 | * @return string "Firstname Surname"|"Username" |
121 | 121 | */ |
122 | - public function __toString() { |
|
122 | + public function __toString(){ |
|
123 | 123 | return $this->getRealName() != null ? $this->getRealName() : $this->getUsername(); |
124 | 124 | } |
125 | 125 | } |
126 | 126 | \ No newline at end of file |
@@ -38,19 +38,19 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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 |
@@ -38,19 +38,19 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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 |
@@ -15,7 +15,7 @@ discard block |
||
15 | 15 | |
16 | 16 | class StingerSoftPlatformBundle extends Bundle { |
17 | 17 | |
18 | - public static function getRequiredBundles($env) { |
|
18 | + public static function getRequiredBundles($env){ |
|
19 | 19 | $bundles = []; |
20 | 20 | $bundles['FrameworkBundle'] = '\Symfony\Bundle\FrameworkBundle\FrameworkBundle'; |
21 | 21 | $bundles['SecurityBundle'] = '\Symfony\Bundle\SecurityBundle\SecurityBundle'; |
@@ -29,7 +29,7 @@ discard block |
||
29 | 29 | if(in_array($env, [ |
30 | 30 | 'dev', |
31 | 31 | 'test' |
32 | - ], true)) { |
|
32 | + ], true)){ |
|
33 | 33 | $bundles['DebugBundle'] = '\Symfony\Bundle\DebugBundle\DebugBundle'; |
34 | 34 | $bundles['WebProfilerBundle'] = '\Symfony\Bundle\WebProfilerBundle\WebProfilerBundle'; |
35 | 35 | $bundles['SensioDistributionBundle'] = '\Sensio\Bundle\DistributionBundle\SensioDistributionBundle'; |
@@ -15,7 +15,7 @@ discard block |
||
15 | 15 | |
16 | 16 | class StingerSoftPlatformBundle extends Bundle { |
17 | 17 | |
18 | - public static function getRequiredBundles($env) { |
|
18 | + public static function getRequiredBundles($env){ |
|
19 | 19 | $bundles = []; |
20 | 20 | $bundles['FrameworkBundle'] = '\Symfony\Bundle\FrameworkBundle\FrameworkBundle'; |
21 | 21 | $bundles['SecurityBundle'] = '\Symfony\Bundle\SecurityBundle\SecurityBundle'; |
@@ -29,7 +29,7 @@ discard block |
||
29 | 29 | if(in_array($env, [ |
30 | 30 | 'dev', |
31 | 31 | 'test' |
32 | - ], true)) { |
|
32 | + ], true)){ |
|
33 | 33 | $bundles['DebugBundle'] = '\Symfony\Bundle\DebugBundle\DebugBundle'; |
34 | 34 | $bundles['WebProfilerBundle'] = '\Symfony\Bundle\WebProfilerBundle\WebProfilerBundle'; |
35 | 35 | $bundles['SensioDistributionBundle'] = '\Sensio\Bundle\DistributionBundle\SensioDistributionBundle'; |
@@ -23,7 +23,7 @@ discard block |
||
23 | 23 | * |
24 | 24 | * @return string |
25 | 25 | */ |
26 | - protected function getDefaultLocale() { |
|
26 | + protected function getDefaultLocale(){ |
|
27 | 27 | return 'en'; |
28 | 28 | } |
29 | 29 | |
@@ -33,7 +33,7 @@ discard block |
||
33 | 33 | * |
34 | 34 | * @return string[] |
35 | 35 | */ |
36 | - protected function getLocales() { |
|
36 | + protected function getLocales(){ |
|
37 | 37 | return array( |
38 | 38 | 'en' |
39 | 39 | ); |
@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | * @param string $locale |
52 | 52 | * @return string |
53 | 53 | */ |
54 | - protected function transChoice($id, $number, array $parameters = array(), $domain = null, $locale = null) { |
|
54 | + protected function transChoice($id, $number, array $parameters = array(), $domain = null, $locale = null){ |
|
55 | 55 | /** |
56 | 56 | * |
57 | 57 | * @var TranslatorInterface $translator |
@@ -71,7 +71,7 @@ discard block |
||
71 | 71 | * @param string $locale |
72 | 72 | * @return string |
73 | 73 | */ |
74 | - protected function trans($id, array $parameters = array(), $domain = null, $locale = null) { |
|
74 | + protected function trans($id, array $parameters = array(), $domain = null, $locale = null){ |
|
75 | 75 | /** |
76 | 76 | * |
77 | 77 | * @var TranslatorInterface $translator |
@@ -85,7 +85,7 @@ discard block |
||
85 | 85 | * |
86 | 86 | * @return TranslatorInterface |
87 | 87 | */ |
88 | - protected function getTranslator() { |
|
88 | + protected function getTranslator(){ |
|
89 | 89 | return $this->get('translator'); |
90 | 90 | } |
91 | 91 | |
@@ -94,7 +94,7 @@ discard block |
||
94 | 94 | * |
95 | 95 | * @return \Knp\Component\Pager\PaginatorInterface |
96 | 96 | */ |
97 | - protected function getPaginator() { |
|
97 | + protected function getPaginator(){ |
|
98 | 98 | return $this->get('knp_paginator'); |
99 | 99 | } |
100 | 100 | |
@@ -103,8 +103,8 @@ discard block |
||
103 | 103 | * |
104 | 104 | * @return Stopwatch|NULL |
105 | 105 | */ |
106 | - protected function getStopWatch() { |
|
107 | - if($this->has('debug.stopwatch')) { |
|
106 | + protected function getStopWatch(){ |
|
107 | + if($this->has('debug.stopwatch')){ |
|
108 | 108 | return $this->get('debug.stopwatch'); |
109 | 109 | } |
110 | 110 | return null; |
@@ -117,8 +117,8 @@ discard block |
||
117 | 117 | * @throws \LogicException |
118 | 118 | * @return boolean |
119 | 119 | */ |
120 | - protected function hasRole($role) { |
|
121 | - if(!$this->container->has('security.authorization_checker')) { |
|
120 | + protected function hasRole($role){ |
|
121 | + if(!$this->container->has('security.authorization_checker')){ |
|
122 | 122 | throw new \LogicException('The SecurityBundle is not registered in your application.'); |
123 | 123 | } |
124 | 124 | return false !== $this->get('security.authorization_checker')->isGranted($role); |
@@ -130,7 +130,7 @@ discard block |
||
130 | 130 | * @param string $class |
131 | 131 | * @return ObjectRepository |
132 | 132 | */ |
133 | - protected function getRepository($class) { |
|
133 | + protected function getRepository($class){ |
|
134 | 134 | return $this->getDoctrine()->getManagerForClass($class)->getRepository($class); |
135 | 135 | } |
136 | 136 | } |
137 | 137 | \ No newline at end of file |
@@ -23,7 +23,7 @@ discard block |
||
23 | 23 | * |
24 | 24 | * @return string |
25 | 25 | */ |
26 | - protected function getDefaultLocale() { |
|
26 | + protected function getDefaultLocale(){ |
|
27 | 27 | return 'en'; |
28 | 28 | } |
29 | 29 | |
@@ -33,7 +33,7 @@ discard block |
||
33 | 33 | * |
34 | 34 | * @return string[] |
35 | 35 | */ |
36 | - protected function getLocales() { |
|
36 | + protected function getLocales(){ |
|
37 | 37 | return array( |
38 | 38 | 'en' |
39 | 39 | ); |
@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | * @param string $locale |
52 | 52 | * @return string |
53 | 53 | */ |
54 | - protected function transChoice($id, $number, array $parameters = array(), $domain = null, $locale = null) { |
|
54 | + protected function transChoice($id, $number, array $parameters = array(), $domain = null, $locale = null){ |
|
55 | 55 | /** |
56 | 56 | * |
57 | 57 | * @var TranslatorInterface $translator |
@@ -71,7 +71,7 @@ discard block |
||
71 | 71 | * @param string $locale |
72 | 72 | * @return string |
73 | 73 | */ |
74 | - protected function trans($id, array $parameters = array(), $domain = null, $locale = null) { |
|
74 | + protected function trans($id, array $parameters = array(), $domain = null, $locale = null){ |
|
75 | 75 | /** |
76 | 76 | * |
77 | 77 | * @var TranslatorInterface $translator |
@@ -85,7 +85,7 @@ discard block |
||
85 | 85 | * |
86 | 86 | * @return TranslatorInterface |
87 | 87 | */ |
88 | - protected function getTranslator() { |
|
88 | + protected function getTranslator(){ |
|
89 | 89 | return $this->get('translator'); |
90 | 90 | } |
91 | 91 | |
@@ -94,7 +94,7 @@ discard block |
||
94 | 94 | * |
95 | 95 | * @return \Knp\Component\Pager\PaginatorInterface |
96 | 96 | */ |
97 | - protected function getPaginator() { |
|
97 | + protected function getPaginator(){ |
|
98 | 98 | return $this->get('knp_paginator'); |
99 | 99 | } |
100 | 100 | |
@@ -103,8 +103,8 @@ discard block |
||
103 | 103 | * |
104 | 104 | * @return Stopwatch|NULL |
105 | 105 | */ |
106 | - protected function getStopWatch() { |
|
107 | - if($this->has('debug.stopwatch')) { |
|
106 | + protected function getStopWatch(){ |
|
107 | + if($this->has('debug.stopwatch')){ |
|
108 | 108 | return $this->get('debug.stopwatch'); |
109 | 109 | } |
110 | 110 | return null; |
@@ -117,8 +117,8 @@ discard block |
||
117 | 117 | * @throws \LogicException |
118 | 118 | * @return boolean |
119 | 119 | */ |
120 | - protected function hasRole($role) { |
|
121 | - if(!$this->container->has('security.authorization_checker')) { |
|
120 | + protected function hasRole($role){ |
|
121 | + if(!$this->container->has('security.authorization_checker')){ |
|
122 | 122 | throw new \LogicException('The SecurityBundle is not registered in your application.'); |
123 | 123 | } |
124 | 124 | return false !== $this->get('security.authorization_checker')->isGranted($role); |
@@ -130,7 +130,7 @@ discard block |
||
130 | 130 | * @param string $class |
131 | 131 | * @return ObjectRepository |
132 | 132 | */ |
133 | - protected function getRepository($class) { |
|
133 | + protected function getRepository($class){ |
|
134 | 134 | return $this->getDoctrine()->getManagerForClass($class)->getRepository($class); |
135 | 135 | } |
136 | 136 | } |
137 | 137 | \ No newline at end of file |