Skip to content

Commit

Permalink
Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
GrahamCampbell committed Oct 19, 2014
1 parent d17f862 commit 9c74170
Show file tree
Hide file tree
Showing 10 changed files with 70 additions and 25 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
/tests export-ignore
/.gitattributes export-ignore
/.gitignore export-ignore
/.php_cs export-ignore
/.travis.yml export-ignore
/phpunit.xml.dist export-ignore
/CHANGELOG.md export-ignore
Expand Down
41 changes: 41 additions & 0 deletions .php_cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<?php

$fixers = array(
'psr0',
'encoding',
'short_tag',
'braces',
'elseif',
'eof_ending',
'function_declaration',
'indentation',
'line_after_namespace',
'linefeed',
'lowercase_constants',
'lowercase_keywords',
'multiple_use',
'php_closing_tag',
'trailing_spaces',
'duplicate_semicolon',
'extra_empty_lines',
'include',
'multiline_array_trailing_comma',
'namespace_no_leading_whitespace',
'new_with_braces',
'object_operator',
'operators_spaces',
'phpdoc_params',
'single_array_no_trailing_comma',
'spaces_before_semicolon',
'spaces_cast',
'standardize_not_equal',
'ternary_spaces',
'unused_use',
'whitespacy_lines',
'multiline_spaces_before_semicolon',
'ordered_use',
'remove_lines_between_uses',
);

return Symfony\CS\Config\Config::create()->fixers($fixers)
->finder(Symfony\CS\Finder\DefaultFinder::create()->in(__DIR__));
4 changes: 3 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ before_script:
script:
- bash -c 'if [ "$TRAVIS_PHP_VERSION" == "hhvm" ]; then vendor/bin/phpunit; fi;'
- bash -c 'if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then vendor/bin/phpunit --coverage-clover build/logs/clover.xml; fi;'
- bash -c 'if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then vendor/bin/phpcs src -p --standard=psr2 --ignore=*.blade.php; fi;'
- bash -c 'if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then vendor/bin/php-cs-fixer --dry-run -vv fix; fi;'

after_success:
after_script:
- bash -c 'if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then wget https://scrutinizer-ci.com/ocular.phar; fi;'
- bash -c 'if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml; fi;'
6 changes: 4 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,13 @@ CHANGE LOG
==========


## V1.0 RC 1 (Upcoming)
## V1.0 (Upcoming)

* Improved the test suite
* Added cs fixers to the test suite
* Increased the minimum upstream version
* Other minor fixes and tweaks
* Improved the docs
* Other minor tweaks


## V0.1.1 Alpha (12/08/2014)
Expand Down
27 changes: 13 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,22 +1,17 @@
Laravel GitHub
==============

