Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 26 additions & 11 deletions .scrutinizer.yml
Original file line number Diff line number Diff line change
@@ -1,29 +1,44 @@
checks:
php:
code_rating: true
deprecated_code_usage: true
duplication: true
no_short_open_tag: true
build:
cache:
directories:
- "vendor"
- "~/.composer"
nodes:
analysis:
tests:
override:
- php-scrutinizer-run
checks:
php:
psr2_switch_declaration: true
psr2_class_declaration: true
no_short_open_tag: true
deprecated_code_usage: true
code_rating: true
dependencies:
override:
- COMPOSER_ROOT_VERSION=dev-master
filter:
excluded_paths: [bin, docs, docker, data, tests, vendor]
excluded_paths:
- "bin/"
- "data/"
- "docs/"
- "docker/"
- "public/"
- "tests/"
dependency_paths:
- "vendor/"
tools:
external_code_coverage: false
php_analyzer: true
php_code_sniffer:
config:
standard: PSR2
standard: PSR12
php_cpd:
enabled: true
excluded_dirs: [bin, docs, docker, data, tests, vendor]
excluded_dirs: [bin, data, docs, docker, public, tests, vendor]
php_loc:
enabled: true
excluded_dirs: [bin, docs, docker, data, tests, vendor]
excluded_dirs: [bin, data, docs, docker, public, tests, vendor]
php_mess_detector: true
php_pdepend: true
sensiolabs_security_checker: true
9 changes: 4 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
language: php
php:
- 7.1
- 7.2
- 7.3
- master
- 7.4
- 8.0
matrix:
allow_failures:
- php: master
- php: 8.0
env:
- BLUZ_MODULE=auth-facebook
before_install:
Expand All @@ -26,7 +25,7 @@ before_script:
- php vendor/bin/bluzman db:seed:run
script:
# Check code style
- php vendor/bin/phpcs ./application --standard=PSR1,PSR2 --encoding=utf-8 --ignore=./application/_loader.php
- php vendor/bin/phpcs ./application --standard=PSR12 --encoding=utf-8 --ignore=./application/_loader.php
# Run built-in web-server
- php vendor/bin/bluzman server:start --host 127.0.0.1 -b
# Run CodeCeption tests
Expand Down
2 changes: 1 addition & 1 deletion LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2012-2019 by Bluz PHP Team
Copyright (c) by Bluz PHP Team

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
10 changes: 4 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
# Module auth-facebook for Bluz Skeleton
## Achievements

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

[![Latest Stable Version](https://img.shields.io/packagist/v/bluzphp/module-auth-facebook.svg?label=version&style=flat)](https://packagist.org/packages/bluzphp/module-auth-facebook)

[![Build Status](https://img.shields.io/travis/bluzphp/module-auth-facebook/master.svg?style=flat)](https://travis-ci.org/bluzphp/module-auth-facebook)
[![Build Status](https://img.shields.io/travis/bluzphp/module-auth-facebook/master.svg?style=flat)](https://travis-ci.com/bluzphp/module-auth-facebook)

[![Scrutinizer Code Quality](https://img.shields.io/scrutinizer/g/bluzphp/module-auth-facebook.svg?style=flat)](https://scrutinizer-ci.com/g/bluzphp/module-auth-facebook/)

Expand All @@ -18,17 +16,17 @@
To install the module run the command:

```bash
php /vendor/bin/bluzman module:install auth-facebook
php ./vendor/bin/bluzman module:install auth-facebook
```

### Configure
Create an application at Applications page (https://developers.facebook.com/apps/),
than setup *App ID* and *App Secret* inside *Facebook* section of the `auth.php`
then setup *App ID* and *App Secret* inside *Facebook* section of the `auth.php`
configuration.

### Remove module
To remove the module, run the command:

```bash
php /vendor/bin/bluzman module:remove auth-facebook
php ./vendor/bin/bluzman module:remove auth-facebook
```
5 changes: 3 additions & 2 deletions application/modules/facebook/controllers/widgets/auth.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* @author Anton Shevchuk
* @created 22.10.12 18:40
Expand All @@ -20,7 +21,7 @@
* @var Controller $this
*/
?>
<a href="<?=Router::getUrl('auth', 'auth', ['provider'=> 'facebook'])?>"
class="btn fab fa-facebook-square fa-2x"></a>
<a href="<?=Router::getUrl('auth', 'auth', ['provider' => 'facebook'])?>"
class="bi bi-facebook h1 me-1"></a>
<?php
};
3 changes: 1 addition & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
"license": "MIT",
"description": "bluz facebook auth module",
"require": {
"bluzphp/framework": "~7.11",
"bluzphp/composer-plugin": "~2.1",
"bluzphp/composer-plugin": "~2.4",
"bluzphp/module-auth": "~2.0"
}
}