@@ -88,7 +88,7 @@ |
||
88 | 88 | public function getTemplate() |
89 | 89 | { |
90 | 90 | |
91 | - if (! $this->template) { |
|
91 | + if ( ! $this->template) { |
|
92 | 92 | $this->setDefaultTemplate(); |
93 | 93 | } |
94 | 94 |
@@ -92,7 +92,7 @@ discard block |
||
92 | 92 | if (null === $template) { |
93 | 93 | throw new FailedToInitialiseTemplateException('Initialised template without passing it a template name.'); |
94 | 94 | } |
95 | - if (! array_key_exists($template, $this->config['templates'])) { |
|
95 | + if ( ! array_key_exists($template, $this->config['templates'])) { |
|
96 | 96 | throw new FailedToInitialiseTemplateException('Initialised template with an unknown template name.'); |
97 | 97 | } |
98 | 98 | $this->templateName = $template; |
@@ -160,7 +160,7 @@ discard block |
||
160 | 160 | */ |
161 | 161 | protected function getViewLocation(array $context) |
162 | 162 | { |
163 | - return $this->getViewRoot() . '/templates/' . $context['format'] . '/' . $this->getViewName(); |
|
163 | + return $this->getViewRoot().'/templates/'.$context['format'].'/'.$this->getViewName(); |
|
164 | 164 | } |
165 | 165 | |
166 | 166 | /** |
@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | |
60 | 60 | $this->config = $config; |
61 | 61 | |
62 | - if (! $this->config->hasKey($element)) { |
|
62 | + if ( ! $this->config->hasKey($element)) { |
|
63 | 63 | throw new FailedToInstantiateFactoryException(sprintf( |
64 | 64 | 'Could not instantiate Factory for unknown Element Type "%1$s".', |
65 | 65 | $element |
@@ -85,7 +85,7 @@ discard block |
||
85 | 85 | |
86 | 86 | $classMap = $this->config[$this->element]; |
87 | 87 | |
88 | - if (! array_key_exists($type, $classMap)) { |
|
88 | + if ( ! array_key_exists($type, $classMap)) { |
|
89 | 89 | throw new FailedToInstantiateClassException(sprintf( |
90 | 90 | 'Could not create object, unknown Type "%1$s" for "%2$s" elements.', |
91 | 91 | $type, |
@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | class ChainMail |
27 | 27 | { |
28 | 28 | |
29 | - const DEFAULT_CONFIG = __DIR__ . '/../config/defaults.php'; |
|
29 | + const DEFAULT_CONFIG = __DIR__.'/../config/defaults.php'; |
|
30 | 30 | |
31 | 31 | /** |
32 | 32 | * Configuration Settings. |
@@ -49,15 +49,15 @@ discard block |
||
49 | 49 | |
50 | 50 | $defaults = ConfigFactory::create(include(self::DEFAULT_CONFIG)); |
51 | 51 | |
52 | - if (! $config) { |
|
52 | + if ( ! $config) { |
|
53 | 53 | $this->config = $defaults; |
54 | 54 | |
55 | 55 | return; |
56 | 56 | } |
57 | 57 | |
58 | 58 | $this->config = ConfigFactory::create(array_merge( |
59 | - (array)$defaults, |
|
60 | - (array)$config) |
|
59 | + (array) $defaults, |
|
60 | + (array) $config) |
|
61 | 61 | ); |
62 | 62 | } |
63 | 63 |
@@ -103,7 +103,7 @@ discard block |
||
103 | 103 | if (null === $section) { |
104 | 104 | throw new FailedToInitialiseSectionException('Initialised section without passing it a section name.'); |
105 | 105 | } |
106 | - if (! array_key_exists($section, $this->config['sections'])) { |
|
106 | + if ( ! array_key_exists($section, $this->config['sections'])) { |
|
107 | 107 | throw new FailedToInitialiseSectionException('Initialised section with an unknown section name.'); |
108 | 108 | } |
109 | 109 | $this->sectionName = $section; |
@@ -156,7 +156,7 @@ discard block |
||
156 | 156 | */ |
157 | 157 | protected function getViewLocation(array $context) |
158 | 158 | { |
159 | - return $this->getViewRoot() . '/sections/' . $context['format'] . '/' . $this->getViewName(); |
|
159 | + return $this->getViewRoot().'/sections/'.$context['format'].'/'.$this->getViewName(); |
|
160 | 160 | } |
161 | 161 | |
162 | 162 | /** |