Laravel GitHub was created by, and is maintained by [Graham Campbell](https://github.com/GrahamCampbell), and is a [PHP GitHub API](https://github.com/KnpLabs/php-github-api) bridge for [Laravel 4.1/4.2](http://laravel.com). It utilises my [Laravel Manager](https://github.com/GrahamCampbell/Laravel-Manager) package. Feel free to check out the [change log](CHANGELOG.md), [releases](https://github.com/GrahamCampbell/Laravel-GitHub/releases), [license](LICENSE.md), [api docs](http://docs.grahamjcampbell.co.uk), and [contribution guidelines](CONTRIBUTING.md).

[![Build Status](https://img.shields.io/travis/GrahamCampbell/Laravel-GitHub/master.svg?style=flat-square)](https://travis-ci.org/GrahamCampbell/Laravel-GitHub)
[![Coverage Status](https://img.shields.io/scrutinizer/coverage/g/GrahamCampbell/Laravel-GitHub.svg?style=flat-square)](https://scrutinizer-ci.com/g/GrahamCampbell/Laravel-GitHub/code-structure)
[![Quality Score](https://img.shields.io/scrutinizer/g/GrahamCampbell/Laravel-GitHub.svg?style=flat-square)](https://scrutinizer-ci.com/g/GrahamCampbell/Laravel-GitHub)
[![Software License](https://img.shields.io/badge/license-Apache%202.0-brightgreen.svg?style=flat-square)](LICENSE.md)
[![Latest Version](https://img.shields.io/github/release/GrahamCampbell/Laravel-GitHub.svg?style=flat-square)](https://github.com/GrahamCampbell/Laravel-GitHub/releases)


### Looking for a laravel 5 compatable version?

Checkout the [master branch](https://github.com/GrahamCampbell/Laravel-GitHub/tree/master), installable by requiring `"graham-campbell/github": "~2.0"`.


## Introduction
![Laravel GitHub](https://cloud.githubusercontent.com/assets/2829600/4432304/c142959e-468c-11e4-9efe-b219dae94557.PNG)

Laravel GitHub was created by, and is maintained by [Graham Campbell](https://github.com/GrahamCampbell), and is a [PHP GitHub API](https://github.com/KnpLabs/php-github-api) bridge for [Laravel 4.1/4.2](http://laravel.com). It utilises my [Laravel Manager](https://github.com/GrahamCampbell/Laravel-Manager) package. Feel free to check out the [change log](CHANGELOG.md), [releases](https://github.com/GrahamCampbell/Laravel-GitHub/releases), [license](LICENSE.md), [api docs](http://docs.grahamjcampbell.co.uk), and [contribution guidelines](CONTRIBUTING.md).
<p align="center">
<a href="https://travis-ci.org/GrahamCampbell/Laravel-GitHub"><img src="https://img.shields.io/travis/GrahamCampbell/Laravel-GitHub/master.svg?style=flat-square" alt="Build Status"></img></a>
<a href="https://scrutinizer-ci.com/g/GrahamCampbell/Laravel-GitHub/code-structure"><img src="https://img.shields.io/scrutinizer/coverage/g/GrahamCampbell/Laravel-GitHub.svg?style=flat-square" alt="Coverage Status"></img></a>
<a href="https://scrutinizer-ci.com/g/GrahamCampbell/Laravel-GitHub"><img src="https://img.shields.io/scrutinizer/g/GrahamCampbell/Laravel-GitHub.svg?style=flat-square" alt="Quality Score"></img></a>
<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>
<a href="https://github.com/GrahamCampbell/Laravel-GitHub/releases"><img src="https://img.shields.io/github/release/GrahamCampbell/Laravel-GitHub.svg?style=flat-square" alt="Latest Version"></img></a>
</p>


## Installation
Expand All @@ -33,6 +28,10 @@ You can register the GitHub facade in the `aliases` key of your `app/config/app.

* `'GitHub' => 'GrahamCampbell\GitHub\Facades\GitHub'`

#### Looking for a laravel 5 compatable version?

Checkout the [master branch](https://github.com/GrahamCampbell/Laravel-GitHub/tree/master), installable by requiring `"graham-campbell/github": "~2.0"`.


## Configuration

Expand Down
2 changes: 1 addition & 1 deletion src/GitHubServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ public function provides()
{
return array(
'github',
'github.factory'
'github.factory',
);
}
}
8 changes: 4 additions & 4 deletions src/config/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,13 @@
'connections' => array(

'main' => array(
'token' => 'your-token'
'token' => 'your-token',
),

'alternative' => array(
'token' => 'your-token'
)
'token' => 'your-token',
),

)
),

);
2 changes: 1 addition & 1 deletion tests/Facades/GitHubTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@

namespace GrahamCampbell\Tests\GitHub\Facades;

use GrahamCampbell\Tests\GitHub\AbstractTestCase;
use GrahamCampbell\TestBench\Traits\FacadeTestCaseTrait;
use GrahamCampbell\Tests\GitHub\AbstractTestCase;

/**
* This is the github facade test class.
Expand Down
2 changes: 1 addition & 1 deletion tests/Factories/GitHubFactoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@

namespace GrahamCampbell\Tests\GitHub\Factories;

use GrahamCampbell\Tests\GitHub\AbstractTestCase;
use GrahamCampbell\GitHub\Factories\GitHubFactory;
use GrahamCampbell\Tests\GitHub\AbstractTestCase;

/**
* This is the filesystem factory test class.
Expand Down
2 changes: 1 addition & 1 deletion tests/GitHubManagerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@

namespace GrahamCampbell\Tests\GitHub;

use Mockery;
use GrahamCampbell\GitHub\GitHubManager;
use GrahamCampbell\TestBench\AbstractTestCase as AbstractTestBenchTestCase;
use Mockery;

/**
* This is the github manager test class.
Expand Down

0 comments on commit 9c74170

Please sign in to comment.