@@ -34,9 +34,9 @@ discard block |
||
34 | 34 | public function testInit() |
35 | 35 | { |
36 | 36 | $target = $this->getMockBuilder('\Install\Form\Installation') |
37 | - ->setMethods(array('add', 'setName', 'setAttributes')) |
|
38 | - ->disableOriginalConstructor() |
|
39 | - ->getMock(); |
|
37 | + ->setMethods(array('add', 'setName', 'setAttributes')) |
|
38 | + ->disableOriginalConstructor() |
|
39 | + ->getMock(); |
|
40 | 40 | |
41 | 41 | $add1 = array( |
42 | 42 | 'type' => 'Text', |
@@ -74,19 +74,19 @@ discard block |
||
74 | 74 | ); |
75 | 75 | |
76 | 76 | $target->expects($this->exactly(4)) |
77 | - ->method('add') |
|
78 | - ->withConsecutive( |
|
79 | - array($add1), |
|
80 | - array($add2), |
|
81 | - array($add3), |
|
82 | - array($add4) |
|
83 | - )->will($this->returnSelf()); |
|
77 | + ->method('add') |
|
78 | + ->withConsecutive( |
|
79 | + array($add1), |
|
80 | + array($add2), |
|
81 | + array($add3), |
|
82 | + array($add4) |
|
83 | + )->will($this->returnSelf()); |
|
84 | 84 | |
85 | 85 | $target->expects($this->once())->method('setName')->with('installation'); |
86 | 86 | $target->expects($this->once())->method('setAttributes')->with( |
87 | 87 | array( |
88 | - 'method' => 'post', |
|
89 | - ) |
|
88 | + 'method' => 'post', |
|
89 | + ) |
|
90 | 90 | ); |
91 | 91 | /* @var $target \PHPUnit_Framework_MockObject_MockObject|\Install\Form\Installation */ |
92 | 92 | $target->init(); |
@@ -103,7 +103,7 @@ discard block |
||
103 | 103 | ), |
104 | 104 | 'validators' => array( |
105 | 105 | array('name' => MongoDbConnectionString::class, |
106 | - 'break_chain_on_failure' => true), |
|
106 | + 'break_chain_on_failure' => true), |
|
107 | 107 | array('name' => MongoDbConnection::class), |
108 | 108 | ), |
109 | 109 | ), |
@@ -29,5 +29,5 @@ |
||
29 | 29 | |
30 | 30 | private $target = MissingParentOrganizationException::class; |
31 | 31 | |
32 | - private $inheritance = [ ExceptionInterface::class ]; |
|
32 | + private $inheritance = [ExceptionInterface::class]; |
|
33 | 33 | } |
@@ -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 |
@@ -46,7 +46,7 @@ discard block |
||
46 | 46 | $target = new InvitationHandlerFactory(); |
47 | 47 | |
48 | 48 | $tokenGenerator = $this->getMockBuilder('\Auth\Service\UserUniqueTokenGenerator') |
49 | - ->disableOriginalConstructor()->getMock(); |
|
49 | + ->disableOriginalConstructor()->getMock(); |
|
50 | 50 | |
51 | 51 | $userRepository = $this->getMockBuilder('\Auth\Repository\User')->disableOriginalConstructor()->getMock(); |
52 | 52 | |
@@ -56,8 +56,8 @@ discard block |
||
56 | 56 | $translator = new \Zend\I18n\Translator\Translator(); |
57 | 57 | |
58 | 58 | $mailer = $this->getMockBuilder('\Core\Controller\Plugin\Mailer') |
59 | - ->disableOriginalConstructor() |
|
60 | - ->getMock() |
|
59 | + ->disableOriginalConstructor() |
|
60 | + ->getMock() |
|
61 | 61 | ; |
62 | 62 | |
63 | 63 | $pluginManager = $this->getMockBuilder(PluginManager::class) |
@@ -78,14 +78,14 @@ discard block |
||
78 | 78 | |
79 | 79 | $services = $this->getMockBuilder('\Zend\ServiceManager\ServiceManager')->disableOriginalConstructor()->getMock(); |
80 | 80 | $services->expects($this->exactly(5)) |
81 | - ->method('get') |
|
82 | - ->will($this->returnValueMap(array( |
|
83 | - array('ValidatorManager', $validators), // get ha signature ($name, $usePeeringManagers = true) |
|
84 | - array('translator', $translator), |
|
85 | - array('repositories', $repositories), |
|
86 | - array('Auth/UserTokenGenerator', $tokenGenerator), |
|
87 | - array('ControllerPluginManager',$pluginManager), |
|
88 | - ))); |
|
81 | + ->method('get') |
|
82 | + ->will($this->returnValueMap(array( |
|
83 | + array('ValidatorManager', $validators), // get ha signature ($name, $usePeeringManagers = true) |
|
84 | + array('translator', $translator), |
|
85 | + array('repositories', $repositories), |
|
86 | + array('Auth/UserTokenGenerator', $tokenGenerator), |
|
87 | + array('ControllerPluginManager',$pluginManager), |
|
88 | + ))); |
|
89 | 89 | |
90 | 90 | /* |
91 | 91 | * test start here |
@@ -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 | /* |
@@ -55,17 +55,17 @@ |
||
55 | 55 | $auth = $this->getMockBuilder('\Auth\AuthenticationService')->disableOriginalConstructor()->getMock(); |
56 | 56 | |
57 | 57 | $services = $this->getMockBuilder('\Zend\ServiceManager\ServiceManager') |
58 | - ->disableOriginalConstructor() |
|
59 | - ->getMock() |
|
58 | + ->disableOriginalConstructor() |
|
59 | + ->getMock() |
|
60 | 60 | ; |
61 | 61 | $services->expects($this->exactly(2)) |
62 | - ->method('get') |
|
63 | - ->will($this->returnValueMap( |
|
64 | - array( |
|
62 | + ->method('get') |
|
63 | + ->will($this->returnValueMap( |
|
64 | + array( |
|
65 | 65 | array('repositories',$repositories), |
66 | 66 | array('AuthenticationService', $auth) |
67 | 67 | ) |
68 | - )) |
|
68 | + )) |
|
69 | 69 | ; |
70 | 70 | |
71 | 71 | $target = new AcceptInvitationHandlerFactory(); |
@@ -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 |