Skip to content
Permalink
Browse files

Code formatting

  • Loading branch information
cedx committed May 18, 2020
1 parent 0a0595b commit 652c4f5ef735f045a7e07405d0a0b8760e878d47
@@ -3,11 +3,16 @@ root = true

[*]
charset = utf-8
indent_size = 2
indent_style = space
indent_style = tab
insert_final_newline = true
max_line_length = 200
quote_type = double
tab_width = 2
trim_trailing_whitespace = true

[*.md]
indent_size = 4
trim_trailing_whitespace = false

[*.{yaml,yml}]
indent_size = 2
indent_style = space
@@ -3,7 +3,7 @@ on:
pull_request:
push:
schedule:
- cron: '0 0 1 * *'
- cron: "0 0 1 * *"
jobs:
test:
runs-on: ubuntu-latest
@@ -1,7 +1,7 @@
{
"editor.insertSpaces": true,
"editor.tabSize": 2,
"files.encoding": "utf8",
"files.insertFinalNewline": true,
"files.trimFinalNewlines": true
"editor.insertSpaces": false,
"editor.tabSize": 2,
"files.encoding": "utf8",
"files.insertFinalNewline": true,
"files.trimFinalNewlines": true
}
@@ -1,56 +1,56 @@
{
"description": "Mustache templating for the Yii Framework.",
"homepage": "https://docs.belin.io/yii2-mustache",
"license": "MIT",
"name": "cedx/yii2-mustache",
"type": "yii2-extension",
"version": "10.1.0",
"authors": [
{"email": "cedric@belin.io", "homepage": "https://belin.io", "name": "Cédric Belin"}
],
"autoload": {
"psr-4": {"yii\\mustache\\": "src/"}
},
"autoload-dev": {
"psr-4": {"yii\\mustache\\": "test/"}
},
"config": {
"fxp-asset": {"enabled": false},
"optimize-autoloader": true
},
"funding": [
{"type": "patreon", "url": "https://www.patreon.com/cedx"}
],
"keywords": [
"mustache",
"renderer",
"templating",
"view",
"yii2"
],
"repositories": [
{"type": "composer", "url": "https://asset-packagist.org"}
],
"require": {
"php": ">=7.4.0",
"ext-json": "*",
"ext-mbstring": "*",
"ext-pcre": "*",
"mustache/mustache": "^2.13.0",
"psr/log": "^1.1.3",
"yiisoft/yii2": "^2.0.35"
},
"require-dev": {
"cedx/coveralls": "^13.0.0",
"phpstan/phpstan": "^0.12.25",
"phpunit/phpunit": "^9.1.4"
},
"scripts": {
"coverage": "coveralls var/coverage.xml",
"test": "phpunit --configuration=etc/phpunit.xml"
},
"support": {
"docs": "https://api.belin.io/yii2-mustache",
"issues": "https://git.belin.io/cedx/yii2-mustache/issues"
}
"description": "Mustache templating for the Yii Framework.",
"homepage": "https://docs.belin.io/yii2-mustache",
"license": "MIT",
"name": "cedx/yii2-mustache",
"type": "yii2-extension",
"version": "10.1.0",
"authors": [
{"email": "cedric@belin.io", "homepage": "https://belin.io", "name": "Cédric Belin"}
],
"autoload": {
"psr-4": {"yii\\mustache\\": "src/"}
},
"autoload-dev": {
"psr-4": {"yii\\mustache\\": "test/"}
},
"config": {
"fxp-asset": {"enabled": false},
"optimize-autoloader": true
},
"funding": [
{"type": "patreon", "url": "https://www.patreon.com/cedx"}
],
"keywords": [
"mustache",
"renderer",
"templating",
"view",
"yii2"
],
"repositories": [
{"type": "composer", "url": "https://asset-packagist.org"}
],
"require": {
"php": ">=7.4.0",
"ext-json": "*",
"ext-mbstring": "*",
"ext-pcre": "*",
"mustache/mustache": "^2.13.0",
"psr/log": "^1.1.3",
"yiisoft/yii2": "^2.0.35"
},
"require-dev": {
"cedx/coveralls": "^13.0.0",
"phpstan/phpstan": "^0.12.25",
"phpunit/phpunit": "^9.1.4"
},
"scripts": {
"coverage": "coveralls var/coverage.xml",
"test": "phpunit --configuration=etc/phpunit.xml"
},
"support": {
"docs": "https://api.belin.io/yii2-mustache",
"issues": "https://git.belin.io/cedx/yii2-mustache/issues"
}
}
@@ -15,8 +15,8 @@ composer --version
```

!!! info
If you plan to play with the package sources, you will also need the latest versions of
[PowerShell](https://docs.microsoft.com/en-us/powershell) and [Material for MkDocs](https://squidfunk.github.io/mkdocs-material).
If you plan to play with the package sources, you will also need the latest versions of
[PowerShell](https://docs.microsoft.com/en-us/powershell) and [Material for MkDocs](https://squidfunk.github.io/mkdocs-material).

## Installing with Composer package manager

@@ -5,14 +5,14 @@ In order to start using [Mustache](https://mustache.github.io) you need to confi

```php
<?php return [
'components' => [
'view' => [
'class' => 'yii\web\View',
'renderers' => [
'mustache' => 'yii\mustache\ViewRenderer'
]
]
]
"components" => [
"view" => [
"class" => "yii\\web\\View",
"renderers" => [
"mustache" => "yii\\mustache\\ViewRenderer"
]
]
]
];
```

@@ -23,9 +23,9 @@ After it's done you can create templates in files that have the `.mustache` exte
use yii\web\{Controller, Response};
class AppController extends Controller {
function actionIndex(): Response {
return $this->render('template.mustache', ['model' => 'The view model']);
}
function actionIndex(): Response {
return $this->render("template.mustache", ["model" => "The view model"]);
}
}
```

