Completed
Push — master ( ce30e9...2bda8a )
by Florian
17:52
created
DependencyInjection/StingerSoftPlatformExtension.php 1 patch
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.
DependencyInjection/Configuration.php 1 patch
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.
Tests/Entity/GroupTest.php 1 patch
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.
Tests/Entity/UserTest.php 1 patch
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.
Entity/Group.php 1 patch
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.
Tests/TestCase.php 1 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.
StingerSoftPlatformBundle.php 1 patch
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 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
 block discarded – undo
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';
Please login to merge, or discard this patch.
Controller/BaseController.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
Please login to merge, or discard this patch.
DataFixtures/AbstractStingerFixture.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -33,9 +33,9 @@  discard block
 block discarded – undo
33 33
 	 */
34 34
 	private $logger;
35 35
 
36
-	public final function load(ObjectManager $manager) {
36
+	public final function load(ObjectManager $manager){
37 37
 		$this->manager = $manager;
38
-		if(!$this->skipMe()) {
38
+		if(!$this->skipMe()){
39 39
 			$this->getLogger()->info("Starting import of fixtures ...");
40 40
 			$this->reportMemoryUsage();
41 41
 			// $startTime = microtime(true);
@@ -43,12 +43,12 @@  discard block
 block discarded – undo
43 43
 			// $endTime = microtime(true);
44 44
 			// $this->info("Finished importing fixtures in " . $this->formatTime($startTime, $endTime));
45 45
 			$this->reportMemoryUsage();
46
-		} else {
46
+		} else{
47 47
 			$this->getLogger()->info('Skipping import of fixtures !');
48 48
 		}
49 49
 	}
50 50
 
51
-	protected final function reportMemoryUsage() {
51
+	protected final function reportMemoryUsage(){
52 52
 		// $this->getLogger()->info("Currently using %s of RAM", $this->getMemoryUsage());
53 53
 	}
54 54
 
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
 	 *
63 63
 	 * @return bool
64 64
 	 */
65
-	protected function skipMe() {
65
+	protected function skipMe(){
66 66
 		return false;
67 67
 	}
68 68
 
@@ -70,10 +70,10 @@  discard block
 block discarded – undo
70 70
 	 *
71 71
 	 * @return LoggerInterface|null
72 72
 	 */
73
-	protected function getLogger() {
74
-		if(!$this->logger && $this->container && $this->container->has('logger')) {
73
+	protected function getLogger(){
74
+		if(!$this->logger && $this->container && $this->container->has('logger')){
75 75
 			$this->logger = $this->container->get('logger');
76
-		} else {
76
+		} else{
77 77
 			$this->logger = new NullLogger();
78 78
 		}
79 79
 		return $this->logger;
Please login to merge, or discard this patch.