Passed
Push — master ( c55b94...af8b5e )
by Akpé Aurelle Emmanuel Moïse
01:57
created
src/Shortcut.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -15,9 +15,9 @@  discard block
 block discarded – undo
15 15
 
16 16
     class Shortcut
17 17
     {
18
-        const VALID_PHP_FUNCTION_NAME_PATTERN = '#^[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*$#';
19
-        const CAN_NEVER_EVER_CHOOSE_THIS_AS_FUNCTION_NAME= "new";
20
-        const PLACEHOLDER_FOR_INTERNALS_CLASSES_OPTIONALS_PARAMETERS ="acce91966cd8eee995ee1ac30c98c3d89d8f9235";
18
+        const VALID_PHP_FUNCTION_NAME_PATTERN='#^[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*$#';
19
+        const CAN_NEVER_EVER_CHOOSE_THIS_AS_FUNCTION_NAME="new";
20
+        const PLACEHOLDER_FOR_INTERNALS_CLASSES_OPTIONALS_PARAMETERS="acce91966cd8eee995ee1ac30c98c3d89d8f9235";
21 21
         private static $DIR=null;
22 22
         
23 23
         public static function create($classname, $name=self::CAN_NEVER_EVER_CHOOSE_THIS_AS_FUNCTION_NAME)
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
                 $hasInternal.="case $count:return new $classname(".join(',', array_slice($parameters, 0, $paramsNum-$count))."); break;";
100 100
                 $count--;
101 101
             }
102
-            $hasInternal.='default:return new '. $classname.'('.join(',', $parameters).');break;}';
102
+            $hasInternal.='default:return new '.$classname.'('.join(',', $parameters).');break;}';
103 103
         }
104 104
         
105 105
         private static function useTheRightName(&$Shortcut, $name, $fullQualifiedClassname, $signature)
@@ -129,7 +129,7 @@  discard block
 block discarded – undo
129 129
         private static function pushAndShow($file, $Shortcut)
130 130
         {
131 131
             file_put_contents($file, str_replace("\t", '    ', $Shortcut));
132
-            file_put_contents($file, php_strip_whitespace($file));//just for cleanliness of the generated code
132
+            file_put_contents($file, php_strip_whitespace($file)); //just for cleanliness of the generated code
133 133
             return include_once($file);
134 134
         }
135 135
         
Please login to merge, or discard this patch.