@@ -40,7 +40,7 @@ discard block |
||
40 | 40 | |
41 | 41 | $events = $this->getMockBuilder('\Zend\EventManager\EventManager')->disableOriginalConstructor()->getMock(); |
42 | 42 | $events->expects($this->once()) |
43 | - ->method('attach')->with(MvcEvent::EVENT_DISPATCH_ERROR, [ $target, 'onDispatchError' ]) |
|
43 | + ->method('attach')->with(MvcEvent::EVENT_DISPATCH_ERROR, [$target, 'onDispatchError']) |
|
44 | 44 | ->willReturn('worked'); |
45 | 45 | |
46 | 46 | $this->assertSame($target, $target->attach($events), 'Fluent interface broken'); |
@@ -50,14 +50,14 @@ discard block |
||
50 | 50 | public function provideTestData() |
51 | 51 | { |
52 | 52 | return [ |
53 | - [ true, true, true, true ], |
|
54 | - [ false, true, true, false ], |
|
55 | - [ true, false, true, false ], |
|
56 | - [ true, true, false, false ], |
|
57 | - [ false, false, true, false ], |
|
58 | - [ false, true, false, false ], |
|
59 | - [ true, false, false, false ], |
|
60 | - [ false, false, false, false ], |
|
53 | + [true, true, true, true], |
|
54 | + [false, true, true, false], |
|
55 | + [true, false, true, false], |
|
56 | + [true, true, false, false], |
|
57 | + [false, false, true, false], |
|
58 | + [false, true, false, false], |
|
59 | + [true, false, false, false], |
|
60 | + [false, false, false, false], |
|
61 | 61 | ]; |
62 | 62 | } |
63 | 63 |
@@ -81,7 +81,7 @@ |
||
81 | 81 | ->getMock(); |
82 | 82 | $this->serviceManager->expects($this->any()) |
83 | 83 | ->method('get') |
84 | - ->will($this->returnCallback(function ($name) |
|
84 | + ->will($this->returnCallback(function($name) |
|
85 | 85 | { |
86 | 86 | switch ($name) |
87 | 87 | { |
@@ -57,7 +57,7 @@ |
||
57 | 57 | |
58 | 58 | $events->expects($this->once()) |
59 | 59 | ->method('detach') |
60 | - ->with($expCallback,'Zend\Mvc\Application') |
|
60 | + ->with($expCallback, 'Zend\Mvc\Application') |
|
61 | 61 | ->willReturn(true); |
62 | 62 | |
63 | 63 |
@@ -39,7 +39,7 @@ discard block |
||
39 | 39 | */ |
40 | 40 | public function getConfig() |
41 | 41 | { |
42 | - return ModuleConfigLoader::load(__DIR__ . '/../../config'); |
|
42 | + return ModuleConfigLoader::load(__DIR__.'/../../config'); |
|
43 | 43 | } |
44 | 44 | |
45 | 45 | /** |
@@ -71,10 +71,10 @@ discard block |
||
71 | 71 | // This is an hack due to bad design of Hybridauth |
72 | 72 | // This ensures the class from "addtional-providers" is loaded. |
73 | 73 | array( |
74 | - 'Hybrid_Providers_XING' => $addProvidersDir . '/hybridauth-xing/Providers/XING.php', |
|
74 | + 'Hybrid_Providers_XING' => $addProvidersDir.'/hybridauth-xing/Providers/XING.php', |
|
75 | 75 | ), |
76 | 76 | array( |
77 | - 'Hybrid_Providers_Github' => $addProvidersDir. '/hybridauth-github/Providers/GitHub.php', |
|
77 | + 'Hybrid_Providers_Github' => $addProvidersDir.'/hybridauth-github/Providers/GitHub.php', |
|
78 | 78 | ), |
79 | 79 | ), |
80 | 80 | ); |
@@ -90,7 +90,7 @@ discard block |
||
90 | 90 | |
91 | 91 | $eventManager->attach( |
92 | 92 | MvcEvent::EVENT_ROUTE, |
93 | - function (MvcEvent $e) use ($services) { |
|
93 | + function(MvcEvent $e) use ($services) { |
|
94 | 94 | /* @var $checkPermissionsListener \Acl\Listener\CheckPermissionsListener */ |
95 | 95 | $checkPermissionsListener = $services->get('Auth/CheckPermissionsListener'); |
96 | 96 | $checkPermissionsListener->onRoute($e); |
@@ -100,7 +100,7 @@ discard block |
||
100 | 100 | |
101 | 101 | $eventManager->attach( |
102 | 102 | MvcEvent::EVENT_DISPATCH, |
103 | - function (MvcEvent $e) use ($services) { |
|
103 | + function(MvcEvent $e) use ($services) { |
|
104 | 104 | /** @var CheckPermissionsListener $checkPermissionsListener */ |
105 | 105 | $checkPermissionsListener = $services->get('Auth/CheckPermissionsListener'); |
106 | 106 | $checkPermissionsListener->onDispatch($e); |
@@ -1,8 +1,8 @@ |
||
1 | 1 | <?php |
2 | 2 | // Generated by ZF2's ./bin/classmap_generator.php |
3 | 3 | return array( |
4 | - 'InstallTest\Controller\Plugin\PrerequisitesTest' => __DIR__ . '/InstallTest/Controller/Plugin/PrerequisitesTest.php', |
|
5 | - 'InstallTest\Controller\Plugin\YawikConfigCreatorTest' => __DIR__ . '/InstallTest/Controller/Plugin/YawikConfigCreatorTest.php', |
|
6 | - 'InstallTest\Form\InstallationTest' => __DIR__ . '/InstallTest/Form/InstallationTest.php', |
|
7 | - 'InstallTest\Validator\MongoDbConnectionStringTest' => __DIR__ . '/InstallTest/Validator/MongoDbConnectionStringTest.php', |
|
4 | + 'InstallTest\Controller\Plugin\PrerequisitesTest' => __DIR__.'/InstallTest/Controller/Plugin/PrerequisitesTest.php', |
|
5 | + 'InstallTest\Controller\Plugin\YawikConfigCreatorTest' => __DIR__.'/InstallTest/Controller/Plugin/YawikConfigCreatorTest.php', |
|
6 | + 'InstallTest\Form\InstallationTest' => __DIR__.'/InstallTest/Form/InstallationTest.php', |
|
7 | + 'InstallTest\Validator\MongoDbConnectionStringTest' => __DIR__.'/InstallTest/Validator/MongoDbConnectionStringTest.php', |
|
8 | 8 | ); |
@@ -3,7 +3,7 @@ |
||
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( |
|
6 | + 'modules' => array_merge($commonModules, array( |
|
7 | 7 | 'Install', |
8 | 8 | )), |
9 | 9 |
@@ -46,7 +46,7 @@ discard block |
||
46 | 46 | |
47 | 47 | public function setUp() |
48 | 48 | { |
49 | - $this->moduleDir = realpath(__DIR__ . '/../../'); |
|
49 | + $this->moduleDir = realpath(__DIR__.'/../../'); |
|
50 | 50 | $this->target = new Module(); |
51 | 51 | } |
52 | 52 | /** |
@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | |
61 | 61 | public function testProvidesCorrectConfigArray() |
62 | 62 | { |
63 | - $config = include $this->moduleDir . '/config/module.config.php'; |
|
63 | + $config = include $this->moduleDir.'/config/module.config.php'; |
|
64 | 64 | |
65 | 65 | $this->assertEquals($config, $this->target->getConfig()); |
66 | 66 | } |
@@ -47,7 +47,7 @@ |
||
47 | 47 | $services->expects($this->once())->method('get')->with('FilterManager')->willReturn($filters); |
48 | 48 | |
49 | 49 | $target = new YawikConfigCreatorFactory(); |
50 | - $plugin = $target($services,'irrelevant'); |
|
50 | + $plugin = $target($services, 'irrelevant'); |
|
51 | 51 | |
52 | 52 | $this->assertInstanceOf('\Install\Controller\Plugin\YawikConfigCreator', $plugin); |
53 | 53 | } |
@@ -65,10 +65,10 @@ discard block |
||
65 | 65 | ->expects($this->exactly(2)) |
66 | 66 | ->method('get') |
67 | 67 | ->withConsecutive( |
68 | - ['FilterManager'],['doctrine.documentmanager.odm_default'] |
|
68 | + ['FilterManager'], ['doctrine.documentmanager.odm_default'] |
|
69 | 69 | ) |
70 | 70 | ->will($this->onConsecutiveCalls( |
71 | - $filters,$dm |
|
71 | + $filters, $dm |
|
72 | 72 | )) |
73 | 73 | ; |
74 | 74 | |
@@ -86,7 +86,7 @@ discard block |
||
86 | 86 | ; |
87 | 87 | |
88 | 88 | /* @var \Install\Factory\Controller\Plugin\UserCreatorFactory $target */ |
89 | - $plugin = $target($services,'some-name',['connection' => 'some-connection']); |
|
89 | + $plugin = $target($services, 'some-name', ['connection' => 'some-connection']); |
|
90 | 90 | |
91 | 91 | $this->assertInstanceOf('\Install\Controller\Plugin\UserCreator', $plugin); |
92 | 92 | } |