Completed
Push — master ( fd7f58...1e0e2b )
by arto
17:20
created
source/RuntimeContentBasedTemplate.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -115,7 +115,7 @@
 block discarded – undo
115 115
     }
116 116
 
117 117
     /**
118
-     * @param null $content
118
+     * @param null|string $content
119 119
      * @param null|string $closingDelimiter
120 120
      * @param null|string $openingDelimiter
121 121
      * @throws InvalidArgumentException
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -105,10 +105,10 @@
 block discarded – undo
105 105
         $prefix     = $this->openingDelimiter;
106 106
         $suffix     = $this->closingDelimiter;
107 107
         $variables  = parent::getVariables();
108
-        $array      = array();  //@todo find a better name
108
+        $array      = array(); //@todo find a better name
109 109
 
110 110
         foreach ($variables as $key => $value) {
111
-            $array[$prefix . $key . $suffix] = $value;
111
+            $array[$prefix.$key.$suffix] = $value;
112 112
         }
113 113
 
114 114
         return $array;
Please login to merge, or discard this patch.
source/ExpressiveTemplateAdapter.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
             $template   = $this->getNewTemplate();
50 50
             $path       = $this->fullQualifiedPathNameWithTemplatePath[$name];
51 51
 
52
-            $template->setFilePath($path->getPath() . '.phtml');
52
+            $template->setFilePath($path->getPath().'.phtml');
53 53
 
54 54
             if ($this->defaultParametersProvided) {
55 55
                 $template->assignMany($this->defaultParameters);
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
      */
83 83
     public function addPath($path, $namespace = null)
84 84
     {
85
-        $key = (is_null($namespace)) ? $path : $namespace . '::' . $path;
85
+        $key = (is_null($namespace)) ? $path : $namespace.'::'.$path;
86 86
 
87 87
         $this->fullQualifiedPathNameWithTemplatePath[$key] = new TemplatePath($path, $namespace);
88 88
     }
Please login to merge, or discard this patch.
source/CallableComplexFileBasedTemplateManager.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
 
25 25
         if ($callableIsNotRegistered) {
26 26
             throw new RuntimeException(
27
-                'no callable found for name "' . $name . '"'
27
+                'no callable found for name "'.$name.'"'
28 28
             );
29 29
         }
30 30
 
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
 
86 86
         if ($callableAlreadyRegistered) {
87 87
             throw new InvalidArgumentException(
88
-                'a callable with the name "' . $name . '" is already registered'
88
+                'a callable with the name "'.$name.'" is already registered'
89 89
             );
90 90
         }
91 91
     }
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
 
102 102
         if ($nameIsNotAString) {
103 103
             throw new InvalidArgumentException(
104
-                $name . ' must be a valid string'
104
+                $name.' must be a valid string'
105 105
             );
106 106
         }
107 107
     }
Please login to merge, or discard this patch.
source/FileBasedTemplate.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -72,10 +72,10 @@
 block discarded – undo
72 72
         $prefix     = $this->openingDelimiter;
73 73
         $suffix     = $this->closingDelimiter;
74 74
         $variables  = parent::getVariables();
75
-        $array      = array();  //@todo find a better name
75
+        $array      = array(); //@todo find a better name
76 76
 
77 77
         foreach ($variables as $key => $value) {
78
-            $array[$prefix . $key . $suffix] = $value;
78
+            $array[$prefix.$key.$suffix] = $value;
79 79
         }
80 80
 
81 81
         return $array;
Please login to merge, or discard this patch.
source/AbstractFileBasedTemplate.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
 
52 52
         if (!is_readable($filePath)) {
53 53
             throw new InvalidArgumentException(
54
-                'file path: "' . $filePath . '" is not readable'
54
+                'file path: "'.$filePath.'" is not readable'
55 55
             );
56 56
         }
57 57
 
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
 
73 73
         if ($content === false) {
74 74
             throw new RuntimeException(
75
-                'could not read content from "' . $filePath . '"'
75
+                'could not read content from "'.$filePath.'"'
76 76
             );
77 77
         }
78 78
 
@@ -101,13 +101,13 @@  discard block
 block discarded – undo
101 101
 
102 102
         if (!file_exists($filePath)) {
103 103
             throw new InvalidArgumentException(
104
-                'file path: "' . $filePath . '" does not exist'
104
+                'file path: "'.$filePath.'" does not exist'
105 105
             );
106 106
         }
107 107
 
108 108
         if (!is_readable($filePath)) {
109 109
             throw new RuntimeException(
110
-                'file path: "' . $filePath . '" is not readable'
110
+                'file path: "'.$filePath.'" is not readable'
111 111
             );
112 112
         }
113 113
     }
Please login to merge, or discard this patch.