@@ -78,7 +78,7 @@ discard block |
||
78 | 78 | $builder->expects($this->any()) |
79 | 79 | ->method('field') |
80 | 80 | ->willReturnMap([ |
81 | - ['permissions.view',$builder] |
|
81 | + ['permissions.view', $builder] |
|
82 | 82 | ]) |
83 | 83 | ; |
84 | 84 | |
@@ -121,20 +121,20 @@ discard block |
||
121 | 121 | $builder->expects($this->any()) |
122 | 122 | ->method('field') |
123 | 123 | ->willReturnMap([ |
124 | - ['profileSetting',$builder], |
|
125 | - ['id',$builder], |
|
126 | - ['organization',$builder], |
|
127 | - ['status.name',$builder], |
|
128 | - ['isDraft',$builder], |
|
129 | - ['profileSetting',$builder] |
|
124 | + ['profileSetting', $builder], |
|
125 | + ['id', $builder], |
|
126 | + ['organization', $builder], |
|
127 | + ['status.name', $builder], |
|
128 | + ['isDraft', $builder], |
|
129 | + ['profileSetting', $builder] |
|
130 | 130 | ]) |
131 | 131 | ; |
132 | 132 | |
133 | 133 | $builder->expects($this->exactly(2)) |
134 | 134 | ->method('notIn') |
135 | 135 | ->willReturnMap([ |
136 | - [ [StatusInterface::EXPIRED, StatusInterface::INACTIVE], $builder], |
|
137 | - [ ['some-id'],$builder ] |
|
136 | + [[StatusInterface::EXPIRED, StatusInterface::INACTIVE], $builder], |
|
137 | + [['some-id'], $builder] |
|
138 | 138 | ]) |
139 | 139 | ; |
140 | 140 |
@@ -45,7 +45,7 @@ discard block |
||
45 | 45 | |
46 | 46 | $builder->expects($this->once()) |
47 | 47 | ->method('in') |
48 | - ->with([Status::ACTIVE,Status::PUBLISH]) |
|
48 | + ->with([Status::ACTIVE, Status::PUBLISH]) |
|
49 | 49 | ->willReturn($builder) |
50 | 50 | ; |
51 | 51 | $builder->expects($this->exactly(2)) |
@@ -58,7 +58,7 @@ discard block |
||
58 | 58 | ; |
59 | 59 | |
60 | 60 | |
61 | - $params=['organization_id' =>$organization->getId()]; |
|
61 | + $params = ['organization_id' =>$organization->getId()]; |
|
62 | 62 | $target->createQuery($params, $builder); |
63 | 63 | } |
64 | 64 | } |
@@ -36,9 +36,9 @@ |
||
36 | 36 | $container->expects($this->any()) |
37 | 37 | ->method('get') |
38 | 38 | ->willReturnMap([ |
39 | - ['Core/RepositoryService',$container], |
|
40 | - ['Jobs/Job',$jobRepository], |
|
41 | - ['AuthenticationService',$auth] |
|
39 | + ['Core/RepositoryService', $container], |
|
40 | + ['Jobs/Job', $jobRepository], |
|
41 | + ['AuthenticationService', $auth] |
|
42 | 42 | ]) |
43 | 43 | ; |
44 | 44 |
@@ -65,14 +65,14 @@ discard block |
||
65 | 65 | ->disableOriginalConstructor()->getMock(); |
66 | 66 | } |
67 | 67 | if (in_array('mailerPlugin', $mocks)) { |
68 | - $this->mailerPluginMock = $this->getMockBuilder('\Core\Controller\Plugin\Mailer') |
|
68 | + $this->mailerPluginMock = $this->getMockBuilder('\Core\Controller\Plugin\Mailer') |
|
69 | 69 | ->disableOriginalConstructor()->getMock(); |
70 | 70 | } |
71 | 71 | |
72 | 72 | if ($inject) { |
73 | 73 | foreach ($mocks as $key) { |
74 | - $setter = 'set' . $key; |
|
75 | - $this->target->$setter($this->{$key . 'Mock'}); |
|
74 | + $setter = 'set'.$key; |
|
75 | + $this->target->$setter($this->{$key.'Mock'}); |
|
76 | 76 | } |
77 | 77 | } |
78 | 78 | } |
@@ -107,9 +107,9 @@ discard block |
||
107 | 107 | { |
108 | 108 | $this->setupMocks($mockKey); |
109 | 109 | |
110 | - $setter = 'set' . ucfirst($mockKey); |
|
111 | - $getter = 'get' . ucfirst($mockKey); |
|
112 | - $value = $this->{$mockKey . 'Mock'}; |
|
110 | + $setter = 'set'.ucfirst($mockKey); |
|
111 | + $getter = 'get'.ucfirst($mockKey); |
|
112 | + $value = $this->{$mockKey.'Mock'}; |
|
113 | 113 | |
114 | 114 | $this->assertSame($this->target, $this->target->$setter($value), 'Fluent interface broken!'); |
115 | 115 | $this->assertSame($value, $this->target->$getter()); |
@@ -123,7 +123,7 @@ discard block |
||
123 | 123 | */ |
124 | 124 | public function testGetterThrowExceptionIfDependencyMissing($getterName) |
125 | 125 | { |
126 | - $getter = "get" . $getterName; |
|
126 | + $getter = "get".$getterName; |
|
127 | 127 | |
128 | 128 | $this->target->$getter(); |
129 | 129 | } |
@@ -80,11 +80,11 @@ |
||
80 | 80 | $services->expects($this->exactly(5)) |
81 | 81 | ->method('get') |
82 | 82 | ->will($this->returnValueMap(array( |
83 | - array('ValidatorManager', $validators), // get ha signature ($name, $usePeeringManagers = true) |
|
83 | + array('ValidatorManager', $validators), // get ha signature ($name, $usePeeringManagers = true) |
|
84 | 84 | array('translator', $translator), |
85 | 85 | array('repositories', $repositories), |
86 | 86 | array('Auth/UserTokenGenerator', $tokenGenerator), |
87 | - array('ControllerPluginManager',$pluginManager), |
|
87 | + array('ControllerPluginManager', $pluginManager), |
|
88 | 88 | ))); |
89 | 89 | |
90 | 90 | /* |
@@ -62,7 +62,7 @@ |
||
62 | 62 | ->method('get') |
63 | 63 | ->will($this->returnValueMap( |
64 | 64 | array( |
65 | - array('repositories',$repositories), |
|
65 | + array('repositories', $repositories), |
|
66 | 66 | array('AuthenticationService', $auth) |
67 | 67 | ) |
68 | 68 | )) |
@@ -34,8 +34,8 @@ |
||
34 | 34 | $container->expects($this->exactly(2)) |
35 | 35 | ->method('get') |
36 | 36 | ->willReturnMap([ |
37 | - ['Core/RepositoryService',$container], |
|
38 | - ['Organizations/Organization',$orgRepo] |
|
37 | + ['Core/RepositoryService', $container], |
|
38 | + ['Organizations/Organization', $orgRepo] |
|
39 | 39 | ]) |
40 | 40 | ; |
41 | 41 | $factory = new InviteEmployeeControllerFactory(); |
@@ -47,12 +47,12 @@ |
||
47 | 47 | $container->expects($this->any()) |
48 | 48 | ->method('get') |
49 | 49 | ->willReturnMap([ |
50 | - ['repositories',$container], |
|
51 | - ['Organizations/Organization',$repository], |
|
52 | - ['translator',$translator], |
|
53 | - ['Organizations\ImageFileCache\Manager',$imageFileCacheManager], |
|
54 | - ['Jobs/Job',$jobRepository], |
|
55 | - ['Jobs/JobboardSearchOptions',$options] |
|
50 | + ['repositories', $container], |
|
51 | + ['Organizations/Organization', $repository], |
|
52 | + ['translator', $translator], |
|
53 | + ['Organizations\ImageFileCache\Manager', $imageFileCacheManager], |
|
54 | + ['Jobs/Job', $jobRepository], |
|
55 | + ['Jobs/JobboardSearchOptions', $options] |
|
56 | 56 | ]) |
57 | 57 | ; |
58 | 58 |
@@ -60,7 +60,7 @@ |
||
60 | 60 | { |
61 | 61 | $user = $this->getMockForAbstractClass('\Auth\Entity\UserInterface'); |
62 | 62 | |
63 | - $makeArray = function ($options) use ($user) { |
|
63 | + $makeArray = function($options) use ($user) { |
|
64 | 64 | $options['user'] = $user; |
65 | 65 | return array($options, array_merge(array('user' => $user, 'token' => false, 'template' => 'organizations/mail/invite-employee'), $options)); |
66 | 66 | }; |