Passed
Push — master ( 8c763d...c38a81 )
by Akpé Aurelle Emmanuel Moïse
35s
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 ="This is internal and thus sucks we must do something ClassShortcutDesigner";
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="This is internal and thus sucks we must do something ClassShortcutDesigner";
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)
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
                 $hasInternal.="case $count:return new $classname(".join(',', array_slice($parameters, 0, $paramsNum-$count))."); break;";
123 123
                 $count--;
124 124
             }
125
-            $hasInternal.='default:return new '. $classname.'('.join(',', $parameters).');break;}';
125
+            $hasInternal.='default:return new '.$classname.'('.join(',', $parameters).');break;}';
126 126
         }
127 127
         
128 128
         private static function useTheRightName(&$Shortcut, $name, $fullQualifiedClassname, $signature)
@@ -152,7 +152,7 @@  discard block
 block discarded – undo
152 152
         private static function pushAndShow($file, $Shortcut)
153 153
         {
154 154
             file_put_contents($file, str_replace("\t", '    ', $Shortcut));
155
-            file_put_contents($file, php_strip_whitespace($file));//just for cleanliness of the generated code
155
+            file_put_contents($file, php_strip_whitespace($file)); //just for cleanliness of the generated code
156 156
             return include_once($file);
157 157
         }
158 158
         
Please login to merge, or discard this patch.