@@ -8,19 +8,23 @@ site_dir: ../www

repo_name: git.belin.io
repo_url: https://git.belin.io/cedx/yii2-mustache
edit_uri: ''
edit_uri: ""

copyright: Copyright &copy; 2014 - 2020 Cédric Belin
extra:
social:
- icon: fontawesome/solid/globe
link: 'https://belin.io'
link: "https://belin.io"
name: Belin.io
- icon: fontawesome/brands/github
link: 'https://github.com/cedx'
link: "https://github.com/cedx"
name: GitHub
- icon: fontawesome/brands/twitter
link: 'https://twitter.com/cedxbelin'
link: "https://twitter.com/cedxbelin"
name: Twitter
- icon: fontawesome/brands/linkedin
link: 'https://linkedin.com/in/cedxbelin'
link: "https://linkedin.com/in/cedxbelin"
name: LinkedIn

markdown_extensions:
- admonition
@@ -1,25 +1,25 @@
<?xml version="1.0"?>
<phpdocumentor
configVersion="3"
xmlns="http://www.phpdoc.org"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://docs.phpdoc.org/latest/phpdoc.xsd">
<title>Mustache for Yii</title>
<paths>
<cache>../var/phpdoc</cache>
<output>../doc/api</output>
</paths>
<version number="10.1.0">
<api>
<markers>
<marker>TODO</marker>
</markers>
<source dsn="..">
<path>src</path>
</source>
<visibility>protected</visibility>
<visibility>public</visibility>
</api>
</version>
configVersion="3"
xmlns="http://www.phpdoc.org"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://docs.phpdoc.org/latest/phpdoc.xsd">
<title>Mustache for Yii</title>
<paths>
<cache>../var/phpdoc</cache>
<output>../doc/api</output>
</paths>
<version number="10.1.0">
<api>
<markers>
<marker>TODO</marker>
</markers>
<source dsn="..">
<path>src</path>
</source>
<visibility>protected</visibility>
<visibility>public</visibility>
</api>
</version>
</phpdocumentor>
@@ -1,4 +1,4 @@
parameters:
autoload_files: [../vendor/yiisoft/yii2/Yii.php]
level: max
paths: [../src, ../test]
autoload_files: [../vendor/yiisoft/yii2/Yii.php]
level: max
paths: [../src, ../test]
@@ -1,18 +1,18 @@
<?xml version="1.0"?>
<phpunit bootstrap="../test/index.php" cacheResult="false" testdox="true">
<filter>
<whitelist processUncoveredFilesFromWhitelist="true">
<directory suffix=".php">../src</directory>
</whitelist>
</filter>
<filter>
<whitelist processUncoveredFilesFromWhitelist="true">
<directory suffix=".php">../src</directory>
</whitelist>
</filter>

<logging>
<log type="coverage-clover" target="../var/coverage.xml"/>
</logging>
<logging>
<log type="coverage-clover" target="../var/coverage.xml"/>
</logging>

<testsuites>
<testsuite name="all">
<directory suffix="Test.php">../test</directory>
</testsuite>
</testsuites>
<testsuites>
<testsuite name="all">
<directory suffix="Test.php">../test</directory>
</testsuite>
</testsuites>
</phpunit>
@@ -2,5 +2,5 @@

/** TODO */
function main(): void {
// TODO
// TODO
}

0 comments on commit 652c4f5

Please sign in to comment.