Various style cleanups.

* a bunch of small changes, courtesy of styleci
 * update dates in file headers
 * add file headers to files that are missing them
This commit is contained in:
Justin Hileman
2016-07-30 17:57:19 -07:00
parent 41edfcb9e2
commit 01777faf6e
100 changed files with 477 additions and 123 deletions
+9
View File
@@ -1,5 +1,14 @@
<?php
/*
* This file is part of Mustache.php.
*
* (c) 2010-2016 Justin Hileman
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
class Blocks
{
public $items = array(1, 2, 3);
+9
View File
@@ -1,5 +1,14 @@
<?php
/*
* This file is part of Mustache.php.
*
* (c) 2010-2016 Justin Hileman
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
class ChildContext
{
public $parent = array(
+9
View File
@@ -1,5 +1,14 @@
<?php
/*
* This file is part of Mustache.php.
*
* (c) 2010-2016 Justin Hileman
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
class Comments
{
public function title()
+9
View File
@@ -1,5 +1,14 @@
<?php
/*
* This file is part of Mustache.php.
*
* (c) 2010-2016 Justin Hileman
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
class Complex
{
public $header = 'Colors';
+9
View File
@@ -1,5 +1,14 @@
<?php
/*
* This file is part of Mustache.php.
*
* (c) 2010-2016 Justin Hileman
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
class Delimiters
{
public $start = 'It worked the first time.';
+9
View File
@@ -1,5 +1,14 @@
<?php
/*
* This file is part of Mustache.php.
*
* (c) 2010-2016 Justin Hileman
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
class DotNotation
{
public $person = array(
@@ -1,5 +1,14 @@
<?php
/*
* This file is part of Mustache.php.
*
* (c) 2010-2016 Justin Hileman
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
class DoubleSection
{
public function t()
+9
View File
@@ -1,5 +1,14 @@
<?php
/*
* This file is part of Mustache.php.
*
* (c) 2010-2016 Justin Hileman
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
class Escaped
{
public $title = '"Bear" > "Shark"';
+9
View File
@@ -1,5 +1,14 @@
<?php
/*
* This file is part of Mustache.php.
*
* (c) 2010-2016 Justin Hileman
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
class Filters
{
public $states = array(
@@ -1,5 +1,14 @@
<?php
/*
* This file is part of Mustache.php.
*
* (c) 2010-2016 Justin Hileman
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
class GrandParentContext
{
public $grand_parent_id = 'grand_parent1';
+9
View File
@@ -1,5 +1,14 @@
<?php
/*
* This file is part of Mustache.php.
*
* (c) 2010-2016 Justin Hileman
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
class I18n
{
// Variable to be interpolated
@@ -1,5 +1,14 @@
<?php
/*
* This file is part of Mustache.php.
*
* (c) 2010-2016 Justin Hileman
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
class ImplicitIterator
{
public $data = array('Donkey Kong', 'Luigi', 'Mario', 'Peach', 'Yoshi');
@@ -1,5 +1,14 @@
<?php
/*
* This file is part of Mustache.php.
*
* (c) 2010-2016 Justin Hileman
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
class InvertedDoubleSection
{
public $t = false;
@@ -1,5 +1,14 @@
<?php
/*
* This file is part of Mustache.php.
*
* (c) 2010-2016 Justin Hileman
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
class InvertedSection
{
public $repo = array();
@@ -1,5 +1,14 @@
<?php
/*
* This file is part of Mustache.php.
*
* (c) 2010-2016 Justin Hileman
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
class NestedPartials
{
public $val = 'FOURTH!';
+9
View File
@@ -1,5 +1,14 @@
<?php
/*
* This file is part of Mustache.php.
*
* (c) 2010-2016 Justin Hileman
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
class Partials
{
public $page = array(
@@ -1,5 +1,14 @@
<?php
/*
* This file is part of Mustache.php.
*
* (c) 2010-2016 Justin Hileman
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
class RecursivePartials
{
public $name = 'George';
@@ -1,5 +1,14 @@
<?php
/*
* This file is part of Mustache.php.
*
* (c) 2010-2016 Justin Hileman
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
class SectionIteratorObjects
{
public $start = 'It worked the first time.';
@@ -1,5 +1,14 @@
<?php
/*
* This file is part of Mustache.php.
*
* (c) 2010-2016 Justin Hileman
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
class SectionMagicObjects
{
public $start = 'It worked the first time.';
@@ -1,5 +1,14 @@
<?php
/*
* This file is part of Mustache.php.
*
* (c) 2010-2016 Justin Hileman
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
class SectionObjects
{
public $start = 'It worked the first time.';
+9
View File
@@ -1,5 +1,14 @@
<?php
/*
* This file is part of Mustache.php.
*
* (c) 2010-2016 Justin Hileman
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
class Sections
{
public $start = 'It worked the first time.';
@@ -1,5 +1,14 @@
<?php
/*
* This file is part of Mustache.php.
*
* (c) 2010-2016 Justin Hileman
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
class SectionsNested
{
public $name = 'Little Mac';
+9
View File
@@ -1,5 +1,14 @@
<?php
/*
* This file is part of Mustache.php.
*
* (c) 2010-2016 Justin Hileman
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
class Simple
{
public $name = 'Chris';
+9
View File
@@ -1,5 +1,14 @@
<?php
/*
* This file is part of Mustache.php.
*
* (c) 2010-2016 Justin Hileman
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
class Unescaped
{
public $title = 'Bear > Shark';
+9
View File
@@ -1,5 +1,14 @@
<?php
/*
* This file is part of Mustache.php.
*
* (c) 2010-2016 Justin Hileman
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
class UTF8
{
public $test = '中文又来啦';
@@ -1,5 +1,14 @@
<?php
/*
* This file is part of Mustache.php.
*
* (c) 2010-2016 Justin Hileman
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
class UTF8Unescaped
{
public $test = '中文又来啦';
+9
View File
@@ -1,5 +1,14 @@
<?php
/*
* This file is part of Mustache.php.
*
* (c) 2010-2016 Justin Hileman
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
/**
* Whitespace test for tag names.
*