editorconfig added

This commit is contained in:
Amine Ben hammou 2017-01-18 19:36:03 +00:00
parent 9ba5b5f7fe
commit de26849f18
21 changed files with 38 additions and 22 deletions

14
.editorconfig Normal file
View File

@ -0,0 +1,14 @@
root = true
[*]
end_of_line = lf
insert_final_newline = true
indent_style = space
[*.php]
charset = utf-8
indent_size = 4
[*.{json,yml}]
charset = utf-8
indent_size = 2

View File

@ -4,6 +4,7 @@ php:
- 5.5 - 5.5
- 5.6 - 5.6
- 7.0 - 7.0
- 7.1
- hhvm - hhvm
matrix: matrix:

View File

@ -1,6 +1,7 @@
# Lumen generators # Lumen generators
[![Build Status](https://travis-ci.org/webNeat/lumen-generators.svg?branch=master)](https://travis-ci.org/webNeat/lumen-generators) [![Build Status](https://travis-ci.org/webNeat/lumen-generators.svg?branch=master)](https://travis-ci.org/webNeat/lumen-generators)
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/webNeat/lumen-generators/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/webNeat/lumen-generators/?branch=master)
[![License](https://poser.pugx.org/laravel/framework/license.svg)](http://opensource.org/licenses/MIT) [![License](https://poser.pugx.org/laravel/framework/license.svg)](http://opensource.org/licenses/MIT)
A collection of generators for [Lumen](http://lumen.laravel.com) and [Laravel 5](http://laravel.com/). A collection of generators for [Lumen](http://lumen.laravel.com) and [Laravel 5](http://laravel.com/).

View File

@ -138,7 +138,7 @@ class ArgumentFormatLoader {
$attr = $matches['attr']; $attr = $matches['attr'];
$type = empty($matches['type']) ? null : $matches['type']; $type = empty($matches['type']) ? null : $matches['type'];
$isArray = (@$matches[2][0] === '['); $isArray = (isset($matches[2][0]) && $matches[2][0] === '[');
return [$attr, $type, $isArray]; return [$attr, $type, $isArray];
} }

View File

@ -16,9 +16,9 @@ class CommandsServiceProvider extends ServiceProvider
$this->registerResourcesCommand(); $this->registerResourcesCommand();
$this->registerPivotTableCommand(); $this->registerPivotTableCommand();
$this->registerFactoryCommand(); $this->registerFactoryCommand();
// $this->registerSeederCommand(); // registerSeederCommand
// $this->registerPivotSeederCommand(); // registerPivotSeederCommand
// $this->registerTestCommand(); // registerTestCommand
} }
protected function registerModelCommand(){ protected function registerModelCommand(){