@@ -48,7 +48,7 @@ discard block |
||
48 | 48 | |
49 | 49 | public function testSetGetEmptySummaryText() |
50 | 50 | { |
51 | - $input="Klick here"; |
|
51 | + $input = "Klick here"; |
|
52 | 52 | $this->target->setEmptySummaryNotice($input); |
53 | 53 | $this->assertSame($this->target->getEmptySummaryNotice(), $input); |
54 | 54 | } |
@@ -65,8 +65,8 @@ discard block |
||
65 | 65 | public function providerDisableCapable() |
66 | 66 | { |
67 | 67 | return [ |
68 | - [true,true], |
|
69 | - [false,false], |
|
68 | + [true, true], |
|
69 | + [false, false], |
|
70 | 70 | [null, true] |
71 | 71 | ]; |
72 | 72 | } |
@@ -83,8 +83,8 @@ discard block |
||
83 | 83 | public function providerDisableElementCapable() |
84 | 84 | { |
85 | 85 | return [ |
86 | - [true,true], |
|
87 | - [false,false], |
|
86 | + [true, true], |
|
87 | + [false, false], |
|
88 | 88 | [null, true] |
89 | 89 | ]; |
90 | 90 | } |
@@ -46,7 +46,7 @@ discard block |
||
46 | 46 | ]] |
47 | 47 | ]; |
48 | 48 | |
49 | - private $inheritance = [ Select::class, HeadscriptProviderInterface::class ]; |
|
49 | + private $inheritance = [Select::class, HeadscriptProviderInterface::class]; |
|
50 | 50 | |
51 | 51 | public function propertiesProvider() |
52 | 52 | { |
@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | 'getter_method' => 'getValue', |
64 | 64 | 'expect' => $job->getId(), |
65 | 65 | 'value' => $job, |
66 | - 'post' => function () use ($job) { |
|
66 | + 'post' => function() use ($job) { |
|
67 | 67 | $this->assertEquals([0 => '', $job->getId() => $job->getTitle()], $this->target->getValueOptions()); |
68 | 68 | } |
69 | 69 | ]] |
@@ -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 */ |
@@ -38,7 +38,7 @@ |
||
38 | 38 | '@testAddElements' => ['mock' => ['add', 'setButtonElement' => ['with' => 'unread', 'count' => 1]]], |
39 | 39 | ]; |
40 | 40 | |
41 | - private $inheritance = [ SearchForm::class ]; |
|
41 | + private $inheritance = [SearchForm::class]; |
|
42 | 42 | |
43 | 43 | private $attributes = [ |
44 | 44 | 'options' => [ |
@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | |
39 | 39 | private $repository; |
40 | 40 | |
41 | - private $inheritance = [ Paginator::class ]; |
|
41 | + private $inheritance = [Paginator::class]; |
|
42 | 42 | |
43 | 43 | private function getTargetArgs() |
44 | 44 | { |
@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | $qb->expects($this->once())->method('field')->with('title')->will($this->returnSelf()); |
61 | 61 | $qb->expects($this->once())->method('equals')->with( |
62 | 62 | $this->callback(function($value) use ($q) { |
63 | - return $value instanceOf \MongoRegex && (String) $value == '/' . $q . '/i'; |
|
63 | + return $value instanceOf \MongoRegex && (String) $value == '/'.$q.'/i'; |
|
64 | 64 | }) |
65 | 65 | ); |
66 | 66 | $cursor = $this->getMockBuilder(\Doctrine\ODM\MongoDB\Cursor::class)->disableOriginalConstructor()->getMock(); |
@@ -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), |
@@ -89,8 +89,8 @@ |
||
89 | 89 | 'change-not-granted2' => array($user, $app2, 'change', false), |
90 | 90 | 'subsequentAttachmentUpload-not-granted' => array($user, $app, Application::PERMISSION_SUBSEQUENT_ATTACHMENT_UPLOAD, false), |
91 | 91 | 'subsequentAttachmentUpload-granted' => array($user, $app2, Application::PERMISSION_SUBSEQUENT_ATTACHMENT_UPLOAD, true), |
92 | - 'allow-draft-view' => [ $user2, $app3, 'change', true ], |
|
93 | - 'disallow-draft-view' => [ $user, $app3, 'change', false ], |
|
92 | + 'allow-draft-view' => [$user2, $app3, 'change', true], |
|
93 | + 'disallow-draft-view' => [$user, $app3, 'change', false], |
|
94 | 94 | |
95 | 95 | ); |
96 | 96 | } |
@@ -60,7 +60,7 @@ |
||
60 | 60 | // ), |
61 | 61 | // ) |
62 | 62 | |
63 | - // Initial configuration with which to seed the ServiceManager. |
|
64 | - // Should be compatible with Zend\ServiceManager\Config. |
|
65 | - // 'service_manager' => array(), |
|
63 | + // Initial configuration with which to seed the ServiceManager. |
|
64 | + // Should be compatible with Zend\ServiceManager\Config. |
|
65 | + // 'service_manager' => array(), |
|
66 | 66 | ); |
@@ -3,8 +3,8 @@ |
||
3 | 3 | |
4 | 4 | return array( |
5 | 5 | // This should be an array of module namespaces used in the application. |
6 | - 'modules' => array_merge($commonModules,array( |
|
7 | - 'Core', 'Auth', 'Jobs', 'Organizations', 'Applications', 'Cv', 'Settings' |
|
6 | + 'modules' => array_merge($commonModules, array( |
|
7 | + 'Core', 'Auth', 'Jobs', 'Organizations', 'Applications', 'Cv', 'Settings' |
|
8 | 8 | )), |
9 | 9 | |
10 | 10 | // These are various options for the listeners attached to the ModuleManager |
@@ -27,5 +27,5 @@ |
||
27 | 27 | |
28 | 28 | private $target = MissingParentOrganizationException::class; |
29 | 29 | |
30 | - private $inheritance = [ ExceptionInterface::class ]; |
|
30 | + private $inheritance = [ExceptionInterface::class]; |
|
31 | 31 | } |
32 | 32 | \ No newline at end of file |
@@ -45,17 +45,17 @@ |
||
45 | 45 | $container->expects($this->any()) |
46 | 46 | ->method('get') |
47 | 47 | ->willReturnMap([ |
48 | - ['repositories',$container], |
|
49 | - ['Organizations/Organization',$repository], |
|
50 | - ['translator',$translator], |
|
51 | - ['Organizations\ImageFileCache\Manager',$imageFileCacheManager], |
|
52 | - ['Jobs/Job',$jobRepository], |
|
53 | - ['Jobs/JobboardSearchOptions',$options] |
|
48 | + ['repositories', $container], |
|
49 | + ['Organizations/Organization', $repository], |
|
50 | + ['translator', $translator], |
|
51 | + ['Organizations\ImageFileCache\Manager', $imageFileCacheManager], |
|
52 | + ['Jobs/Job', $jobRepository], |
|
53 | + ['Jobs/JobboardSearchOptions', $options] |
|
54 | 54 | ]) |
55 | 55 | ; |
56 | 56 | |
57 | 57 | $factory = new ProfileControllerFactory(); |
58 | - $controller = $factory($container,'some-name'); |
|
59 | - $this->assertInstanceOf(ProfileController::class,$controller); |
|
58 | + $controller = $factory($container, 'some-name'); |
|
59 | + $this->assertInstanceOf(ProfileController::class, $controller); |
|
60 | 60 | } |
61 | 61 | } |
@@ -32,15 +32,15 @@ |
||
32 | 32 | $container->expects($this->exactly(2)) |
33 | 33 | ->method('get') |
34 | 34 | ->willReturnMap([ |
35 | - ['Core/RepositoryService',$container], |
|
36 | - ['Organizations/Organization',$orgRepo] |
|
35 | + ['Core/RepositoryService', $container], |
|
36 | + ['Organizations/Organization', $orgRepo] |
|
37 | 37 | ]) |
38 | 38 | ; |
39 | 39 | $factory = new InviteEmployeeControllerFactory(); |
40 | 40 | |
41 | 41 | $this->assertInstanceOf( |
42 | 42 | InviteEmployeeController::class, |
43 | - $factory($container,'some-name') |
|
43 | + $factory($container, 'some-name') |
|
44 | 44 | ); |
45 | 45 | } |
46 | 46 | } |