@@ -73,7 +73,7 @@ discard block |
||
73 | 73 | */ |
74 | 74 | public function load($engine, array $config = []) |
75 | 75 | { |
76 | - if(class_exists($adapter = '\O2System\Parser\String\Adapters\\' . $engine)) { |
|
76 | + if (class_exists($adapter = '\O2System\Parser\String\Adapters\\' . $engine)) { |
|
77 | 77 | $this->register((new $adapter())->setConfig($config), $adapter); |
78 | 78 | |
79 | 79 | return $this->__isset($adapter); |
@@ -96,14 +96,14 @@ discard block |
||
96 | 96 | { |
97 | 97 | $output = $string; |
98 | 98 | |
99 | - if(is_file($string)) { |
|
99 | + if (is_file($string)) { |
|
100 | 100 | $output = file_get_contents($string); |
101 | 101 | } |
102 | 102 | |
103 | - if($this->count()) { |
|
104 | - foreach($this->registry as $adapter) { |
|
105 | - if($adapter instanceof Abstracts\AbstractAdapter) { |
|
106 | - if($adapter->isSupported()) { |
|
103 | + if ($this->count()) { |
|
104 | + foreach ($this->registry as $adapter) { |
|
105 | + if ($adapter instanceof Abstracts\AbstractAdapter) { |
|
106 | + if ($adapter->isSupported()) { |
|
107 | 107 | $adapter->initialize(); |
108 | 108 | $adapter->loadString($output); |
109 | 109 | $output = $adapter->parse($vars); |