Completed
Pull Request — master (#56)
by David
05:43
created
lib/Dwoo/Plugins/Functions/PluginIsset.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,6 +38,6 @@
 block discarded – undo
38 38
      */
39 39
     public static function compile(Compiler $compiler, $var)
40 40
     {
41
-        return '(' . $var . ' !== null)';
41
+        return '('.$var.' !== null)';
42 42
     }
43 43
 }
44 44
\ No newline at end of file
Please login to merge, or discard this patch.
lib/Dwoo/Plugins/Functions/PluginDateFormat.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@
 block discarded – undo
67 67
                 '%t',
68 68
                 '%T'
69 69
             );
70
-            $_win_to   = array(
70
+            $_win_to = array(
71 71
                 '%m/%d/%y',
72 72
                 '%b',
73 73
                 "\n",
Please login to merge, or discard this patch.
lib/Dwoo/Plugins/Functions/PluginReturn.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -46,9 +46,9 @@
 block discarded – undo
46 46
     {
47 47
         $out = array();
48 48
         foreach ($rest as $var => $val) {
49
-            $out[] = '$this->setReturnValue(' . var_export($var, true) . ', ' . $val . ')';
49
+            $out[] = '$this->setReturnValue('.var_export($var, true).', '.$val.')';
50 50
         }
51 51
 
52
-        return '(' . implode('.', $out) . ')';
52
+        return '('.implode('.', $out).')';
53 53
     }
54 54
 }
55 55
\ No newline at end of file
Please login to merge, or discard this patch.
lib/Dwoo/Plugins/Functions/PluginCountWords.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,6 +32,6 @@
 block discarded – undo
32 32
 {
33 33
     public static function compile(Compiler $compiler, $value)
34 34
     {
35
-        return 'preg_match_all(strcasecmp($this->charset, \'utf-8\')===0 ? \'#[\w\pL]+#u\' : \'#\w+#\', ' . $value . ', $tmp)';
35
+        return 'preg_match_all(strcasecmp($this->charset, \'utf-8\')===0 ? \'#[\w\pL]+#u\' : \'#\w+#\', '.$value.', $tmp)';
36 36
     }
37 37
 }
38 38
\ No newline at end of file
Please login to merge, or discard this patch.
lib/Dwoo/Plugins/Functions/PluginReverse.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -40,12 +40,12 @@
 block discarded – undo
40 40
         if (is_array($value)) {
41 41
             return array_reverse($value, $preserve_keys);
42 42
         } elseif (($charset = $this->core->getCharset()) === 'iso-8859-1') {
43
-            return strrev((string)$value);
43
+            return strrev((string) $value);
44 44
         }
45 45
 
46 46
         $strlen = mb_strlen($value);
47 47
         $out    = '';
48
-        while ($strlen --) {
48
+        while ($strlen--) {
49 49
             $out .= mb_substr($value, $strlen, 1, $charset);
50 50
         }
51 51
 
Please login to merge, or discard this patch.
lib/Dwoo/Plugins/Functions/PluginSpacify.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,6 +40,6 @@
 block discarded – undo
40 40
      */
41 41
     public static function compile(Compiler $compiler, $value, $space_char = ' ')
42 42
     {
43
-        return 'implode(' . $space_char . ', str_split(' . $value . ', 1))';
43
+        return 'implode('.$space_char.', str_split('.$value.', 1))';
44 44
     }
45 45
 }
46 46
\ No newline at end of file
Please login to merge, or discard this patch.
lib/Dwoo/Plugins/Functions/PluginUpper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,6 +38,6 @@
 block discarded – undo
38 38
      */
39 39
     public static function compile(Compiler $compiler, $value)
40 40
     {
41
-        return 'mb_strtoupper((string) ' . $value . ', $this->charset)';
41
+        return 'mb_strtoupper((string) '.$value.', $this->charset)';
42 42
     }
43 43
 }
44 44
\ No newline at end of file
Please login to merge, or discard this patch.
lib/Dwoo/Plugins/Functions/PluginAssign.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,6 +41,6 @@
 block discarded – undo
41 41
      */
42 42
     public static function compile(Compiler $compiler, $value, $var)
43 43
     {
44
-        return '$this->assignInScope(' . $value . ', ' . $var . ')';
44
+        return '$this->assignInScope('.$value.', '.$var.')';
45 45
     }
46 46
 }
47 47
\ No newline at end of file
Please login to merge, or discard this patch.
lib/Dwoo/Plugins/Functions/PluginLower.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,6 +38,6 @@
 block discarded – undo
38 38
      */
39 39
     public static function compile(Compiler $compiler, $value)
40 40
     {
41
-        return 'mb_strtolower((string) ' . $value . ', $this->charset)';
41
+        return 'mb_strtolower((string) '.$value.', $this->charset)';
42 42
     }
43 43
 }
44 44
\ No newline at end of file
Please login to merge, or discard this patch.