@@ -99,7 +99,7 @@ discard block |
||
99 | 99 | return $this; |
100 | 100 | } |
101 | 101 | |
102 | - public function getUsername(){ |
|
102 | + public function getUsername() { |
|
103 | 103 | return $this->connectionConfig['username']; |
104 | 104 | } |
105 | 105 | |
@@ -110,7 +110,7 @@ discard block |
||
110 | 110 | return $this; |
111 | 111 | } |
112 | 112 | |
113 | - public function getPassword(){ |
|
113 | + public function getPassword() { |
|
114 | 114 | return $this->connectionConfig['password']; |
115 | 115 | } |
116 | 116 | |
@@ -121,7 +121,7 @@ discard block |
||
121 | 121 | return $this; |
122 | 122 | } |
123 | 123 | |
124 | - public function getSsl(){ |
|
124 | + public function getSsl() { |
|
125 | 125 | return $this->connectionConfig['ssl']; |
126 | 126 | } |
127 | 127 | |
@@ -130,7 +130,7 @@ discard block |
||
130 | 130 | return $this; |
131 | 131 | } |
132 | 132 | |
133 | - public function getTransportClass(){ |
|
133 | + public function getTransportClass() { |
|
134 | 134 | return $this->transportClass; |
135 | 135 | } |
136 | 136 | |
@@ -139,7 +139,7 @@ discard block |
||
139 | 139 | */ |
140 | 140 | public function getPath() |
141 | 141 | { |
142 | - if(is_null($this->path) || false == $this->path){ |
|
142 | + if (is_null($this->path) || false == $this->path) { |
|
143 | 143 | $this->setPath(sys_get_temp_dir().'/yawik/mails'); |
144 | 144 | } |
145 | 145 | return $this->path; |
@@ -151,9 +151,9 @@ discard block |
||
151 | 151 | */ |
152 | 152 | public function setPath($path) |
153 | 153 | { |
154 | - if(!is_dir($path) && false !== $path){ |
|
155 | - mkdir($path,0777,true); |
|
156 | - chmod($path,0777); |
|
154 | + if (!is_dir($path) && false !== $path) { |
|
155 | + mkdir($path, 0777, true); |
|
156 | + chmod($path, 0777); |
|
157 | 157 | } |
158 | 158 | $this->path = $path; |
159 | 159 | return $this; |
@@ -13,15 +13,15 @@ discard block |
||
13 | 13 | $env = getenv('APPLICATION_ENV') ?: 'production'; |
14 | 14 | |
15 | 15 | $coreModules = include 'common.modules.php'; |
16 | -if (!file_exists(__DIR__ . '/autoload/yawik.config.global.php')) { |
|
17 | - $modules = array_merge($coreModules,[ |
|
16 | +if (!file_exists(__DIR__.'/autoload/yawik.config.global.php')) { |
|
17 | + $modules = array_merge($coreModules, [ |
|
18 | 18 | 'Install', |
19 | 19 | 'Core', |
20 | 20 | 'Auth', |
21 | 21 | 'Jobs', |
22 | 22 | ]); |
23 | 23 | } else { |
24 | - $modules = array_merge($coreModules,[ |
|
24 | + $modules = array_merge($coreModules, [ |
|
25 | 25 | 'Core', |
26 | 26 | 'Auth', |
27 | 27 | 'Cv', |
@@ -38,12 +38,12 @@ discard block |
||
38 | 38 | // kann und über Server-Variablen oder ähnlichen steuern kann |
39 | 39 | $allModules = False; |
40 | 40 | } |
41 | - foreach (glob(__DIR__ . '/autoload/*.module.php') as $moduleFile) { |
|
41 | + foreach (glob(__DIR__.'/autoload/*.module.php') as $moduleFile) { |
|
42 | 42 | $addModules = require $moduleFile; |
43 | 43 | foreach ($addModules as $addModule) { |
44 | 44 | if (strpos($addModule, '-') === 0) { |
45 | - $remove = substr($addModule,1); |
|
46 | - $modules = array_filter($modules, function ($elem) use ($remove) { return strcasecmp($elem,$remove); }); |
|
45 | + $remove = substr($addModule, 1); |
|
46 | + $modules = array_filter($modules, function($elem) use ($remove) { return strcasecmp($elem, $remove); }); |
|
47 | 47 | } |
48 | 48 | else { |
49 | 49 | if (!in_array($addModule, $modules)) { |
@@ -96,7 +96,7 @@ discard block |
||
96 | 96 | ), |
97 | 97 | ); |
98 | 98 | |
99 | -$envConfigFile = __DIR__ . '/config.' . $env . '.php'; |
|
99 | +$envConfigFile = __DIR__.'/config.'.$env.'.php'; |
|
100 | 100 | if (file_exists($envConfigFile)) { |
101 | 101 | if (is_readable($envConfigFile)) { |
102 | 102 | $envConfig = include $envConfigFile; |