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

2
.gitignore vendored
View File

@ -6,4 +6,4 @@ tests/_output/*
lumen-test/app
lumen-test/database
lumen-test/tests/tmp
lumen-test/tests/tmp

View File

@ -4,6 +4,7 @@ php:
- 5.5
- 5.6
- 7.0
- 7.1
- hhvm
matrix:
@ -14,4 +15,4 @@ sudo: false
install: ./install.sh
script: ./test.sh
script: ./test.sh

View File

@ -1,6 +1,7 @@
# 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)
A collection of generators for [Lumen](http://lumen.laravel.com) and [Laravel 5](http://laravel.com/).

View File

@ -40,4 +40,4 @@ class ArgumentFormat {
*/
public $format;
}
}

View File

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

View File

@ -112,4 +112,4 @@ class ArgumentParser {
return $result;
}
}
}

View File

@ -54,4 +54,4 @@ class BaseCommand extends Command {
return str_repeat(' ', $n);
}
}
}

View File

@ -40,4 +40,4 @@ class ControllerCommand extends BaseCommand {
}
}
}
}

View File

@ -15,4 +15,4 @@ class ControllerRestActionsCommand extends BaseCommand {
$this->save($content, "./app/Http/Controllers/RESTActions.php", "REST actions trait");
}
}
}

View File

@ -62,4 +62,4 @@ class FactoryCommand extends BaseCommand {
return $content;
}
}
}

View File

@ -55,4 +55,4 @@ class PivotSeederCommand extends BaseCommand {
return array_map('str_plural', $resources);
}
}
}

View File

@ -37,4 +37,4 @@ class SeederCommand extends BaseCommand {
return $name;
}
}
}

View File

@ -1,4 +1,4 @@
<?php
/**
* Comming Soon
*/
*/

View File

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

View File

@ -1,4 +1,4 @@
<?php namespace Wn\Generators\Exceptions;
class ArgumentFormatException extends \Exception {}
class ArgumentFormatException extends \Exception {}

View File

@ -1,4 +1,4 @@
<?php namespace Wn\Generators\Exceptions;
class ArgumentParserException extends \Exception {}
class ArgumentParserException extends \Exception {}

View File

@ -1,4 +1,4 @@
<?php namespace Wn\Generators\Exceptions;
class TemplateException extends \Exception {}
class TemplateException extends \Exception {}

View File

@ -59,4 +59,4 @@ class Template {
return $this;
}
}
}

View File

@ -30,4 +30,4 @@ class TemplateLoader {
return new Template($this, $this->loaded[$name]);
}
}
}

View File

@ -1,4 +1,4 @@
# Runing tests for Lumen
cd lumen-test
wget http://codeception.com/codecept.phar
php codecept.phar run
php codecept.phar run