Skip to content

Commit 16dd60e

Browse files
author
Anton
authored
Merge pull request #10 from bluzphp/develop
Added scrutinizer configuration
2 parents 9250a80 + fe05854 commit 16dd60e

File tree

5 files changed

+37
-14
lines changed

5 files changed

+37
-14
lines changed

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
11
.DS_Store
22
.idea
3+
vendor
4+
composer.lock
5+
composer.phar

.scrutinizer.yml

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
build:
2+
nodes:
3+
analysis:
4+
tests:
5+
override:
6+
- php-scrutinizer-run
7+
checks:
8+
php:
9+
psr2_switch_declaration: true
10+
psr2_class_declaration: true
11+
no_short_open_tag: true
12+
deprecated_code_usage: true
13+
code_rating: true
14+
filter:
15+
excluded_paths: [bin, docs, docker, data, tests, vendor]
16+
tools:
17+
php_analyzer: true
18+
php_code_sniffer:
19+
config:
20+
standard: PSR2
21+
php_cpd:
22+
enabled: true
23+
excluded_dirs: [bin, docs, docker, data, tests, vendor]
24+
php_loc:
25+
enabled: true
26+
excluded_dirs: [bin, docs, docker, data, tests, vendor]
27+
php_mess_detector: true
28+
php_pdepend: true
29+
sensiolabs_security_checker: true

.travis.yml

+1-8
Original file line numberDiff line numberDiff line change
@@ -29,17 +29,10 @@ script:
2929
- php vendor/bin/phpcs ./application --standard=PSR1,PSR2 --encoding=utf-8 --ignore=./application/_loader.php
3030
# Run built-in web-server
3131
- php vendor/bin/bluzman server:start --host 127.0.0.1 -b
32-
# Run CodeCeption tests
32+
# Run codeception tests
3333
- php vendor/bin/bluzman test module-$BLUZ_MODULE
3434
notifications:
3535
email: false
36-
webhooks:
37-
urls:
38-
- https://webhooks.gitter.im/e/b84e6a583d6eea87d0eb
39-
- https://webhooks.gitter.im/e/c4fa557829c5bd992271
40-
on_success: change # options: [always|never|change] default: always
41-
on_failure: always # options: [always|never|change] default: always
42-
on_start: false # default: false
4336
branches:
4437
only:
4538
- master

README.md

+3-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# Module auth for Bluz Skeleton
2-
3-
### Achievements
2+
## Achievements
43

54
[![PHP >= 7.1+](https://img.shields.io/packagist/php-v/bluzphp/module-auth.svg?style=flat)](https://php.net/)
65

@@ -14,8 +13,7 @@
1413

1514
[![License](https://img.shields.io/packagist/l/bluzphp/module-auth.svg?style=flat)](https://packagist.org/packages/bluzphp/module-auth)
1615

17-
Usage
18-
-------------------------
16+
##Usage
1917
### Install module
2018
To install the module run the command:
2119

@@ -28,4 +26,4 @@ To remove the module, run the command:
2826

2927
```bash
3028
php /vendor/bin/bluzman module:remove auth
31-
```
29+
```

application/modules/auth/controllers/auth.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
$authRow->token = $accessToken['access_token'];
6767
$authRow->save();
6868
Response::redirectTo('users', 'profile');
69-
} else if ($authRow) {
69+
} elseif ($authRow) {
7070
// Try to login
7171
$user = Users\Table::findRow($authRow->userId);
7272
Auth\Table::tryLogin($user);

0 commit comments

Comments
 (0)