Skip to content
This repository has been archived by the owner on Mar 25, 2024. It is now read-only.

Commit

Permalink
CS
Browse files Browse the repository at this point in the history
  • Loading branch information
Martijn Dreesen committed Oct 2, 2016
1 parent 7e410aa commit da977ac
Show file tree
Hide file tree
Showing 7 changed files with 44 additions and 72 deletions.
13 changes: 2 additions & 11 deletions .gitignore
@@ -1,13 +1,4 @@
/vendor
/.idea
composer.phar
composer.lock
.DS_Store
.idea/.name
.idea/encodings.xml
.idea/helios-mollie.iml
.idea/misc.xml
.idea/modules.xml
.idea/scopes/scope_settings.xml
.idea/vcs.xml
.idea/workspace.xml
.idea/Laravel-FakeId.iml
composer.lock
3 changes: 2 additions & 1 deletion .scrutinizer.yml
Expand Up @@ -8,5 +8,6 @@ filter:
- 'stub/*'
- 'coverage/*'
- 'vendor/*'

checks:
php: true
php: true
8 changes: 6 additions & 2 deletions .travis.yml
Expand Up @@ -4,8 +4,12 @@ php:
- 5.4
- 5.5
- 5.6
- 7.0
- hhvm

before_script:
- composer self-update
- composer install --prefer-source --no-interaction --dev
- if [[ $TRAVIS_PHP_VERSION =~ ^hhvm ]]; then echo 'xdebug.enable = On' >> /etc/hhvm/php.ini; fi
- composer install

script:
- vendor/bin/phpunit
64 changes: 32 additions & 32 deletions composer.json
@@ -1,34 +1,34 @@
{
"name": "propaganistas/laravel-fakeid",
"description": "Automatic ID obfuscation for Eloquent models.",
"keywords": [
"laravel",
"optimus",
"hashids",
"fakeid",
"obfuscation"
],
"license": "MIT",
"authors": [
{
"name": "Propaganistas",
"email": "Propaganistas@users.noreply.github.com"
}
],
"require": {
"php": ">=5.4.0",
"jenssegers/optimus": "~0.2",
"laravel/framework": "~5.0"
},
"autoload": {
"psr-4": {
"Propaganistas\\LaravelFakeId\\": "src/"
}
},
"scripts": {
"post-update-cmd": [
"php artisan clear-compiled"
]
},
"prefer-stable": true
"name": "propaganistas/laravel-fakeid",
"description": "Automatic ID obfuscation for Eloquent models.",
"keywords": [
"laravel",
"optimus",
"hashids",
"fakeid",
"obfuscation"
],
"license": "MIT",
"authors": [
{
"name": "Propaganistas",
"email": "Propaganistas@users.noreply.github.com"
}
],
"require": {
"php": ">=5.4.0",
"jenssegers/optimus": "^0.2",
"laravel/framework": "^5.0"
},
"autoload": {
"psr-4": {
"Propaganistas\\LaravelFakeId\\": "src/"
}
},
"scripts": {
"post-update-cmd": [
"php artisan clear-compiled"
]
},
"prefer-stable": true
}
3 changes: 1 addition & 2 deletions phpunit.xml
Expand Up @@ -8,8 +8,7 @@
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false"
syntaxCheck="false"
>
syntaxCheck="false">
<testsuites>
<testsuite name="Package Test Suite">
<directory suffix=".php">./tests/</directory>
Expand Down
2 changes: 0 additions & 2 deletions src/Facades/FakeId.php
Expand Up @@ -4,12 +4,10 @@

class FakeId extends Facade
{

/**
* Get the registered name of the component.
*
* @return string
*
* @throws \RuntimeException
*/
protected static function getFacadeAccessor()
Expand Down
23 changes: 1 addition & 22 deletions src/FakeIdServiceProvider.php
Expand Up @@ -7,14 +7,6 @@

class FakeIdServiceProvider extends ServiceProvider
{

/**
* Indicates if loading of the provider is deferred.
*
* @var bool
*/
protected $defer = false;

/**
* Boots the service provider.
*
Expand All @@ -25,7 +17,7 @@ public function boot()
// Publish config.
$this->publishes([
__DIR__ . '/../config/config.php' => config_path('fakeid.php'),
]);
], 'config');
}

/**
Expand Down Expand Up @@ -58,19 +50,6 @@ public function register()

}

/**
* Get the services provided by the provider.
*
* @return array
*/
public function provides()
{
return [
'fakeid',
'fakeid.command.setup'
];
}

/**
* Register the custom router macro.
*/
Expand Down

0 comments on commit da977ac

Please sign in to comment.