Commit f561cb59 authored by Guillaume Perréal's avatar Guillaume Perréal
Browse files

Trim tous les templates.

No related merge requests found
Showing with 2 additions and 4 deletions
+2 -4
......@@ -5,7 +5,6 @@
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
*/
namespace Irstea\CS\HeaderComment;
......@@ -39,7 +38,7 @@ final class FormattedHeaderProvider implements HeaderProviderInterface
*/
public function getHeader(): ?string
{
$template = $this->templateProvider->getTemplate();
$template = trim($this->templateProvider->getTemplate());
return $template ? $this->templateFormatter->format($template) : null;
}
......
......@@ -5,7 +5,6 @@
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
*/
namespace Irstea\CS\HeaderComment;
......@@ -37,6 +36,6 @@ final class UserDefinedTemplateProvider implements TemplateProviderInterface
{
$path = $this->fileLocator->locate('.docheader');
return $path ? trim(file_get_contents($path)) : null;
return $path ? file_get_contents($path) : null;
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment