Skip to content

Commit

Permalink
Merge pull request #5 from bluzphp/develop
Browse files Browse the repository at this point in the history
 Added scrutinizer configuration
  • Loading branch information
Anton authored Mar 7, 2019
2 parents ae4bd2b + cd43b85 commit 5e8e7fc
Show file tree
Hide file tree
Showing 7 changed files with 51 additions and 20 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
.DS_Store
.idea
vendor
composer.lock
composer.phar
29 changes: 29 additions & 0 deletions .scrutinizer.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
build:
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
filter:
excluded_paths: [bin, docs, docker, data, tests, vendor]
tools:
php_analyzer: true
php_code_sniffer:
config:
standard: PSR2
php_cpd:
enabled: true
excluded_dirs: [bin, docs, docker, data, tests, vendor]
php_loc:
enabled: true
excluded_dirs: [bin, docs, docker, data, tests, vendor]
php_mess_detector: true
php_pdepend: true
sensiolabs_security_checker: true
8 changes: 1 addition & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ language: php
php:
- 7.1
- 7.2
- 7.3
- master
matrix:
allow_failures:
Expand Down Expand Up @@ -32,13 +33,6 @@ script:
- php vendor/bin/bluzman test module-$BLUZ_MODULE
notifications:
email: false
webhooks:
urls:
- https://webhooks.gitter.im/e/b84e6a583d6eea87d0eb
- https://webhooks.gitter.im/e/c4fa557829c5bd992271
on_success: change # options: [always|never|change] default: always
on_failure: always # options: [always|never|change] default: always
on_start: false # default: false
branches:
only:
- master
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-2017 by Bluz PHP Team
Copyright (c) 2012-2019 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
26 changes: 15 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,23 +1,25 @@
# Module auth-twitter for Bluz Skeleton
## Achievements

[![Gitter](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/bluzphp/main)
[![PHP >= 7.1+](https://img.shields.io/packagist/php-v/bluzphp/module-auth-twitter.svg?style=flat)](https://php.net/)

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

[![Build Status](https://travis-ci.org/bluzphp/module-auth-twitter.svg?branch=master)](https://travis-ci.org/bluzphp/module-auth-twitter)
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/bluzphp/module-auth-twitter/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/bluzphp/module-auth-twitter/?branch=master)
[![Build Status](https://img.shields.io/travis/bluzphp/module-auth-twitter/master.svg?style=flat)](https://travis-ci.org/bluzphp/module-auth-twitter)

[![Latest Stable Version](https://poser.pugx.org/bluzphp/module-auth-twitter/v/stable)](https://packagist.org/packages/bluzphp/module-auth-twitter)
[![Total Downloads](https://poser.pugx.org/bluzphp/module-auth-twitter/downloads)](https://packagist.org/packages/bluzphp/module-auth-twitter)
[![Scrutinizer Code Quality](https://img.shields.io/scrutinizer/g/bluzphp/module-auth-twitter.svg?style=flat)](https://scrutinizer-ci.com/g/bluzphp/module-auth-twitter/)

[![License](https://poser.pugx.org/bluzphp/module-auth-twitter/license)](https://packagist.org/packages/bluzphp/module-auth-twitter)
[![Total Downloads](https://img.shields.io/packagist/dt/bluzphp/module-auth-twitter.svg?style=flat)](https://packagist.org/packages/bluzphp/module-auth-twitter)

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

## Usage
### Install module
To install the module run the command:

$ composer require bluzphp/module-auth-twitter
```bash
php /vendor/bin/bluzman module:install auth-twitter
```

### Configure
Create an application at Applications page (https://apps.twitter.com/),
Expand All @@ -27,4 +29,6 @@ inside *Twitter* section of the `auth.php` configuration.
### Remove module
To remove the module, run the command:

$ composer remove bluzphp/module-auth-twitter
```bash
php /vendor/bin/bluzman module:remove auth-twitter
```
2 changes: 1 addition & 1 deletion application/modules/twitter/controllers/widgets/auth.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@
*/
?>
<a href="<?=Router::getUrl('auth', 'auth', ['provider' => 'twitter'])?>"
class="btn fa fa-twitter-square fa-2x"></a>
class="btn fab fa-twitter-square fa-2x"></a>
<?php
};
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"license": "MIT",
"description": "bluz twitter auth module",
"require": {
"bluzphp/framework": "~7.11",
"bluzphp/composer-plugin": "~2.1",
"bluzphp/module-auth": "~2.0"
}
Expand Down

0 comments on commit 5e8e7fc

Please sign in to comment.