Skip to content
This repository was archived by the owner on Jan 18, 2018. It is now read-only.

Commit 37bd96a

Browse files
Updates
1 parent 5fcb7ae commit 37bd96a

5 files changed

Lines changed: 60 additions & 15 deletions

File tree

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
/tests export-ignore
44
/.gitattributes export-ignore
55
/.gitignore export-ignore
6+
/.php_cs export-ignore
67
/.travis.yml export-ignore
78
/phpunit.xml.dist export-ignore
89
/CHANGELOG.md export-ignore

.php_cs

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
<?php
2+
3+
$fixers = array(
4+
'psr0',
5+
'encoding',
6+
'short_tag',
7+
'braces',
8+
'elseif',
9+
'eof_ending',
10+
'function_declaration',
11+
'indentation',
12+
'line_after_namespace',
13+
'linefeed',
14+
'lowercase_constants',
15+
'lowercase_keywords',
16+
'multiple_use',
17+
'php_closing_tag',
18+
'trailing_spaces',
19+
'duplicate_semicolon',
20+
'extra_empty_lines',
21+
'include',
22+
'multiline_array_trailing_comma',
23+
'namespace_no_leading_whitespace',
24+
'new_with_braces',
25+
'object_operator',
26+
'operators_spaces',
27+
'phpdoc_params',
28+
'single_array_no_trailing_comma',
29+
'spaces_before_semicolon',
30+
'spaces_cast',
31+
'standardize_not_equal',
32+
'ternary_spaces',
33+
'unused_use',
34+
'whitespacy_lines',
35+
'multiline_spaces_before_semicolon',
36+
'ordered_use',
37+
'remove_lines_between_uses',
38+
);
39+
40+
return Symfony\CS\Config\Config::create()->fixers($fixers)
41+
->finder(Symfony\CS\Finder\DefaultFinder::create()->in(__DIR__));

.travis.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ before_script:
1313
script:
1414
- bash -c 'if [ "$TRAVIS_PHP_VERSION" == "hhvm" ]; then vendor/bin/phpunit; fi;'
1515
- bash -c 'if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then vendor/bin/phpunit --coverage-clover build/logs/clover.xml; fi;'
16+
- bash -c 'if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then vendor/bin/phpcs src -p --standard=psr2 --ignore=*.blade.php; fi;'
17+
- bash -c 'if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then vendor/bin/php-cs-fixer --dry-run -vv fix; fi;'
1618

17-
after_success:
19+
after_script:
1820
- bash -c 'if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then wget https://scrutinizer-ci.com/ocular.phar; fi;'
1921
- bash -c 'if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml; fi;'

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ CHANGE LOG
55
## V1.0.1 (Upcoming)
66

77
* Improved the test suite
8+
* Added cs fixers to the test suite
9+
* Improved the docs
810

911

1012
## V1.0 (12/08/2014)

README.md

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,17 @@
11
Laravel Navigation
22
==================
33

4+
Laravel Navigation was created by, and is maintained by [Graham Campbell](https://github.com/GrahamCampbell), and is a navigation bar generator for [Laravel 4.2](http://laravel.com). Feel free to check out the [change log](CHANGELOG.md), [releases](https://github.com/GrahamCampbell/Laravel-Navigation/releases), [license](LICENSE.md), [api docs](http://docs.grahamjcampbell.co.uk), and [contribution guidelines](CONTRIBUTING.md).
45

5-
[![Build Status](https://img.shields.io/travis/GrahamCampbell/Laravel-Navigation/master.svg?style=flat-square)](https://travis-ci.org/GrahamCampbell/Laravel-Navigation)
6-
[![Coverage Status](https://img.shields.io/scrutinizer/coverage/g/GrahamCampbell/Laravel-Navigation.svg?style=flat-square)](https://scrutinizer-ci.com/g/GrahamCampbell/Laravel-Navigation/code-structure)
7-
[![Quality Score](https://img.shields.io/scrutinizer/g/GrahamCampbell/Laravel-Navigation.svg?style=flat-square)](https://scrutinizer-ci.com/g/GrahamCampbell/Laravel-Navigation)
8-
[![Software License](https://img.shields.io/badge/license-Apache%202.0-brightgreen.svg?style=flat-square)](LICENSE.md)
9-
[![Latest Version](https://img.shields.io/github/release/GrahamCampbell/Laravel-Navigation.svg?style=flat-square)](https://github.com/GrahamCampbell/Laravel-Navigation/releases)
10-
11-
12-
### Looking for a laravel 5 compatable version?
13-
14-
Checkout the [master branch](https://github.com/GrahamCampbell/Laravel-Navigation/tree/master), installable by requiring `"graham-campbell/navigation": "~2.0"`.
15-
16-
17-
## Introduction
6+
![Laravel Navigation](https://cloud.githubusercontent.com/assets/2829600/4432310/c15b15ba-468c-11e4-8ced-33d809c3b209.PNG)
187

19-
Laravel Navigation was created by, and is maintained by [Graham Campbell](https://github.com/GrahamCampbell), and is a navigation bar generator for [Laravel 4.2](http://laravel.com). Feel free to check out the [change log](CHANGELOG.md), [releases](https://github.com/GrahamCampbell/Laravel-Navigation/releases), [license](LICENSE.md), [api docs](http://docs.grahamjcampbell.co.uk), and [contribution guidelines](CONTRIBUTING.md).
8+
<p align="center">
9+
<a href="https://travis-ci.org/GrahamCampbell/Laravel-Navigation"><img src="https://img.shields.io/travis/GrahamCampbell/Laravel-Navigation/master.svg?style=flat-square" alt="Build Status"></img></a>
10+
<a href="https://scrutinizer-ci.com/g/GrahamCampbell/Laravel-Navigation/code-structure"><img src="https://img.shields.io/scrutinizer/coverage/g/GrahamCampbell/Laravel-Navigation.svg?style=flat-square" alt="Coverage Status"></img></a>
11+
<a href="https://scrutinizer-ci.com/g/GrahamCampbell/Laravel-Navigation"><img src="https://img.shields.io/scrutinizer/g/GrahamCampbell/Laravel-Navigation.svg?style=flat-square" alt="Quality Score"></img></a>
12+
<a href="LICENSE.md"><img src="https://img.shields.io/badge/license-Apache%202.0-brightgreen.svg?style=flat-square" alt="Software License"></img></a>
13+
<a href="https://github.com/GrahamCampbell/Laravel-Navigation/releases"><img src="https://img.shields.io/github/release/GrahamCampbell/Laravel-Navigation.svg?style=flat-square" alt="Latest Version"></img></a>
14+
</p>
2015

2116

2217
## Installation
@@ -33,6 +28,10 @@ You can register the Navigation facade in the `aliases` key of your `app/config/
3328

3429
* `'Navigation' => 'GrahamCampbell\Navigation\Facades\Navigation'`
3530

31+
#### Looking for a laravel 5 compatable version?
32+
33+
Checkout the [master branch](https://github.com/GrahamCampbell/Laravel-Navigation/tree/master), installable by requiring `"graham-campbell/navigation": "~2.0"`.
34+
3635

3736
## Configuration
3837

0 commit comments

Comments
 (0)