@@ -12,7 +12,7 @@ |
||
12 | 12 | |
13 | 13 | /** |
14 | 14 | * Helper function to fix javascript code before sending it to the phantomjs API |
15 | - * @param $script |
|
15 | + * @param string $script |
|
16 | 16 | * @return string |
17 | 17 | */ |
18 | 18 | protected function fixJavascriptForUse($script){ |
@@ -15,7 +15,7 @@ |
||
15 | 15 | * @param $script |
16 | 16 | * @return string |
17 | 17 | */ |
18 | - protected function fixJavascriptForUse($script){ |
|
18 | + protected function fixJavascriptForUse($script) { |
|
19 | 19 | //Fix self returning piece of code; |
20 | 20 | $scriptToUse = trim($script); |
21 | 21 | $returningRegexp = "#^return(.+)#is"; |