Test Failed
Pull Request — master (#3)
by Chris
03:29 queued 01:13
created
php/hamle/Exception/ParseError.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
   function __construct($message = '', $code = 0, $previous = null)
34 34
   {
35 35
     ///@todo  Include Line number & file name within parse error exceptions
36
-    $message .= ', on line ' . Hamle\Hamle::getLineNo() . ' in file ?.hamle';
36
+    $message .= ', on line '.Hamle\Hamle::getLineNo().' in file ?.hamle';
37 37
     parent::__construct($message, $code, $previous);
38 38
   }
39 39
 }
Please login to merge, or discard this patch.
php/hamle/Tag.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -158,7 +158,7 @@  discard block
 block discarded – undo
158 158
   {
159 159
     $ind = $minify ? '' : str_pad('', $indent);
160 160
     $oneliner = !(count($this->content) > 1 || $this->tags);
161
-    $out = $ind . $this->renderStTag() . ($oneliner || $minify ? '' : "\n");
161
+    $out = $ind.$this->renderStTag().($oneliner || $minify ? '' : "\n");
162 162
     if ($this->content) {
163 163
       $out .= $this->renderContent($ind, $oneliner || $minify);
164 164
     }
@@ -166,8 +166,8 @@  discard block
 block discarded – undo
166 166
       $out .= $tag->render($indent + self::INDENT_SIZE, $minify);
167 167
     }
168 168
     $out .=
169
-      ($minify || $oneliner ? '' : $ind) .
170
-      $this->renderEnTag() .
169
+      ($minify || $oneliner ? '' : $ind).
170
+      $this->renderEnTag().
171 171
       ($minify ? '' : "\n");
172 172
     return $out;
173 173
   }
@@ -183,7 +183,7 @@  discard block
 block discarded – undo
183 183
   {
184 184
     $out = '';
185 185
     foreach ($this->content as $c) {
186
-      $out .= ($oneliner ? '' : $pad) . $c . ($oneliner ? '' : "\n");
186
+      $out .= ($oneliner ? '' : $pad).$c.($oneliner ? '' : "\n");
187 187
     }
188 188
     return $out;
189 189
   }
Please login to merge, or discard this patch.
php/hamle/Hamle.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -94,8 +94,8 @@  discard block
 block discarded – undo
94 94
     }
95 95
     if (!$baseModel instanceof Model) {
96 96
       throw new Exception\Unsupported(
97
-        'Unsupported Model(' .
98
-          get_class($baseModel) .
97
+        'Unsupported Model('.
98
+          get_class($baseModel).
99 99
           ') Type was passed, it must implement hamleModel',
100 100
       );
101 101
     }
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
       throw new Exception\NotFound("Unable to find HAMLE Template ($template)");
131 131
     }
132 132
     $this->cacheFile = $this->setup->cachePath(
133
-      str_replace('/', '-', $hamleFile) . '.php',
133
+      str_replace('/', '-', $hamleFile).'.php',
134 134
     );
135 135
     $this->setup->debugLog("Set cache file path to ({$this->cacheFile})");
136 136
     $cacheFileAge = is_file($this->cacheFile) ? filemtime($this->cacheFile) : 0;
@@ -195,7 +195,7 @@  discard block
 block discarded – undo
195 195
   function string($hamleString)
196 196
   {
197 197
     $md5 = md5($hamleString);
198
-    $stringId = substr($md5, 0, 12) . substr($md5, 24, 8);
198
+    $stringId = substr($md5, 0, 12).substr($md5, 24, 8);
199 199
     $this->cacheFile = $this->setup->cachePath("string.$stringId.hamle.php");
200 200
     if (!is_file($this->cacheFile)) {
201 201
       $this->parse($hamleString);
Please login to merge, or discard this patch.