@@ -1,7 +1,7 @@ |
||
| 1 | 1 | <?php |
| 2 | -return function ($class) { |
|
| 2 | +return function($class) { |
|
| 3 | 3 | static $map; |
| 4 | - if (!$map) $map = include __DIR__ . '/autoload_classmap.php'; |
|
| 4 | + if (!$map) $map = include __DIR__.'/autoload_classmap.php'; |
|
| 5 | 5 | if (!isset($map[$class])) return false; |
| 6 | 6 | |
| 7 | 7 | return include $map[$class]; |
@@ -1,8 +1,12 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | return function ($class) { |
| 3 | 3 | static $map; |
| 4 | - if (!$map) $map = include __DIR__ . '/autoload_classmap.php'; |
|
| 5 | - if (!isset($map[$class])) return false; |
|
| 4 | + if (!$map) { |
|
| 5 | + $map = include __DIR__ . '/autoload_classmap.php'; |
|
| 6 | + } |
|
| 7 | + if (!isset($map[$class])) { |
|
| 8 | + return false; |
|
| 9 | + } |
|
| 6 | 10 | |
| 7 | 11 | return include $map[$class]; |
| 8 | 12 | }; |
@@ -1,2 +1,2 @@ |
||
| 1 | 1 | <?php |
| 2 | -spl_autoload_register(include __DIR__ . '/autoload_function.php'); |
|
| 2 | +spl_autoload_register(include __DIR__.'/autoload_function.php'); |
|
@@ -309,13 +309,13 @@ discard block |
||
| 309 | 309 | 'Object' => 'Object', |
| 310 | 310 | 'Message' => 'Message', |
| 311 | 311 | |
| 312 | - // CONTACT FORM |
|
| 313 | - 'Contact us' => 'Contact us', |
|
| 314 | - 'A question to ask ?' => 'A question to ask ?', |
|
| 315 | - 'Your name' => 'Your name', |
|
| 316 | - 'Your first name' => 'Your first name', |
|
| 317 | - 'Your email' => 'Your email', |
|
| 318 | - 'I have a technical problem' => 'I have a technical problem', |
|
| 312 | + // CONTACT FORM |
|
| 313 | + 'Contact us' => 'Contact us', |
|
| 314 | + 'A question to ask ?' => 'A question to ask ?', |
|
| 315 | + 'Your name' => 'Your name', |
|
| 316 | + 'Your first name' => 'Your first name', |
|
| 317 | + 'Your email' => 'Your email', |
|
| 318 | + 'I have a technical problem' => 'I have a technical problem', |
|
| 319 | 319 | 'I have a question about games' => 'I have a question about games', |
| 320 | 320 | 'I have not received my lot or my invitation' => 'I have not received my lot or my invitation', |
| 321 | 321 | 'I have a comment or suggestion' => 'I have a comment or suggestion', |
@@ -344,9 +344,9 @@ discard block |
||
| 344 | 344 | 'Previous exceptions' => 'Previous exceptions', |
| 345 | 345 | 'No Exception available' => 'No Exception available', |
| 346 | 346 | 'Other games in' => 'Other games in', |
| 347 | - '' => '', |
|
| 348 | - '' => '', |
|
| 349 | - '' => '', |
|
| 350 | - '' => '', |
|
| 351 | - '' => '', |
|
| 347 | + '' => '', |
|
| 348 | + '' => '', |
|
| 349 | + '' => '', |
|
| 350 | + '' => '', |
|
| 351 | + '' => '', |
|
| 352 | 352 | ); |
@@ -47,7 +47,7 @@ discard block |
||
| 47 | 47 | * General module configurations |
| 48 | 48 | */ |
| 49 | 49 | if (isset($this->Config['BasePath'])) { |
| 50 | - $CKEditor->basePath = $this->Config['BasePath'].'/'; |
|
| 50 | + $CKEditor->basePath = $this->Config['BasePath'].'/'; |
|
| 51 | 51 | } |
| 52 | 52 | if (isset($this->Config['Toolbar'])) { |
| 53 | 53 | $CKEditor->config['toolbar'] = $this->Config['Toolbar']; |
@@ -68,10 +68,10 @@ discard block |
||
| 68 | 68 | $CKEditor->config['stylesSet'] = $this->Config['stylesSet']; |
| 69 | 69 | } |
| 70 | 70 | if (isset($this->Config['contentsCss'])) { |
| 71 | - $CKEditor->config['contentsCss']= $this->Config['contentsCss']; |
|
| 71 | + $CKEditor->config['contentsCss'] = $this->Config['contentsCss']; |
|
| 72 | 72 | } |
| 73 | 73 | if (isset($this->Config['templates_files'])) { |
| 74 | - $CKEditor->config['templates_files'] = $this->Config['templates_files']; |
|
| 74 | + $CKEditor->config['templates_files'] = $this->Config['templates_files']; |
|
| 75 | 75 | } |
| 76 | 76 | |
| 77 | 77 | // El Finder |
@@ -116,7 +116,7 @@ discard block |
||
| 116 | 116 | $CKEditor->config['contentsCss'] = $options['contentsCss']; |
| 117 | 117 | } |
| 118 | 118 | if (isset($options['templates_files'])) { |
| 119 | - $CKEditor->config['templates_files'] = $options['templates_files']; |
|
| 119 | + $CKEditor->config['templates_files'] = $options['templates_files']; |
|
| 120 | 120 | } |
| 121 | 121 | |
| 122 | 122 | // El Finder |
@@ -50,11 +50,11 @@ discard block |
||
| 50 | 50 | return $locales; |
| 51 | 51 | } |
| 52 | 52 | |
| 53 | - /** |
|
| 54 | - * getLocaleService : Recuperer le service des locales |
|
| 55 | - * |
|
| 56 | - * @return Service/Locale $localeService |
|
| 57 | - */ |
|
| 53 | + /** |
|
| 54 | + * getLocaleService : Recuperer le service des locales |
|
| 55 | + * |
|
| 56 | + * @return Service/Locale $localeService |
|
| 57 | + */ |
|
| 58 | 58 | public function getLocaleService() |
| 59 | 59 | { |
| 60 | 60 | if ($this->localeService === null) { |
@@ -64,8 +64,8 @@ discard block |
||
| 64 | 64 | } |
| 65 | 65 | |
| 66 | 66 | /** |
| 67 | - * setLocaleService : set le service locale |
|
| 68 | - */ |
|
| 67 | + * setLocaleService : set le service locale |
|
| 68 | + */ |
|
| 69 | 69 | public function setLocaleService($localeService) |
| 70 | 70 | { |
| 71 | 71 | $this->localeService = $localeService; |
@@ -9,7 +9,7 @@ |
||
| 9 | 9 | public function __construct($property, $value = null) |
| 10 | 10 | { |
| 11 | 11 | $this->property = $property; |
| 12 | - $this->value = $value; |
|
| 12 | + $this->value = $value; |
|
| 13 | 13 | } |
| 14 | 14 | |
| 15 | 15 | public function getProperty() |
@@ -34,10 +34,10 @@ |
||
| 34 | 34 | public function __construct($config) |
| 35 | 35 | { |
| 36 | 36 | if (isset($config['enable'])) { |
| 37 | - $this->enable = (bool)$config['enable']; |
|
| 37 | + $this->enable = (bool) $config['enable']; |
|
| 38 | 38 | } |
| 39 | 39 | if (isset($config['useDefault'])) { |
| 40 | - $this->useDefault = (bool)$config['useDefault']; |
|
| 40 | + $this->useDefault = (bool) $config['useDefault']; |
|
| 41 | 41 | } |
| 42 | 42 | if (isset($config['default'])) { |
| 43 | 43 | foreach ($config['default'] as $key => $value) { |
@@ -29,7 +29,7 @@ discard block |
||
| 29 | 29 | { |
| 30 | 30 | $view = new ViewModel(); |
| 31 | 31 | $this->getConfig(); |
| 32 | - $view->BasePath = $this->Config['BasePath']; |
|
| 32 | + $view->BasePath = $this->Config['BasePath']; |
|
| 33 | 33 | $view->ConnectorPath = '/admin/elfinder/connector'; |
| 34 | 34 | $view->setTerminal(true); |
| 35 | 35 | |
@@ -83,7 +83,7 @@ discard block |
||
| 83 | 83 | public function getConfig() |
| 84 | 84 | { |
| 85 | 85 | if (!$this->Config) { |
| 86 | - $config = $this->getServiceLocator()->get('config'); |
|
| 86 | + $config = $this->getServiceLocator()->get('config'); |
|
| 87 | 87 | if (isset($config['playgroundcore']) && isset($config['playgroundcore']['QuConfig']) && isset($config['playgroundcore']['QuConfig']['QuElFinder'])) { |
| 88 | 88 | $this->Config = $config['playgroundcore']['QuConfig']['QuElFinder']; |
| 89 | 89 | } else { |
@@ -57,8 +57,8 @@ |
||
| 57 | 57 | |
| 58 | 58 | $websites = $this->getWebsiteService()->getWebsiteMapper()->findAll(); |
| 59 | 59 | return new ViewModel(array( |
| 60 | - 'websites' => $websites, |
|
| 61 | - 'form' => $formgen, |
|
| 60 | + 'websites' => $websites, |
|
| 61 | + 'form' => $formgen, |
|
| 62 | 62 | )); |
| 63 | 63 | } |
| 64 | 64 | |
@@ -93,7 +93,7 @@ discard block |
||
| 93 | 93 | { |
| 94 | 94 | $renderer = $this->serviceLocator->get('Laminas\View\Renderer\RendererInterface'); |
| 95 | 95 | $headScript = $this->getServiceLocator()->get('ViewHelperManager')->get('HeadScript'); |
| 96 | - $headScript->appendFile($renderer->adminAssetPath() . '/js/form/parse.form.js'); |
|
| 96 | + $headScript->appendFile($renderer->adminAssetPath().'/js/form/parse.form.js'); |
|
| 97 | 97 | |
| 98 | 98 | $formId = $this->params('form'); |
| 99 | 99 | |
@@ -104,11 +104,11 @@ discard block |
||
| 104 | 104 | { |
| 105 | 105 | $renderer = $this->serviceLocator->get('Laminas\View\Renderer\RendererInterface'); |
| 106 | 106 | $headScript = $this->getServiceLocator()->get('ViewHelperManager')->get('HeadScript'); |
| 107 | - $headScript->appendFile($renderer->adminAssetPath() . '/js/form/create.form.js'); |
|
| 108 | - $headScript->appendFile($renderer->adminAssetPath() . '/js/form/line.text.js'); |
|
| 109 | - $headScript->appendFile($renderer->adminAssetPath() . '/js/form/add.form.js'); |
|
| 110 | - $headScript->appendFile($renderer->adminAssetPath() . '/js/form/json.form.js'); |
|
| 111 | - $headScript->appendFile($renderer->adminAssetPath() . '/js/form/edit.form.js'); |
|
| 107 | + $headScript->appendFile($renderer->adminAssetPath().'/js/form/create.form.js'); |
|
| 108 | + $headScript->appendFile($renderer->adminAssetPath().'/js/form/line.text.js'); |
|
| 109 | + $headScript->appendFile($renderer->adminAssetPath().'/js/form/add.form.js'); |
|
| 110 | + $headScript->appendFile($renderer->adminAssetPath().'/js/form/json.form.js'); |
|
| 111 | + $headScript->appendFile($renderer->adminAssetPath().'/js/form/edit.form.js'); |
|
| 112 | 112 | |
| 113 | 113 | return array(); |
| 114 | 114 | } |