@@ -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 | } |
@@ -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 | } |
@@ -60,7 +60,7 @@ discard block |
||
| 60 | 60 | ->method('get') |
| 61 | 61 | ->will($this->returnValueMap( |
| 62 | 62 | array( |
| 63 | - array('repositories',$repositories), |
|
| 63 | + array('repositories', $repositories), |
|
| 64 | 64 | array('AuthenticationService', $auth) |
| 65 | 65 | ) |
| 66 | 66 | )) |
@@ -71,7 +71,7 @@ discard block |
||
| 71 | 71 | * Test start here |
| 72 | 72 | */ |
| 73 | 73 | |
| 74 | - $plugin = $target->__invoke($services,'irrelevant'); |
|
| 74 | + $plugin = $target->__invoke($services, 'irrelevant'); |
|
| 75 | 75 | |
| 76 | 76 | $this->assertInstanceOf('\Organizations\Controller\Plugin\AcceptInvitationHandler', $plugin); |
| 77 | 77 | $this->assertSame($userRep, $plugin->getUserRepository()); |
@@ -78,17 +78,17 @@ |
||
| 78 | 78 | $services->expects($this->exactly(5)) |
| 79 | 79 | ->method('get') |
| 80 | 80 | ->will($this->returnValueMap(array( |
| 81 | - array('ValidatorManager', $validators), // get ha signature ($name, $usePeeringManagers = true) |
|
| 81 | + array('ValidatorManager', $validators), // get ha signature ($name, $usePeeringManagers = true) |
|
| 82 | 82 | array('translator', $translator), |
| 83 | 83 | array('repositories', $repositories), |
| 84 | 84 | array('Auth/UserTokenGenerator', $tokenGenerator), |
| 85 | - array('ControllerPluginManager',$pluginManager), |
|
| 85 | + array('ControllerPluginManager', $pluginManager), |
|
| 86 | 86 | ))); |
| 87 | 87 | |
| 88 | 88 | /* |
| 89 | 89 | * test start here |
| 90 | 90 | */ |
| 91 | - $plugin = $target->__invoke($services,'irrelevant'); |
|
| 91 | + $plugin = $target->__invoke($services, 'irrelevant'); |
|
| 92 | 92 | |
| 93 | 93 | $this->assertInstanceOf('\Organizations\Controller\Plugin\InvitationHandler', $plugin); |
| 94 | 94 | $this->assertSame($tokenGenerator, $plugin->getUserTokenGenerator()); |
@@ -48,7 +48,7 @@ |
||
| 48 | 48 | ->with('appendFile', array('modules/Organizations/js/organizations.employees.js')) |
| 49 | 49 | ->willReturn(null); |
| 50 | 50 | |
| 51 | - $basepath = $this->getMockBuilder('\Zend\View\Helper\BasePath')->disableOriginalConstructor()->getMock(); |
|
| 51 | + $basepath = $this->getMockBuilder('\Zend\View\Helper\BasePath')->disableOriginalConstructor()->getMock(); |
|
| 52 | 52 | $basepath->expects($this->once()) |
| 53 | 53 | ->method('__invoke') |
| 54 | 54 | ->with('modules/Organizations/js/organizations.employees.js') |
@@ -53,7 +53,7 @@ |
||
| 53 | 53 | $services->expects($this->once()) |
| 54 | 54 | ->method('get')->with('repositories')->willReturn($repos); |
| 55 | 55 | |
| 56 | - $fieldset = $target->__invoke($services,'irrelevant'); |
|
| 56 | + $fieldset = $target->__invoke($services, 'irrelevant'); |
|
| 57 | 57 | |
| 58 | 58 | $this->assertInstanceOf('\Organizations\Form\EmployeeFieldset', $fieldset); |
| 59 | 59 | |