@@ -86,11 +86,11 @@ |
||
86 | 86 | ->getMock(); |
87 | 87 | |
88 | 88 | $target->expects($this->exactly(2)) |
89 | - ->method('add') |
|
90 | - ->withConsecutive( |
|
89 | + ->method('add') |
|
90 | + ->withConsecutive( |
|
91 | 91 | array($expectAdd1), |
92 | 92 | array($expectAdd2) |
93 | - ); |
|
93 | + ); |
|
94 | 94 | |
95 | 95 | $target->init(); |
96 | 96 | $this->assertEquals('employees', $target->getName()); |
@@ -36,11 +36,11 @@ |
||
36 | 36 | $this->assertInstanceOf('Organizations\Form\Organizations', $this->target); |
37 | 37 | } |
38 | 38 | |
39 | - public function testName(){ |
|
40 | - $this->assertSame($this->target->getName(),'organization-form'); |
|
39 | + public function testName() { |
|
40 | + $this->assertSame($this->target->getName(), 'organization-form'); |
|
41 | 41 | } |
42 | 42 | |
43 | 43 | public function testNumberOfField() { |
44 | - $this->assertSame($this->target->count(),7); |
|
44 | + $this->assertSame($this->target->count(), 7); |
|
45 | 45 | } |
46 | 46 | } |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | |
37 | 37 | public function testNameFormFields() |
38 | 38 | { |
39 | - $this->assertEquals('profile-setting',$this->target->getName()); |
|
39 | + $this->assertEquals('profile-setting', $this->target->getName()); |
|
40 | 40 | $this->assertTrue($this->target->has('profileSetting')); |
41 | 41 | } |
42 | 42 | |
@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | $this->assertTrue($this->target->allowObjectBinding(new Organization())); |
51 | 51 | } |
52 | 52 | |
53 | - public function testGetHydrator(){ |
|
53 | + public function testGetHydrator() { |
|
54 | 54 | $this->assertEquals($this->target->getHydrator(), new EntityHydrator()); |
55 | 55 | } |
56 | 56 | } |
@@ -102,15 +102,15 @@ |
||
102 | 102 | ->getMock(); |
103 | 103 | |
104 | 104 | $target->expects($this->exactly(4)) |
105 | - ->method('add') |
|
106 | - ->withConsecutive( |
|
105 | + ->method('add') |
|
106 | + ->withConsecutive( |
|
107 | 107 | array($expectAdd1), |
108 | 108 | array($expectAdd2), |
109 | 109 | array($expectAdd3), |
110 | 110 | array($expectAdd4) |
111 | 111 | |
112 | 112 | |
113 | - ); |
|
113 | + ); |
|
114 | 114 | |
115 | 115 | $target->init(); |
116 | 116 | } |
@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | */ |
31 | 31 | protected $target; |
32 | 32 | |
33 | - public function setUp(){ |
|
33 | + public function setUp() { |
|
34 | 34 | $this->target = new OrganizationsContactFieldset(); |
35 | 35 | $this->target->init(); |
36 | 36 | } |
@@ -40,8 +40,8 @@ discard block |
||
40 | 40 | $this->assertInstanceOf('Zend\Form\Fieldset', $this->target); |
41 | 41 | } |
42 | 42 | |
43 | - public function testNameFormFields(){ |
|
44 | - $this->assertSame($this->target->getName(),"contact"); |
|
43 | + public function testNameFormFields() { |
|
44 | + $this->assertSame($this->target->getName(), "contact"); |
|
45 | 45 | $this->assertTrue($this->target->has('fax')); |
46 | 46 | $this->assertTrue($this->target->has('phone')); |
47 | 47 | $this->assertTrue($this->target->has('city')); |
@@ -50,15 +50,15 @@ discard block |
||
50 | 50 | $this->assertTrue($this->target->has('street')); |
51 | 51 | } |
52 | 52 | |
53 | - public function testAllowObjectBinding(){ |
|
54 | - $this->assertSame($this->target->allowObjectBinding(new OrganizationContact),true); |
|
53 | + public function testAllowObjectBinding() { |
|
54 | + $this->assertSame($this->target->allowObjectBinding(new OrganizationContact), true); |
|
55 | 55 | } |
56 | 56 | |
57 | - public function testGetInputFilterSpec(){ |
|
58 | - $this->assertSame($this->target->getInputFilterSpecification(),[]); |
|
57 | + public function testGetInputFilterSpec() { |
|
58 | + $this->assertSame($this->target->getInputFilterSpecification(), []); |
|
59 | 59 | } |
60 | 60 | |
61 | - public function testGetHydrator(){ |
|
61 | + public function testGetHydrator() { |
|
62 | 62 | $this->assertEquals($this->target->getHydrator(), new EntityHydrator()); |
63 | 63 | } |
64 | 64 |
@@ -39,8 +39,8 @@ discard block |
||
39 | 39 | $container->expects($this->any()) |
40 | 40 | ->method('get') |
41 | 41 | ->willReturnMap([ |
42 | - ['FilterManager',$filterManager], |
|
43 | - ['repositories',$repositories] |
|
42 | + ['FilterManager', $filterManager], |
|
43 | + ['repositories', $repositories] |
|
44 | 44 | ]) |
45 | 45 | ; |
46 | 46 | |
@@ -60,8 +60,8 @@ discard block |
||
60 | 60 | ; |
61 | 61 | |
62 | 62 | $target = new ListJobPaginatorFactory(); |
63 | - $service = $target($container,'some-name',array()); |
|
63 | + $service = $target($container, 'some-name', array()); |
|
64 | 64 | |
65 | - $this->assertInstanceOf(Paginator::class,$service); |
|
65 | + $this->assertInstanceOf(Paginator::class, $service); |
|
66 | 66 | } |
67 | 67 | } |
@@ -154,7 +154,7 @@ discard block |
||
154 | 154 | { |
155 | 155 | $id = 'someId'; |
156 | 156 | $ext = 'ext'; |
157 | - $name = 'filename.' . $ext; |
|
157 | + $name = 'filename.'.$ext; |
|
158 | 158 | $path = sprintf('d/I/%s.%s', $id, $ext); |
159 | 159 | $resource = 'someResource'; |
160 | 160 | $image = $this->getMockBuilder(ImageEntity::class) |
@@ -183,7 +183,7 @@ discard block |
||
183 | 183 | */ |
184 | 184 | public function testMatchUri($uri, $expected) |
185 | 185 | { |
186 | - $this->assertSame($expected, $this->manager->matchUri($this->options->getUriPath() . $uri)); |
|
186 | + $this->assertSame($expected, $this->manager->matchUri($this->options->getUriPath().$uri)); |
|
187 | 187 | } |
188 | 188 | |
189 | 189 | /** |
@@ -154,7 +154,7 @@ |
||
154 | 154 | { |
155 | 155 | $baseUrl = '/base'; |
156 | 156 | $path = '/some/uri'; |
157 | - $uri = $baseUrl . $path; |
|
157 | + $uri = $baseUrl.$path; |
|
158 | 158 | $this->event->setError(Application::ERROR_ROUTER_NO_MATCH); |
159 | 159 | |
160 | 160 | $this->request->expects($this->once()) |
@@ -32,7 +32,7 @@ discard block |
||
32 | 32 | |
33 | 33 | private $target = WriteAssertion::class; |
34 | 34 | |
35 | - private $inheritance = [ AssertionInterface::class ]; |
|
35 | + private $inheritance = [AssertionInterface::class]; |
|
36 | 36 | |
37 | 37 | public function dataProvider() |
38 | 38 | { |
@@ -45,15 +45,15 @@ discard block |
||
45 | 45 | $validResourceWPerms->setUser($validRole); |
46 | 46 | |
47 | 47 | return [ |
48 | - [ $invalidRole, $invalidResource, 'invalidPrivilege', false ], |
|
49 | - [ $validRole, $invalidResource, 'invalid', false ], |
|
50 | - [ $invalidRole, $validResourceWoPerms, 'invalid', false ], |
|
51 | - [ $invalidRole, $validResourceWPerms, 'invalid', false ], |
|
52 | - [ $invalidRole, $invalidResource, 'edit', false ], |
|
53 | - [ $validRole, $invalidResource, 'edit', false ], |
|
54 | - [ $validRole, $validResourceWPerms, 'invalid', false ], |
|
55 | - [ $validRole, $validResourceWoPerms, 'edit', false ], |
|
56 | - [ $validRole, $validResourceWPerms, 'edit', true ], |
|
48 | + [$invalidRole, $invalidResource, 'invalidPrivilege', false], |
|
49 | + [$validRole, $invalidResource, 'invalid', false], |
|
50 | + [$invalidRole, $validResourceWoPerms, 'invalid', false], |
|
51 | + [$invalidRole, $validResourceWPerms, 'invalid', false], |
|
52 | + [$invalidRole, $invalidResource, 'edit', false], |
|
53 | + [$validRole, $invalidResource, 'edit', false], |
|
54 | + [$validRole, $validResourceWPerms, 'invalid', false], |
|
55 | + [$validRole, $validResourceWoPerms, 'edit', false], |
|
56 | + [$validRole, $validResourceWPerms, 'edit', true], |
|
57 | 57 | |
58 | 58 | ]; |
59 | 59 | } |