@@ -1,16 +1,16 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * YAWIK |
|
| 4 | - * Configuration file of the Core module |
|
| 5 | - * |
|
| 6 | - * This file intents to provide the configuration for all other modules |
|
| 7 | - * as well (convention over configuration). |
|
| 8 | - * Having said that, you may always overwrite or extend the configuration |
|
| 9 | - * in your own modules configuration file(s) (or via the config autoloading). |
|
| 10 | - * |
|
| 11 | - * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de) |
|
| 12 | - * @license MIT |
|
| 13 | - */ |
|
| 3 | + * YAWIK |
|
| 4 | + * Configuration file of the Core module |
|
| 5 | + * |
|
| 6 | + * This file intents to provide the configuration for all other modules |
|
| 7 | + * as well (convention over configuration). |
|
| 8 | + * Having said that, you may always overwrite or extend the configuration |
|
| 9 | + * in your own modules configuration file(s) (or via the config autoloading). |
|
| 10 | + * |
|
| 11 | + * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de) |
|
| 12 | + * @license MIT |
|
| 13 | + */ |
|
| 14 | 14 | |
| 15 | 15 | $doctrineConfig = include __DIR__ . '/doctrine.config.php'; |
| 16 | 16 | |
@@ -32,24 +32,24 @@ discard block |
||
| 32 | 32 | 'log' => array( |
| 33 | 33 | 'Core/Log' => array( |
| 34 | 34 | 'writers' => array( |
| 35 | - array( |
|
| 36 | - 'name' => 'stream', |
|
| 35 | + array( |
|
| 36 | + 'name' => 'stream', |
|
| 37 | 37 | 'priority' => 1000, |
| 38 | 38 | 'options' => array( |
| 39 | - 'stream' => __DIR__ .'/../../../log/yawik.log', |
|
| 39 | + 'stream' => __DIR__ .'/../../../log/yawik.log', |
|
| 40 | + ), |
|
| 40 | 41 | ), |
| 41 | - ), |
|
| 42 | 42 | ), |
| 43 | 43 | ), |
| 44 | 44 | 'Log/Core/Mail' => array( |
| 45 | 45 | 'writers' => array( |
| 46 | - array( |
|
| 47 | - 'name' => 'stream', |
|
| 46 | + array( |
|
| 47 | + 'name' => 'stream', |
|
| 48 | 48 | 'priority' => 1000, |
| 49 | 49 | 'options' => array( |
| 50 | - 'stream' => __DIR__ .'/../../../log/mails.log', |
|
| 50 | + 'stream' => __DIR__ .'/../../../log/mails.log', |
|
| 51 | + ), |
|
| 51 | 52 | ), |
| 52 | - ), |
|
| 53 | 53 | ), |
| 54 | 54 | ), |
| 55 | 55 | 'ErrorLogger' => array( |
@@ -197,11 +197,11 @@ discard block |
||
| 197 | 197 | // Defines the Core/Navigation. |
| 198 | 198 | 'navigation' => array( |
| 199 | 199 | 'default' => array( |
| 200 | - 'home' => array( |
|
| 201 | - 'label' => /*@translate*/ 'Home', |
|
| 202 | - 'route' => 'lang', |
|
| 203 | - 'visible' => false |
|
| 204 | - ), |
|
| 200 | + 'home' => array( |
|
| 201 | + 'label' => /*@translate*/ 'Home', |
|
| 202 | + 'route' => 'lang', |
|
| 203 | + 'visible' => false |
|
| 204 | + ), |
|
| 205 | 205 | ), |
| 206 | 206 | ), |
| 207 | 207 | // Configuration of the controller service manager (Which loads controllers) |
@@ -1,12 +1,12 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * YAWIK |
|
| 4 | - * |
|
| 5 | - * @filesource |
|
| 6 | - * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de) |
|
| 7 | - * @license MIT |
|
| 8 | - * @author [email protected] |
|
| 9 | - */ |
|
| 3 | + * YAWIK |
|
| 4 | + * |
|
| 5 | + * @filesource |
|
| 6 | + * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de) |
|
| 7 | + * @license MIT |
|
| 8 | + * @author [email protected] |
|
| 9 | + */ |
|
| 10 | 10 | |
| 11 | 11 | namespace Core\Form\View\Helper; |
| 12 | 12 | |
@@ -30,7 +30,7 @@ discard block |
||
| 30 | 30 | $options=''; |
| 31 | 31 | if (in_array($this->language,['de','fr','it','es'])) { |
| 32 | 32 | $options='language: "'.$this->language.'",'. |
| 33 | - 'language_url: "'. $this->languagePath . $this->language.'.js",'; |
|
| 33 | + 'language_url: "'. $this->languagePath . $this->language.'.js",'; |
|
| 34 | 34 | } |
| 35 | 35 | return $options; |
| 36 | 36 | } |
@@ -14,9 +14,9 @@ discard block |
||
| 14 | 14 | { |
| 15 | 15 | protected $theme = 'light'; |
| 16 | 16 | |
| 17 | - protected $language="de"; |
|
| 17 | + protected $language = "de"; |
|
| 18 | 18 | |
| 19 | - protected $languagePath="/js/tinymce-lang/"; |
|
| 19 | + protected $languagePath = "/js/tinymce-lang/"; |
|
| 20 | 20 | |
| 21 | 21 | protected function additionalOptions() { |
| 22 | 22 | return ' |
@@ -26,11 +26,11 @@ discard block |
||
| 26 | 26 | '.$this->additionalLanguageOptions(); |
| 27 | 27 | } |
| 28 | 28 | |
| 29 | - protected function additionalLanguageOptions(){ |
|
| 30 | - $options=''; |
|
| 31 | - if (in_array($this->language,['de','fr','it','es'])) { |
|
| 32 | - $options='language: "'.$this->language.'",'. |
|
| 33 | - 'language_url: "'. $this->languagePath . $this->language.'.js",'; |
|
| 29 | + protected function additionalLanguageOptions() { |
|
| 30 | + $options = ''; |
|
| 31 | + if (in_array($this->language, ['de', 'fr', 'it', 'es'])) { |
|
| 32 | + $options = 'language: "' . $this->language . '",' . |
|
| 33 | + 'language_url: "' . $this->languagePath . $this->language . '.js",'; |
|
| 34 | 34 | } |
| 35 | 35 | return $options; |
| 36 | 36 | } |
@@ -41,6 +41,6 @@ discard block |
||
| 41 | 41 | * @param $language |
| 42 | 42 | */ |
| 43 | 43 | public function setLanguage($language) { |
| 44 | - $this->language=$language; |
|
| 44 | + $this->language = $language; |
|
| 45 | 45 | } |
| 46 | 46 | } |