Completed
Pull Request — master (#3)
by Chris
02:51
created
php/hamle/Filter/Sass.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
     }
51 51
     $s = implode("\n", $as);
52 52
 
53
-    require_once ME_DIR . '/lib/phpsass/SassParser.php';
53
+    require_once ME_DIR.'/lib/phpsass/SassParser.php';
54 54
     $sp = new SassParser([
55 55
       'cache' => false,
56 56
       'style' => stdConf::get('me.developer')
@@ -62,6 +62,6 @@  discard block
 block discarded – undo
62 62
     $tree = $sp->toTree($s);
63 63
     $out = $tree->render();
64 64
     $pad = str_pad('', $indent, ' ');
65
-    return $pad . str_replace("\n", "\n$pad", trim($out));
65
+    return $pad.str_replace("\n", "\n$pad", trim($out));
66 66
   }
67 67
 }
Please login to merge, or discard this patch.
php/hamle/Filter/Javascript.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -43,9 +43,9 @@
 block discarded – undo
43 43
 
44 44
   static function filterText($s)
45 45
   {
46
-    return "/*<![CDATA[*/\n" .
46
+    return "/*<![CDATA[*/\n".
47 47
       /*preg_replace(HamlParser::MATCH_INTERPOLATION, '<?php echo \1; ?>', $text)*/
48
-      $s .
48
+      $s.
49 49
       '/*]]>*/';
50 50
   }
51 51
 }
Please login to merge, or discard this patch.
php/hamle/Form.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@
 block discarded – undo
47 47
   function setup()
48 48
   {
49 49
     throw new Exception\RunTime(
50
-      'You must configure the form in the setup ' .
50
+      'You must configure the form in the setup '.
51 51
         "function, by adding fields to the \$this->fields array",
52 52
     );
53 53
   }
Please login to merge, or discard this patch.
php/hamle/Scope.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -25,8 +25,8 @@
 block discarded – undo
25 25
   {
26 26
     if (!$model instanceof Model) {
27 27
       throw new Unsupported(
28
-        'Unsupported Model (' .
29
-          get_class($model) .
28
+        'Unsupported Model ('.
29
+          get_class($model).
30 30
           '), Needs to implement hamleModel Interface',
31 31
       );
32 32
     }
Please login to merge, or discard this patch.
php/hamle/Field.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -132,15 +132,15 @@  discard block
 block discarded – undo
132 132
     if (!is_null($this->setValue)) {
133 133
       return $this->setValue;
134 134
     }
135
-    if (isset($_REQUEST[$this->form . '_' . $this->name])) {
136
-      return $_REQUEST[$this->form . '_' . $this->name];
135
+    if (isset($_REQUEST[$this->form.'_'.$this->name])) {
136
+      return $_REQUEST[$this->form.'_'.$this->name];
137 137
     }
138 138
     return $this->opt['default'];
139 139
   }
140 140
 
141 141
   function getInputAttStatic(&$atts, &$type, &$content)
142 142
   {
143
-    $atts['id'] = $atts['name'] = $this->form . '_' . $this->name;
143
+    $atts['id'] = $atts['name'] = $this->form.'_'.$this->name;
144 144
     $atts['type'] = 'text';
145 145
     $atts['class'][] = str_replace(
146 146
       ['Seufert\\', '\\'],
@@ -174,7 +174,7 @@  discard block
 block discarded – undo
174 174
       ['', '_'],
175 175
       get_class($this),
176 176
     );
177
-    $atts['for'] = $this->form . '_' . $this->name;
177
+    $atts['for'] = $this->form.'_'.$this->name;
178 178
     $content = [$this->opt['label']];
179 179
   }
180 180
 
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.
php/hamle/Field/Memo.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,6 +37,6 @@
 block discarded – undo
37 37
 
38 38
   function isClicked()
39 39
   {
40
-    return isset($_REQUEST[$this->form . '_' . $this->name]);
40
+    return isset($_REQUEST[$this->form.'_'.$this->name]);
41 41
   }
42 42
 }
Please login to merge, or discard this patch.
php/autoload.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -34,11 +34,11 @@
 block discarded – undo
34 34
  * @param string $class Class name to be autoloaded
35 35
  */
36 36
 spl_autoload_register(
37
-  function ($class) {
37
+  function($class) {
38 38
     if (strpos($class, 'Seufert\\Hamle\\') === 0) {
39 39
       $s = DIRECTORY_SEPARATOR;
40 40
       $class = str_replace('\\', $s, substr($class, 14));
41
-      $path = __DIR__ . $s . 'hamle' . $s . "$class.php";
41
+      $path = __DIR__.$s.'hamle'.$s."$class.php";
42 42
       if (is_file($path)) {
43 43
         include_once $path;
44 44
       }
Please login to merge, or discard this patch.