Skip to content

Commit 83257ee

Browse files
committed
Integrate styleci.io
1 parent 909bb4c commit 83257ee

3 files changed

Lines changed: 10 additions & 2 deletions

File tree

.styleci.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
preset: psr-2
2+
risky: false
3+
finder:
4+
exclude:
5+
- "tests/templates"

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
# Template Engine Factory
22

33
[![Build Status](https://travis-ci.org/wanze/TemplateEngineFactory.svg?branch=next)](https://travis-ci.org/wanze/TemplateEngineFactory)
4+
[![StyleCI](https://github.styleci.io/repos/21270731/shield?branch=next)](https://github.styleci.io/repos/21270731)
45
[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)
6+
[![ProcessWire 3](https://img.shields.io/badge/ProcessWire-3.x-orange.svg)](https://github.com/processwire/processwire)
57

68
A ProcessWire module integrating template engines such as _Twig_. It allows to render pages or individual templates
79
via template engine and encourages to separate logic from markup by implementing a simple _MVC_ pattern.

TemplateEngineFactory.module.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,8 @@ protected function ___resolveTemplateVariables(Page $page, TemplateVariables $va
232232
*
233233
* @return bool
234234
*/
235-
private function shouldRenderTemplate(Template $template) {
235+
private function shouldRenderTemplate(Template $template)
236+
{
236237
// Do not render admin pages.
237238
if ($template->name === 'admin') {
238239
return false;
@@ -325,7 +326,7 @@ public static function getModuleConfigInputfields(array $data)
325326
$templates = [];
326327
foreach (wire('templates') as $template) {
327328
//Exclude system templates
328-
if ($template->flags & Template::flagSystem){
329+
if ($template->flags & Template::flagSystem) {
329330
continue;
330331
}
331332
$templates[$template->id] = $template->name;

0 commit comments

Comments
 (0)