Skip to content

Commit

Permalink
fix cs
Browse files Browse the repository at this point in the history
  • Loading branch information
steinkel committed Aug 7, 2019
1 parent 7524840 commit 7ab37d3
Show file tree
Hide file tree
Showing 10 changed files with 11 additions and 4 deletions.
1 change: 1 addition & 0 deletions src/Authentication/AuthenticationService.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ class AuthenticationService extends BaseService
* @var Failure[]
*/
protected $failures = [];

/**
* Proceed to google verify action after a valid result result
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ public function __construct($enableKey = null)
$this->enabledKey = $enableKey;
}
}

/**
* Check if two factor authentication is enabled
*
Expand Down
1 change: 1 addition & 0 deletions src/Social/Mapper/AbstractMapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ public function __construct($mapFields = null)
}
$this->_mapFields = array_merge($this->_defaultMapFields, $this->_mapFields);
}

/**
* Invoke method
*
Expand Down
1 change: 1 addition & 0 deletions src/Traits/ReCaptchaTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ public function validateReCaptchaFromRequest($request)
$request->clientIp()
);
}

/**
* Validates reCaptcha response
*
Expand Down
1 change: 1 addition & 0 deletions tests/TestCase/Authenticator/CookieAuthenticatorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ public function dataProviderPersistIdentity()
[false, 'my_remember', [], ['remember_me' => 1]],
];
}

/**
* testPersistIdentity
*
Expand Down
1 change: 1 addition & 0 deletions tests/TestCase/Policy/RbacPolicyTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ public function testGetRbacUseObject()
$actual = $policy->getRbac($request);
$this->assertSame($rbac, $actual);
}

/**
* Test getRbac method
*/
Expand Down
1 change: 1 addition & 0 deletions tests/TestCase/Policy/SuperuserPolicyTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ public function dataProviderCanAccess()
[[], false, ['superuser_field' => 'is_master']],
];
}

/**
* Test canAccess method
*
Expand Down
4 changes: 2 additions & 2 deletions tests/TestCase/Rbac/RbacTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,11 @@

namespace CakeDC\Auth\Test\TestCase\Rbac;

use Cake\Routing\Router;
use CakeDC\Auth\Rbac\Rbac;
use CakeDC\Auth\Rbac\Rules\Owner;
use Cake\Http\ServerRequest;
use Cake\Routing\Router;
use Cake\TestSuite\TestCase;
use Cake\Utility\Hash;
use Psr\Log\LogLevel;
use ReflectionClass;

Expand Down Expand Up @@ -1286,6 +1285,7 @@ protected function _requestFromArray($params)
{
$request = new ServerRequest(Router::url($params));
$params = Router::parseRequest($request);

return $request->withAttribute('params', $params);
}

Expand Down
1 change: 1 addition & 0 deletions tests/TestCase/Social/Service/ServiceFactoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ class ServiceFactoryTest extends TestCase
* @var ServiceFactory
*/
public $Factory;

/**
* Setup the test case, backup the static object values so they can be restored.
* Specifically backs up the contents of Configure and paths in App if they have
Expand Down
3 changes: 1 addition & 2 deletions tests/config/routes.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?php
use \Cake\Routing\Router;

Router::defaultRouteClass(\Cake\Routing\Route\DashedRoute::class);

Router::scope('/', function (\Cake\Routing\RouteBuilder $routes) {
Expand Down Expand Up @@ -88,5 +89,3 @@
'action' => 'one',
]);
});


0 comments on commit 7ab37d3

Please sign in to comment.