@@ -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'; |
|
@@ -52,7 +52,7 @@ |
||
| 52 | 52 | |
| 53 | 53 | $services->expects($this->once())->method('get')->with('EventManager')->willReturn($eventManager); |
| 54 | 54 | |
| 55 | - $events = $target->__invoke($services,'irrelevant'); |
|
| 55 | + $events = $target->__invoke($services, 'irrelevant'); |
|
| 56 | 56 | |
| 57 | 57 | $this->assertSame($eventManager, $events); |
| 58 | 58 | $this->assertAttributeInstanceOf($expectedEventClass, 'eventPrototype', $events); |
@@ -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 | } |
@@ -39,7 +39,7 @@ |
||
| 39 | 39 | $factory = new ModuleOptionsFactory; |
| 40 | 40 | $defaultOption = new ModuleOptions(array()); |
| 41 | 41 | |
| 42 | - $object = $factory->__invoke($serviceManager,'irrelevant'); |
|
| 42 | + $object = $factory->__invoke($serviceManager, 'irrelevant'); |
|
| 43 | 43 | |
| 44 | 44 | $this->assertInstanceOf('Jobs\Options\ModuleOptions', $object); |
| 45 | 45 | |
@@ -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 | } |
@@ -80,7 +80,7 @@ |
||
| 80 | 80 | $sm = $this->getServiceManagerMock(); |
| 81 | 81 | $sm->setService('ApplicationConfig', $appConfig); |
| 82 | 82 | |
| 83 | - $builder = $this->target->__invoke($sm,'irrelevant'); |
|
| 83 | + $builder = $this->target->__invoke($sm, 'irrelevant'); |
|
| 84 | 84 | |
| 85 | 85 | $this->assertAttributeSame($expectModulePath, 'moduleConfigPath', $builder); |
| 86 | 86 | $this->assertAttributeSame($expectGlobalPaths, 'globalConfigPaths', $builder); |
@@ -43,7 +43,7 @@ discard block |
||
| 43 | 43 | '@testCreateService' => ['mock' => ['__invoke' => ['count' => 1]]], |
| 44 | 44 | ]; |
| 45 | 45 | |
| 46 | - private $inheritance = [ FactoryInterface::class ]; |
|
| 46 | + private $inheritance = [FactoryInterface::class]; |
|
| 47 | 47 | |
| 48 | 48 | |
| 49 | 49 | public function testCreateService() |
@@ -51,7 +51,7 @@ discard block |
||
| 51 | 51 | $container = $this->getServiceManagerMock(); |
| 52 | 52 | $formElements = $this->getPluginManagerMock($container); |
| 53 | 53 | |
| 54 | - $this->target->__invoke($container,OrganizationSelect::class); |
|
| 54 | + $this->target->__invoke($container, OrganizationSelect::class); |
|
| 55 | 55 | } |
| 56 | 56 | |
| 57 | 57 | public function testServiceCreationWithoutPreSelectedOrganization() |