@@ -115,7 +115,7 @@ |
||
| 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 |
@@ -105,10 +105,10 @@ |
||
| 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; |
@@ -49,7 +49,7 @@ discard block |
||
| 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 |
||
| 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 | } |
@@ -24,7 +24,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 | } |
@@ -72,10 +72,10 @@ |
||
| 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; |
@@ -51,7 +51,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 | } |