Passed
Pull Request — develop (#314)
by Schlaefer
02:29
created
plugins/phile/templateTwig/Classes/Template/Twig.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,6 @@
 block discarded – undo
7 7
 use Phile\Core\Event;
8 8
 use Phile\Core\Registry;
9 9
 use Phile\Model\Page;
10
-use Phile\Repository\Page as Repository;
11 10
 use Phile\ServiceLocator\TemplateInterface;
12 11
 
13 12
 /**
Please login to merge, or discard this patch.
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
             $template = 'index';
124 124
         }
125 125
         if (!empty($this->config['template-extension'])) {
126
-            $template .= '.' . $this->config['template-extension'];
126
+            $template .= '.'.$this->config['template-extension'];
127 127
         }
128 128
         $templatePath = $this->getTemplatePath($template);
129 129
         if (!file_exists($templatePath)) {
@@ -143,9 +143,9 @@  discard block
 block discarded – undo
143 143
      */
144 144
     protected function getTemplatePath($sub = '')
145 145
     {
146
-        $themePath = THEMES_DIR . $this->settings['theme'];
146
+        $themePath = THEMES_DIR.$this->settings['theme'];
147 147
         if (!empty($sub)) {
148
-            $themePath .= '/' . ltrim($sub, DIRECTORY_SEPARATOR);
148
+            $themePath .= '/'.ltrim($sub, DIRECTORY_SEPARATOR);
149 149
         }
150 150
         return $themePath;
151 151
     }
@@ -166,11 +166,11 @@  discard block
 block discarded – undo
166 166
         'base_url' => $this->settings['base_url'],
167 167
         'config' => $this->settings,
168 168
         'content_dir' => $this->settings['content_dir'],
169
-        'content_url' => $this->settings['base_url'] . '/' . basename($this->settings['content_dir']),
169
+        'content_url' => $this->settings['base_url'].'/'.basename($this->settings['content_dir']),
170 170
         'pages' => $this->page->getRepository()->findAll(),
171 171
         'site_title' => $this->settings['site_title'],
172
-        'theme_dir' => THEMES_DIR . $this->settings['theme'],
173
-        'theme_url' => $this->settings['base_url'] . '/' . basename(THEMES_DIR) . '/' . $this->settings['theme'],
172
+        'theme_dir' => THEMES_DIR.$this->settings['theme'],
173
+        'theme_url' => $this->settings['base_url'].'/'.basename(THEMES_DIR).'/'.$this->settings['theme'],
174 174
         ];
175 175
 
176 176
         /**
Please login to merge, or discard this patch.