Completed
Push — master ( acd543...3307eb )
by Juan Francisco
9s
created
src/BasePhantomJSDriver.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
   public function __construct($phantomHost, $templateCache = null) {
33 33
     $this->phantomHost = $phantomHost;
34 34
     $this->browser = new Browser($phantomHost);
35
-    $this->templateLoader = new \Twig_Loader_Filesystem(realpath(__DIR__ . '/Resources/Script'));
35
+    $this->templateLoader = new \Twig_Loader_Filesystem(realpath(__DIR__.'/Resources/Script'));
36 36
     $this->templateEnv = new \Twig_Environment($this->templateLoader, array('cache' => $this->templateCacheSetup($templateCache), 'strict_variables' => true));
37 37
   }
38 38
 
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
   protected function templateCacheSetup($templateCache) {
46 46
     $cacheDir = $templateCache;
47 47
     if ($templateCache === null) {
48
-      $cacheDir = sys_get_temp_dir() . DIRECTORY_SEPARATOR . "jcalderonzumba" . DIRECTORY_SEPARATOR . "phantomjs";
48
+      $cacheDir = sys_get_temp_dir().DIRECTORY_SEPARATOR."jcalderonzumba".DIRECTORY_SEPARATOR."phantomjs";
49 49
       if (!file_exists($cacheDir)) {
50 50
         mkdir($cacheDir, 0777, true);
51 51
       }
Please login to merge, or discard this patch.
src/JavascriptTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@
 block discarded – undo
63 63
     {
64 64
         if (preg_match('/^function[\s\(]/', $script)) {
65 65
             $script = preg_replace('/;$/', '', $script);
66
-            $script = '(' . $script . ')';
66
+            $script = '('.$script.')';
67 67
         }
68 68
 
69 69
         return $script;
Please login to merge, or discard this patch.