@@ -22,7 +22,7 @@ |
||
| 22 | 22 | * specific view to be rendered. |
| 23 | 23 | */ |
| 24 | 24 | 'view_root_locations' => [ |
| 25 | - 'default' => realpath( __DIR__ . '/../views' ), |
|
| 25 | + 'default' => realpath(__DIR__.'/../views'), |
|
| 26 | 26 | ], |
| 27 | 27 | |
| 28 | 28 | /* |
@@ -113,7 +113,7 @@ discard block |
||
| 113 | 113 | 'Initialised section without passing it a section name.' |
| 114 | 114 | ); |
| 115 | 115 | } |
| 116 | - if (! array_key_exists($section, $this->config['sections'])) { |
|
| 116 | + if ( ! array_key_exists($section, $this->config['sections'])) { |
|
| 117 | 117 | throw new FailedToInitialiseSectionException( |
| 118 | 118 | 'Initialised section with an unknown section name.' |
| 119 | 119 | ); |
@@ -155,7 +155,7 @@ discard block |
||
| 155 | 155 | protected function getViewName(array $context) |
| 156 | 156 | { |
| 157 | 157 | return $this->config['sections'][$this->getSectionName()]['view_name'] |
| 158 | - . '.' . $context['format']; |
|
| 158 | + . '.'.$context['format']; |
|
| 159 | 159 | } |
| 160 | 160 | |
| 161 | 161 | /** |
@@ -116,7 +116,7 @@ discard block |
||
| 116 | 116 | public function getTemplate() |
| 117 | 117 | { |
| 118 | 118 | |
| 119 | - if (! $this->template) { |
|
| 119 | + if ( ! $this->template) { |
|
| 120 | 120 | $this->setDefaultTemplate(); |
| 121 | 121 | } |
| 122 | 122 | |
@@ -152,10 +152,10 @@ discard block |
||
| 152 | 152 | ); |
| 153 | 153 | } |
| 154 | 154 | |
| 155 | - if (! $template instanceof TemplateInterface) { |
|
| 155 | + if ( ! $template instanceof TemplateInterface) { |
|
| 156 | 156 | throw new InvalidTemplateException( |
| 157 | 157 | 'Could not set the template, invalid type.', |
| 158 | - (array)$template |
|
| 158 | + (array) $template |
|
| 159 | 159 | ); |
| 160 | 160 | } |
| 161 | 161 | $this->template = $template; |
@@ -101,7 +101,7 @@ discard block |
||
| 101 | 101 | if (null === $template) { |
| 102 | 102 | throw new FailedToInitialiseTemplateException('Initialised template without passing it a template name.'); |
| 103 | 103 | } |
| 104 | - if (! array_key_exists($template, $this->config['templates'])) { |
|
| 104 | + if ( ! array_key_exists($template, $this->config['templates'])) { |
|
| 105 | 105 | throw new FailedToInitialiseTemplateException('Initialised template with an unknown template name.'); |
| 106 | 106 | } |
| 107 | 107 | $this->templateName = $template; |
@@ -155,6 +155,6 @@ discard block |
||
| 155 | 155 | protected function getViewName(array $context) |
| 156 | 156 | { |
| 157 | 157 | return $this->config['templates'][$this->getTemplateName()]['view_name'] |
| 158 | - . '.' . $context['format']; |
|
| 158 | + . '.'.$context['format']; |
|
| 159 | 159 | } |
| 160 | 160 | } |