@@ -58,7 +58,7 @@ |
||
58 | 58 | // ), |
59 | 59 | // ) |
60 | 60 | |
61 | - // Initial configuration with which to seed the ServiceManager. |
|
62 | - // Should be compatible with Zend\ServiceManager\Config. |
|
63 | - // 'service_manager' => array(), |
|
61 | + // Initial configuration with which to seed the ServiceManager. |
|
62 | + // Should be compatible with Zend\ServiceManager\Config. |
|
63 | + // 'service_manager' => array(), |
|
64 | 64 | ); |
65 | 65 | \ No newline at end of file |
@@ -99,8 +99,8 @@ |
||
99 | 99 | $application->expects($this->once())->method('getServiceManager')->willReturn($services); |
100 | 100 | |
101 | 101 | $event = $this->getMockBuilder('\Zend\Mvc\MvcEvent') |
102 | - ->disableOriginalConstructor() |
|
103 | - ->getMock(); |
|
102 | + ->disableOriginalConstructor() |
|
103 | + ->getMock(); |
|
104 | 104 | |
105 | 105 | $event->expects($this->once())->method('getApplication')->willReturn($application); |
106 | 106 |
@@ -33,9 +33,9 @@ discard block |
||
33 | 33 | public function testInit() |
34 | 34 | { |
35 | 35 | $target = $this->getMockBuilder('\Install\Form\Installation') |
36 | - ->setMethods(array('add', 'setName', 'setAttributes')) |
|
37 | - ->disableOriginalConstructor() |
|
38 | - ->getMock(); |
|
36 | + ->setMethods(array('add', 'setName', 'setAttributes')) |
|
37 | + ->disableOriginalConstructor() |
|
38 | + ->getMock(); |
|
39 | 39 | |
40 | 40 | $add1 = array( |
41 | 41 | 'type' => 'Text', |
@@ -73,18 +73,18 @@ discard block |
||
73 | 73 | ); |
74 | 74 | |
75 | 75 | $target->expects($this->exactly(4)) |
76 | - ->method('add') |
|
77 | - ->withConsecutive( |
|
78 | - array($add1), |
|
79 | - array($add2), |
|
80 | - array($add3), |
|
81 | - array($add4) |
|
82 | - )->will($this->returnSelf()); |
|
76 | + ->method('add') |
|
77 | + ->withConsecutive( |
|
78 | + array($add1), |
|
79 | + array($add2), |
|
80 | + array($add3), |
|
81 | + array($add4) |
|
82 | + )->will($this->returnSelf()); |
|
83 | 83 | |
84 | 84 | $target->expects($this->once())->method('setName')->with('installation'); |
85 | 85 | $target->expects($this->once())->method('setAttributes')->with(array( |
86 | - 'method' => 'post', |
|
87 | - ) |
|
86 | + 'method' => 'post', |
|
87 | + ) |
|
88 | 88 | ); |
89 | 89 | /* @var $target \PHPUnit_Framework_MockObject_MockObject|\Install\Form\Installation */ |
90 | 90 | $target->init(); |
@@ -101,7 +101,7 @@ discard block |
||
101 | 101 | ), |
102 | 102 | 'validators' => array( |
103 | 103 | array('name' => MongoDbConnectionString::class, |
104 | - 'break_chain_on_failure' => true), |
|
104 | + 'break_chain_on_failure' => true), |
|
105 | 105 | array('name' => MongoDbConnection::class), |
106 | 106 | ), |
107 | 107 | ), |
@@ -35,9 +35,9 @@ |
||
35 | 35 | private $target = [ |
36 | 36 | JobSelectFactory::class, |
37 | 37 | '@testCreateService' => [ |
38 | - 'mock' => [ |
|
39 | - '__invoke' => ['@with' => 'getServiceManagerMock', 'count' => 1] |
|
40 | - ] |
|
38 | + 'mock' => [ |
|
39 | + '__invoke' => ['@with' => 'getServiceManagerMock', 'count' => 1] |
|
40 | + ] |
|
41 | 41 | ], |
42 | 42 | ]; |
43 | 43 |
@@ -38,9 +38,9 @@ discard block |
||
38 | 38 | private $target = [ |
39 | 39 | JobSelectValuesFactory::class, |
40 | 40 | '@testCreateService' => [ |
41 | - 'mock' => [ |
|
42 | - '__invoke' => ['@with' => 'getInvokeArgs', 'count' => 1] |
|
43 | - ] |
|
41 | + 'mock' => [ |
|
42 | + '__invoke' => ['@with' => 'getInvokeArgs', 'count' => 1] |
|
43 | + ] |
|
44 | 44 | ], |
45 | 45 | ]; |
46 | 46 | |
@@ -59,13 +59,13 @@ discard block |
||
59 | 59 | public function testServiceCreation() |
60 | 60 | { |
61 | 61 | $paginator = $this |
62 | - ->getMockBuilder(JobSelectPaginator::class) |
|
63 | - ->disableOriginalConstructor() |
|
64 | - ->getMock() |
|
62 | + ->getMockBuilder(JobSelectPaginator::class) |
|
63 | + ->disableOriginalConstructor() |
|
64 | + ->getMock() |
|
65 | 65 | ; |
66 | 66 | $paginators = $this->createPluginManagerMock( |
67 | - [JobSelectPaginator::class => $paginator], |
|
68 | - $this->getServiceManagerMock() |
|
67 | + [JobSelectPaginator::class => $paginator], |
|
68 | + $this->getServiceManagerMock() |
|
69 | 69 | ); |
70 | 70 | $container = $this->createServiceManagerMock(['Core/PaginatorService' => $paginators]); |
71 | 71 |
@@ -39,9 +39,9 @@ discard block |
||
39 | 39 | private $target = [ |
40 | 40 | JobSelectPaginatorFactory::class, |
41 | 41 | '@testCreateService' => [ |
42 | - 'mock' => [ |
|
43 | - '__invoke' => ['@with' => 'getInvokeArgs', 'count' => 1] |
|
44 | - ] |
|
42 | + 'mock' => [ |
|
43 | + '__invoke' => ['@with' => 'getInvokeArgs', 'count' => 1] |
|
44 | + ] |
|
45 | 45 | ], |
46 | 46 | ]; |
47 | 47 | |
@@ -60,15 +60,15 @@ discard block |
||
60 | 60 | public function testServiceCreation() |
61 | 61 | { |
62 | 62 | $repository = $this |
63 | - ->getMockBuilder(Job::class) |
|
64 | - ->disableOriginalConstructor() |
|
65 | - ->getMock() |
|
63 | + ->getMockBuilder(Job::class) |
|
64 | + ->disableOriginalConstructor() |
|
65 | + ->getMock() |
|
66 | 66 | ; |
67 | 67 | $repositories = $this |
68 | - ->createPluginManagerMock( |
|
69 | - ['Jobs' => $repository], |
|
70 | - $this->getServiceManagerMock() |
|
71 | - ) |
|
68 | + ->createPluginManagerMock( |
|
69 | + ['Jobs' => $repository], |
|
70 | + $this->getServiceManagerMock() |
|
71 | + ) |
|
72 | 72 | ; |
73 | 73 | $container = $this->createServiceManagerMock(['repositories' => $repositories]); |
74 | 74 |
@@ -94,7 +94,7 @@ |
||
94 | 94 | * @param null|string $expectedErrorKey |
95 | 95 | */ |
96 | 96 | public function testIsValidReturnsOnlyTrueIfEmailAndPrivacyPolicyIsSet($value, $expectedResult, |
97 | - $expectedErrorKey = null) |
|
97 | + $expectedErrorKey = null) |
|
98 | 98 | { |
99 | 99 | $expectedErrors = array(); |
100 | 100 | if (null !== $expectedErrorKey) { |
@@ -84,15 +84,15 @@ |
||
84 | 84 | ]; |
85 | 85 | |
86 | 86 | $add3 = ['type' => 'ToggleButton', |
87 | - 'name' => 'unread', |
|
88 | - 'options' => [ |
|
89 | - 'checked_value' => '1', |
|
90 | - 'unchecked_value' => '0', |
|
91 | - 'label' => 'unread', |
|
92 | - ], |
|
93 | - 'attributes' => [ |
|
94 | - 'data-submit-on-change' => 'true', |
|
95 | - ] |
|
87 | + 'name' => 'unread', |
|
88 | + 'options' => [ |
|
89 | + 'checked_value' => '1', |
|
90 | + 'unchecked_value' => '0', |
|
91 | + 'label' => 'unread', |
|
92 | + ], |
|
93 | + 'attributes' => [ |
|
94 | + 'data-submit-on-change' => 'true', |
|
95 | + ] |
|
96 | 96 | ]; |
97 | 97 | |
98 | 98 | /** @noinspection PhpUndefinedMethodInspection */ |
@@ -70,13 +70,13 @@ |
||
70 | 70 | $app = new Application(); |
71 | 71 | $app2 = new Application(); |
72 | 72 | $app2->getPermissions()->grant($user, PermissionsInterface::PERMISSION_VIEW) |
73 | - ->grant($user2, PermissionsInterface::PERMISSION_CHANGE); |
|
73 | + ->grant($user2, PermissionsInterface::PERMISSION_CHANGE); |
|
74 | 74 | |
75 | 75 | $app3 = new Application(); |
76 | 76 | $app3->setIsDraft(true); |
77 | 77 | //$app3->setUser($user); |
78 | 78 | $app3->getPermissions()->grant($user, PermissionsInterface::PERMISSION_VIEW) |
79 | - ->grant($user2, PermissionsInterface::PERMISSION_CHANGE); |
|
79 | + ->grant($user2, PermissionsInterface::PERMISSION_CHANGE); |
|
80 | 80 | |
81 | 81 | return array( |
82 | 82 | 'nouser-noapp' => array($role, $resource, null, false), |