Skip to content

Commit

Permalink
Merge pull request #7 from gaaarfild/analysis-qyrVGj
Browse files Browse the repository at this point in the history
Applied fixes from StyleCI
  • Loading branch information
Dinar Garipov authored Jun 26, 2016
2 parents 8418e52 + 245caed commit 3704965
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 14 deletions.
2 changes: 1 addition & 1 deletion src/ConfFacade.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use Illuminate\Support\Facades\Facade;

/**
* Class ConfFacade
* Class ConfFacade.
*/
class ConfFacade extends Facade
{
Expand Down
3 changes: 1 addition & 2 deletions src/Contracts/ConfContract.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
namespace Gaaarfild\LaravelConf\Contracts;

/**
* Interface ConfContract
* @package Gaaarfild\LaravelConf
* Interface ConfContract.
*/
interface ConfContract
{
Expand Down
2 changes: 1 addition & 1 deletion src/Drivers/AbstractDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use Gaaarfild\LaravelConf\Contracts\ConfContract;

/**
* Class AbstractDriver
* Class AbstractDriver.
*/
abstract class AbstractDriver implements ConfContract
{
Expand Down
4 changes: 2 additions & 2 deletions src/Drivers/DatabaseDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use Gaaarfild\LaravelConf\Models\Conf;

/**
* Class DatabaseDriver
* Class DatabaseDriver.
* @deprecated('This driver not implemented yet')
*/
class DatabaseDriver extends AbstractDriver
Expand Down Expand Up @@ -68,7 +68,7 @@ public function forget($key)
*/
protected function persist()
{
// if (is_null($this->modelInstance)) {
// if (is_null($this->modelInstance)) {
// throw new
// }

Expand Down
4 changes: 2 additions & 2 deletions src/Drivers/FileDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
namespace Gaaarfild\LaravelConf\Drivers;

/**
* Class FileDriver
* Class FileDriver.
*/
class FileDriver extends AbstractDriver
{
Expand All @@ -19,7 +19,7 @@ class FileDriver extends AbstractDriver
*/
public function __construct()
{
$this->file = config("laravel-conf.drivers.file.path", storage_path('app/conf.json'));
$this->file = config('laravel-conf.drivers.file.path', storage_path('app/conf.json'));

if (! file_exists($this->file)) {
$this->config = [];
Expand Down
5 changes: 2 additions & 3 deletions src/LaravelConfServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

namespace Gaaarfild\LaravelConf;

use Gaaarfild\LaravelConf\ConfManager;
use Gaaarfild\LaravelConf\Contracts\ConfContract;
use Illuminate\Support\ServiceProvider;

Expand Down Expand Up @@ -34,10 +33,10 @@ public function register()
});

$this->publishes([
__DIR__.'/../database/migrations/' => database_path('migrations')
__DIR__.'/../database/migrations/' => database_path('migrations'),
], 'migrations');

require_once (__DIR__.'/helper.php');
require_once __DIR__.'/helper.php';
}

/**
Expand Down
4 changes: 2 additions & 2 deletions src/Models/Conf.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use Illuminate\Database\Eloquent\Model;

/**
* Class Conf
* Class Conf.
*/
class Conf extends Model
{
Expand All @@ -20,7 +20,7 @@ class Conf extends Model
* @var array
*/
protected $fillable = [
'key', 'value'
'key', 'value',
];

/**
Expand Down
2 changes: 1 addition & 1 deletion src/helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ function conf($key = null, $default = null)

return app('conf')->get($key, $default);
}
}
}

0 comments on commit 3704965

Please sign in to comment.