Skip to content

Commit

Permalink
Merge branch '2.1' into 2.2
Browse files Browse the repository at this point in the history
Signed-off-by: crynobone <crynobone@gmail.com>

Conflicts:
	.travis.yml
	src/Auth/Acl/Container.php
	src/Auth/Acl/Factory.php
	src/Auth/AuthServiceProvider.php
  • Loading branch information
crynobone committed Sep 3, 2014
2 parents 5d1d79f + 556e0cb commit 8eb721b
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 13 deletions.
7 changes: 3 additions & 4 deletions .travis.yml
@@ -1,14 +1,14 @@
language: php

php:
php:
- 5.4
- 5.5
- 5.6
- hhvm

before_script:
- composer self-update
- composer require satooshi/php-coveralls:~0.6 --prefer-source --no-interaction --dev
- travis_retry composer self-update
- travis_retry composer require satooshi/php-coveralls:~0.6 --prefer-source --no-interaction --dev

script: phpunit -c phpunit.xml --coverage-text

Expand All @@ -17,6 +17,5 @@ after_script:

matrix:
allow_failures:
- php: 5.6
- php: hhvm
fash_finish: true
11 changes: 5 additions & 6 deletions src/Auth/Acl/Container.php
Expand Up @@ -89,11 +89,10 @@ protected function initiate()
/**
* Assign single or multiple $roles + $actions to have access.
*
* @param string|array $roles A string or an array of roles
* @param string|array $actions A string or an array of action name
* @param bool $allow
* @param string|array $roles A string or an array of roles
* @param string|array $actions A string or an array of action name
* @param bool $allow
* @return $this
* @throws \InvalidArgumentException
*/
public function allow($roles, $actions, $allow = true)
{
Expand All @@ -120,8 +119,8 @@ public function can($action)
* Verify whether given roles has sufficient roles to access the
* actions based on available type of access.
*
* @param string|array $roles A string or an array of roles
* @param string $action A string of action name
* @param string|array $roles A string or an array of roles
* @param string $action A string of action name
* @return bool
* @throws \InvalidArgumentException
*/
Expand Down
2 changes: 1 addition & 1 deletion src/Auth/Acl/Factory.php
Expand Up @@ -23,7 +23,7 @@ class Factory
/**
* Construct a new Environment.
*
* @param \Orchestra\Auth\Guard|\Illuminate\Auth\Guard $auth
* @param \Orchestra\Auth\Guard $auth
*/
public function __construct(Guard $auth)
{
Expand Down
4 changes: 2 additions & 2 deletions src/Auth/Acl/Fluent.php
Expand Up @@ -91,7 +91,7 @@ public function detach(array $keys)
/**
* Check if an id is set in the collection.
*
* @param integer $id
* @param int $id
* @return bool
*/
public function exist($id)
Expand Down Expand Up @@ -214,7 +214,7 @@ public function rename($from, $to)
* Get the ID from a key.
*
* @param string $key
* @return integer
* @return int
*/
public function search($key)
{
Expand Down

0 comments on commit 8eb721b

Please sign in to comment.