mirror of
https://github.com/ZorgCC/lumen-generators.git
synced 2025-01-12 21:37:56 +03:00
editorconfig added
This commit is contained in:
parent
9ba5b5f7fe
commit
de26849f18
14
.editorconfig
Normal file
14
.editorconfig
Normal 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
2
.gitignore
vendored
@ -6,4 +6,4 @@ tests/_output/*
|
||||
|
||||
lumen-test/app
|
||||
lumen-test/database
|
||||
lumen-test/tests/tmp
|
||||
lumen-test/tests/tmp
|
||||
|
@ -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
|
||||
|
@ -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/).
|
||||
|
@ -40,4 +40,4 @@ class ArgumentFormat {
|
||||
*/
|
||||
public $format;
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -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];
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -112,4 +112,4 @@ class ArgumentParser {
|
||||
return $result;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -54,4 +54,4 @@ class BaseCommand extends Command {
|
||||
return str_repeat(' ', $n);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -40,4 +40,4 @@ class ControllerCommand extends BaseCommand {
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -15,4 +15,4 @@ class ControllerRestActionsCommand extends BaseCommand {
|
||||
$this->save($content, "./app/Http/Controllers/RESTActions.php", "REST actions trait");
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -62,4 +62,4 @@ class FactoryCommand extends BaseCommand {
|
||||
return $content;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -55,4 +55,4 @@ class PivotSeederCommand extends BaseCommand {
|
||||
return array_map('str_plural', $resources);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -37,4 +37,4 @@ class SeederCommand extends BaseCommand {
|
||||
return $name;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
<?php
|
||||
/**
|
||||
* Comming Soon
|
||||
*/
|
||||
*/
|
||||
|
@ -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(){
|
||||
|
@ -1,4 +1,4 @@
|
||||
<?php namespace Wn\Generators\Exceptions;
|
||||
|
||||
|
||||
class ArgumentFormatException extends \Exception {}
|
||||
class ArgumentFormatException extends \Exception {}
|
||||
|
@ -1,4 +1,4 @@
|
||||
<?php namespace Wn\Generators\Exceptions;
|
||||
|
||||
|
||||
class ArgumentParserException extends \Exception {}
|
||||
class ArgumentParserException extends \Exception {}
|
||||
|
@ -1,4 +1,4 @@
|
||||
<?php namespace Wn\Generators\Exceptions;
|
||||
|
||||
|
||||
class TemplateException extends \Exception {}
|
||||
class TemplateException extends \Exception {}
|
||||
|
@ -59,4 +59,4 @@ class Template {
|
||||
return $this;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -30,4 +30,4 @@ class TemplateLoader {
|
||||
return new Template($this, $this->loaded[$name]);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user