@@ -32,7 +32,7 @@ |
||
| 32 | 32 | $this->serviceLocator = $serviceLocator; |
| 33 | 33 | } |
| 34 | 34 | |
| 35 | - public function attach(EventManagerInterface $events, $priority=1000) |
|
| 35 | + public function attach(EventManagerInterface $events, $priority = 1000) |
|
| 36 | 36 | { |
| 37 | 37 | $eventsApplication = $this->serviceLocator->get("Application")->getEventManager(); |
| 38 | 38 | |
@@ -125,16 +125,16 @@ |
||
| 125 | 125 | |
| 126 | 126 | public function setParams($params) |
| 127 | 127 | { |
| 128 | - if(is_array($params)){ |
|
| 129 | - if(isset($params['paginatorParams'])){ |
|
| 128 | + if (is_array($params)) { |
|
| 129 | + if (isset($params['paginatorParams'])) { |
|
| 130 | 130 | $this->setPaginatorParams($params['paginatorParams']); |
| 131 | 131 | unset($params['paginatorParams']); |
| 132 | 132 | } |
| 133 | - if(isset($params['paginators'])){ |
|
| 133 | + if (isset($params['paginators'])) { |
|
| 134 | 134 | $this->setPaginators($params['paginators']); |
| 135 | 135 | unset($params['paginators']); |
| 136 | 136 | } |
| 137 | - if(isset($params['paginatorName'])){ |
|
| 137 | + if (isset($params['paginatorName'])) { |
|
| 138 | 138 | $this->setPaginatorName($params['paginatorName']); |
| 139 | 139 | unset($params['paginatorName']); |
| 140 | 140 | } |
@@ -116,7 +116,7 @@ discard block |
||
| 116 | 116 | */ |
| 117 | 117 | public function getKeys() |
| 118 | 118 | { |
| 119 | - return $this->collection->map(function ($element) { |
|
| 119 | + return $this->collection->map(function($element) { |
|
| 120 | 120 | return $this->getKey($element); |
| 121 | 121 | })->toArray(); |
| 122 | 122 | } |
@@ -302,7 +302,7 @@ discard block |
||
| 302 | 302 | */ |
| 303 | 303 | public function offsetExists($offset) |
| 304 | 304 | { |
| 305 | - return (bool)$this->getElement($offset); |
|
| 305 | + return (bool) $this->getElement($offset); |
|
| 306 | 306 | } |
| 307 | 307 | |
| 308 | 308 | /** |
@@ -352,7 +352,7 @@ discard block |
||
| 352 | 352 | { |
| 353 | 353 | if (!isset($this->identityExtractor)) { |
| 354 | 354 | // default identity extractor |
| 355 | - $this->identityExtractor = function ($element) { |
|
| 355 | + $this->identityExtractor = function($element) { |
|
| 356 | 356 | if (!is_callable([$element, 'getId'])) { |
| 357 | 357 | throw new \LogicException('$element must have getId() method'); |
| 358 | 358 | } |
@@ -379,7 +379,7 @@ discard block |
||
| 379 | 379 | */ |
| 380 | 380 | protected function getElement($key) |
| 381 | 381 | { |
| 382 | - return $this->collection->filter(function ($element) use ($key) { |
|
| 382 | + return $this->collection->filter(function($element) use ($key) { |
|
| 383 | 383 | return $this->getKey($element) == $key; |
| 384 | 384 | })->first(); |
| 385 | 385 | } |
@@ -44,7 +44,7 @@ discard block |
||
| 44 | 44 | * |
| 45 | 45 | * @var string |
| 46 | 46 | */ |
| 47 | - const CLASS_NAME = ''; |
|
| 47 | + const CLASS_NAME = ''; |
|
| 48 | 48 | |
| 49 | 49 | /** |
| 50 | 50 | * Creation options. |
@@ -82,7 +82,7 @@ discard block |
||
| 82 | 82 | $instance = $this->createFormInstance($container, $requestedName, $options); |
| 83 | 83 | |
| 84 | 84 | if (!$instance instanceof CustomizableFieldsetInterface) { |
| 85 | - throw new \RuntimeException('Form or Fieldset instance must implement ' . CustomizableFieldsetInterface::class); |
|
| 85 | + throw new \RuntimeException('Form or Fieldset instance must implement '.CustomizableFieldsetInterface::class); |
|
| 86 | 86 | } |
| 87 | 87 | |
| 88 | 88 | $customizeOptions = $this->getCustomizationOptions($container, $requestedName, $options); |
@@ -95,7 +95,7 @@ discard block |
||
| 95 | 95 | |
| 96 | 96 | $strategy = new TreeSelectStrategy(); |
| 97 | 97 | $strategy->setTreeRoot($root); |
| 98 | - $strategy->setAllowSelectMultipleItems(function () use ($select) { |
|
| 98 | + $strategy->setAllowSelectMultipleItems(function() use ($select) { |
|
| 99 | 99 | return $select->isMultiple(); |
| 100 | 100 | }); |
| 101 | 101 | |
@@ -144,7 +144,7 @@ discard block |
||
| 144 | 144 | * |
| 145 | 145 | * @return array |
| 146 | 146 | */ |
| 147 | - protected function createValueOptions(NodeInterface $node, $allowSelectNodes = false, $isRoot=true) |
|
| 147 | + protected function createValueOptions(NodeInterface $node, $allowSelectNodes = false, $isRoot = true) |
|
| 148 | 148 | { |
| 149 | 149 | $key = $isRoot ? $node->getValue() : $node->getValueWithParents(); |
| 150 | 150 | $name = $node->getName(); |
@@ -57,9 +57,9 @@ |
||
| 57 | 57 | $helper->setOption('theme', 'modern'); |
| 58 | 58 | $helper->setOption('selector', 'div.tinymce_light'); |
| 59 | 59 | |
| 60 | - if (in_array($lang, [ 'de', 'fr', 'it', 'es', 'hi', 'ar', 'ru', 'zh', 'tr' ])) { |
|
| 60 | + if (in_array($lang, ['de', 'fr', 'it', 'es', 'hi', 'ar', 'ru', 'zh', 'tr'])) { |
|
| 61 | 61 | $helper->setOption('language', $lang); |
| 62 | - $helper->setOption('language_url', $basePath('modules/Core/js/tinymce-lang/') . $lang . '.js'); |
|
| 62 | + $helper->setOption('language_url', $basePath('modules/Core/js/tinymce-lang/').$lang.'.js'); |
|
| 63 | 63 | } |
| 64 | 64 | |
| 65 | 65 | return $helper; |
@@ -30,7 +30,7 @@ |
||
| 30 | 30 | /* @var $serviceLocator \Zend\View\HelperPluginManager */ |
| 31 | 31 | $options = $container->get('Auth/Options'); |
| 32 | 32 | $config = $container->get('Config'); |
| 33 | - $helper = new SocialButtons($options,$config); |
|
| 33 | + $helper = new SocialButtons($options, $config); |
|
| 34 | 34 | return $helper; |
| 35 | 35 | } |
| 36 | 36 | } |
@@ -72,7 +72,7 @@ |
||
| 72 | 72 | try { |
| 73 | 73 | $constructorArgs[] = $container->get($serviceName); |
| 74 | 74 | } catch (\Exception $x) { |
| 75 | - echo __CLASS__ . " couldn't create an instance of {$p->getName()} to satisfy the constructor for $requestedName."; |
|
| 75 | + echo __CLASS__." couldn't create an instance of {$p->getName()} to satisfy the constructor for $requestedName."; |
|
| 76 | 76 | exit; |
| 77 | 77 | } |
| 78 | 78 | } |
@@ -26,6 +26,6 @@ |
||
| 26 | 26 | $repositories = $container->get('repositories'); |
| 27 | 27 | $coreFileEvents = $container->get('Core/File/Events'); |
| 28 | 28 | |
| 29 | - return new FileController($repositories,$coreFileEvents); |
|
| 29 | + return new FileController($repositories, $coreFileEvents); |
|
| 30 | 30 | } |
| 31 | 31 | } |