@@ -71,8 +71,8 @@ |
||
71 | 71 | if ($this->isSupported()) { |
72 | 72 | $this->engine = \cebe\markdown\Markdown(); |
73 | 73 | |
74 | - if (isset($config[ 'flavour' ])) { |
|
75 | - $this->setFlavour($config[ 'flavour' ]); |
|
74 | + if (isset($config['flavour'])) { |
|
75 | + $this->setFlavour($config['flavour']); |
|
76 | 76 | } |
77 | 77 | } else { |
78 | 78 | throw new RuntimeException( |
@@ -102,16 +102,16 @@ discard block |
||
102 | 102 | $this->config = $config; |
103 | 103 | |
104 | 104 | if ($this->config->offsetExists('template')) { |
105 | - if(is_array($this->config->template)) { |
|
106 | - foreach($this->config->template as $engine) { |
|
105 | + if (is_array($this->config->template)) { |
|
106 | + foreach ($this->config->template as $engine) { |
|
107 | 107 | $this->template->load($engine); |
108 | 108 | } |
109 | 109 | } |
110 | 110 | } |
111 | 111 | |
112 | 112 | if ($this->config->offsetExists('string')) { |
113 | - if(is_array($this->config->string)) { |
|
114 | - foreach($this->config->string as $engine) { |
|
113 | + if (is_array($this->config->string)) { |
|
114 | + foreach ($this->config->string as $engine) { |
|
115 | 115 | $this->string->load($engine); |
116 | 116 | } |
117 | 117 | } |
@@ -256,7 +256,7 @@ discard block |
||
256 | 256 | */ |
257 | 257 | public function parsePhp(array $vars = []) |
258 | 258 | { |
259 | - if(count($vars)) { |
|
259 | + if (count($vars)) { |
|
260 | 260 | $this->loadVars($vars); |
261 | 261 | } |
262 | 262 |