@@ -54,7 +54,7 @@ |
||
54 | 54 | $parameter_instances[] = $container->get($cn); |
55 | 55 | } catch (\Exception $x) { |
56 | 56 | echo __CLASS__ |
57 | - . " couldn't create an instance of $cn to satisfy the constructor for $requestedName."; |
|
57 | + . " couldn't create an instance of $cn to satisfy the constructor for $requestedName."; |
|
58 | 58 | exit; |
59 | 59 | } |
60 | 60 | } else { |
@@ -33,8 +33,8 @@ |
||
33 | 33 | |
34 | 34 | public function canCreate(ContainerInterface $container, $requestedName) |
35 | 35 | { |
36 | - list($module, ) = explode('\\', __NAMESPACE__, 2); |
|
37 | - return strstr($requestedName, $module . '\Controller') !== false; |
|
36 | + list($module,) = explode('\\', __NAMESPACE__, 2); |
|
37 | + return strstr($requestedName, $module.'\Controller') !== false; |
|
38 | 38 | } |
39 | 39 | |
40 | 40 | public function __invoke(ContainerInterface $container, $requestedName, array $options = null) |
@@ -61,8 +61,8 @@ |
||
61 | 61 | $routeMatch->setParam('action', $p); |
62 | 62 | $response = $this->getResponse(); |
63 | 63 | $response->getHeaders() |
64 | - ->addHeaderLine('Content-Type', 'application/json') |
|
65 | - ->addHeaderLine('Content-Encoding', 'utf8'); |
|
64 | + ->addHeaderLine('Content-Type', 'application/json') |
|
65 | + ->addHeaderLine('Content-Encoding', 'utf8'); |
|
66 | 66 | } |
67 | 67 | } |
68 | 68 |
@@ -162,7 +162,7 @@ |
||
162 | 162 | parent::attachDefaultListeners(); |
163 | 163 | |
164 | 164 | $events = $this->getEventManager(); |
165 | - $events->attach(MvcEvent::EVENT_DISPATCH, array( $this, 'preDispatch' ), 100); |
|
165 | + $events->attach(MvcEvent::EVENT_DISPATCH, array($this, 'preDispatch'), 100); |
|
166 | 166 | } |
167 | 167 | |
168 | 168 | /** |
@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | */ |
28 | 28 | public function getConfig() |
29 | 29 | { |
30 | - return ModuleConfigLoader::load(__DIR__ . '/../config'); |
|
30 | + return ModuleConfigLoader::load(__DIR__.'/../config'); |
|
31 | 31 | } |
32 | 32 | |
33 | 33 | |
@@ -41,7 +41,7 @@ discard block |
||
41 | 41 | $createJobListener->attachShared($sharedManager); |
42 | 42 | |
43 | 43 | if ($e->getRequest() instanceof \Zend\Http\Request) { |
44 | - $eventManager->attach(MvcEvent::EVENT_DISPATCH_ERROR, function (MvcEvent $event) { |
|
44 | + $eventManager->attach(MvcEvent::EVENT_DISPATCH_ERROR, function(MvcEvent $event) { |
|
45 | 45 | $serviceManager = $event->getApplication() |
46 | 46 | ->getServiceManager(); |
47 | 47 | $options = $serviceManager->get('Organizations/ImageFileCacheOptions'); |
@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | : $email; |
51 | 51 | |
52 | 52 | $attributesStr = $attributes |
53 | - ? (' ' . $this->createAttributesString($attributes)) |
|
53 | + ? (' '.$this->createAttributesString($attributes)) |
|
54 | 54 | : ''; |
55 | 55 | |
56 | 56 | return sprintf('<a%s href="mailto:%s">%s</a>', $attributesStr, $email, $label); |
@@ -69,7 +69,7 @@ discard block |
||
69 | 69 | $attr = array(); |
70 | 70 | |
71 | 71 | foreach ($attributes as $name => $value) { |
72 | - $attr[] = $escape($name) . (strlen($value) ? ('="' . $escapeAttr($value) . '"') : ''); |
|
72 | + $attr[] = $escape($name).(strlen($value) ? ('="'.$escapeAttr($value).'"') : ''); |
|
73 | 73 | } |
74 | 74 | |
75 | 75 | return implode(' ', $attr); |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -$testConfig = include __DIR__ . '/TestConfig.php'; |
|
3 | +$testConfig = include __DIR__.'/TestConfig.php'; |
|
4 | 4 | |
5 | -require_once __DIR__ . '/../../../test/Bootstrap.php'; |
|
5 | +require_once __DIR__.'/../../../test/Bootstrap.php'; |
@@ -44,6 +44,6 @@ |
||
44 | 44 | ->willReturn($repositories); |
45 | 45 | |
46 | 46 | $listListenerFactory = new ListListenerFactory(); |
47 | - $this->assertInstanceOf(ListListener::class, $listListenerFactory->__invoke($serviceLocator,'irrelevant')); |
|
47 | + $this->assertInstanceOf(ListListener::class, $listListenerFactory->__invoke($serviceLocator, 'irrelevant')); |
|
48 | 48 | } |
49 | 49 | } |
@@ -45,13 +45,13 @@ |
||
45 | 45 | ->getMock(); |
46 | 46 | |
47 | 47 | $repositoriesMock = $this->getMockBuilder('Core\Repository\RepositoryService') |
48 | - ->disableOriginalConstructor() |
|
49 | - ->getMock(); |
|
48 | + ->disableOriginalConstructor() |
|
49 | + ->getMock(); |
|
50 | 50 | |
51 | 51 | $repositoriesMock->expects($this->once()) |
52 | - ->method('get') |
|
53 | - ->with('Jobs/Job') |
|
54 | - ->willReturn($jobRepositoryMock); |
|
52 | + ->method('get') |
|
53 | + ->with('Jobs/Job') |
|
54 | + ->willReturn($jobRepositoryMock); |
|
55 | 55 | |
56 | 56 | $apiJobDehydratorMock = $this->getMockBuilder('Jobs\Model\ApiJobDehydrator') |
57 | 57 | ->disableOriginalConstructor() |
@@ -46,8 +46,8 @@ |
||
46 | 46 | ->getMock(); |
47 | 47 | |
48 | 48 | $repositoriesMock = $this->getMockBuilder('Core\Repository\RepositoryService') |
49 | - ->disableOriginalConstructor() |
|
50 | - ->getMock(); |
|
49 | + ->disableOriginalConstructor() |
|
50 | + ->getMock(); |
|
51 | 51 | |
52 | 52 | $repositoriesMock->expects($this->once()) |
53 | 53 | ->method('get') |
@@ -41,15 +41,15 @@ |
||
41 | 41 | $provider=new ProviderOptions(); |
42 | 42 | |
43 | 43 | $serviceManagerMock = $this->getMockBuilder('\Zend\ServiceManager\ServiceManager') |
44 | - ->disableOriginalConstructor() |
|
45 | - ->getMock(); |
|
44 | + ->disableOriginalConstructor() |
|
45 | + ->getMock(); |
|
46 | 46 | |
47 | 47 | |
48 | 48 | $serviceManagerMock |
49 | - ->expects($this->once()) |
|
50 | - ->method('get') |
|
51 | - ->with('Jobs/Options/Provider') |
|
52 | - ->willReturn($provider) |
|
49 | + ->expects($this->once()) |
|
50 | + ->method('get') |
|
51 | + ->with('Jobs/Options/Provider') |
|
52 | + ->willReturn($provider) |
|
53 | 53 | ; |
54 | 54 | |
55 | 55 | $target = new ChannelPricesFactory(); |
@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | */ |
39 | 39 | public function testInvokation() |
40 | 40 | { |
41 | - $provider=new ProviderOptions(); |
|
41 | + $provider = new ProviderOptions(); |
|
42 | 42 | |
43 | 43 | $serviceManagerMock = $this->getMockBuilder('\Zend\ServiceManager\ServiceManager') |
44 | 44 | ->disableOriginalConstructor() |
@@ -54,7 +54,7 @@ discard block |
||
54 | 54 | |
55 | 55 | $target = new ChannelPricesFactory(); |
56 | 56 | |
57 | - $service = $target->__invoke($serviceManagerMock,'irrelevant'); |
|
57 | + $service = $target->__invoke($serviceManagerMock, 'irrelevant'); |
|
58 | 58 | |
59 | 59 | $this->assertInstanceOf('\Jobs\Filter\ChannelPrices', $service); |
60 | 60 | } |