@@ -41,7 +41,7 @@ |
||
| 41 | 41 | 'database' => [ |
| 42 | 42 | 'driver' => 'database', |
| 43 | 43 | 'table' => 'cache', |
| 44 | - 'connection' => null, |
|
| 44 | + 'connection' => NULL, |
|
| 45 | 45 | ], |
| 46 | 46 | |
| 47 | 47 | 'file' => [ |
@@ -39,7 +39,7 @@ |
||
| 39 | 39 | | |
| 40 | 40 | */ |
| 41 | 41 | |
| 42 | - 'debug' => env('APP_DEBUG', false), |
|
| 42 | + 'debug' => env('APP_DEBUG', FALSE), |
|
| 43 | 43 | |
| 44 | 44 | /* |
| 45 | 45 | |-------------------------------------------------------------------------- |
@@ -50,8 +50,8 @@ discard block |
||
| 50 | 50 | 'charset' => 'utf8mb4', |
| 51 | 51 | 'collation' => 'utf8mb4_unicode_ci', |
| 52 | 52 | 'prefix' => '', |
| 53 | - 'strict' => true, |
|
| 54 | - 'engine' => null, |
|
| 53 | + 'strict' => TRUE, |
|
| 54 | + 'engine' => NULL, |
|
| 55 | 55 | ], |
| 56 | 56 | |
| 57 | 57 | 'pgsql' => [ |
@@ -110,7 +110,7 @@ discard block |
||
| 110 | 110 | |
| 111 | 111 | 'default' => [ |
| 112 | 112 | 'host' => env('REDIS_HOST', '127.0.0.1'), |
| 113 | - 'password' => env('REDIS_PASSWORD', null), |
|
| 113 | + 'password' => env('REDIS_PASSWORD', NULL), |
|
| 114 | 114 | 'port' => env('REDIS_PORT', 6379), |
| 115 | 115 | 'database' => 0, |
| 116 | 116 | ], |
@@ -32,7 +32,7 @@ |
||
| 32 | 32 | * |
| 33 | 33 | * @return void |
| 34 | 34 | */ |
| 35 | - public function __construct() |
|
| 35 | + public function __construct () |
|
| 36 | 36 | { |
| 37 | 37 | $this->middleware('guest'); |
| 38 | 38 | } |
@@ -5,8 +5,7 @@ |
||
| 5 | 5 | use Illuminate\Foundation\Auth\SendsPasswordResetEmails; |
| 6 | 6 | use LaravelSeed\Http\Controllers\Controller; |
| 7 | 7 | |
| 8 | -class ForgotPasswordController extends Controller |
|
| 9 | -{ |
|
| 8 | +class ForgotPasswordController extends Controller { |
|
| 10 | 9 | /* |
| 11 | 10 | |-------------------------------------------------------------------------- |
| 12 | 11 | | Password Reset Controller |
@@ -38,7 +38,7 @@ discard block |
||
| 38 | 38 | * @param string $host Parametro obrigatório, endereço do WSDL |
| 39 | 39 | * @param array $options Parametro opcional, referente aos options que serão utilizados |
| 40 | 40 | */ |
| 41 | - public function __construct($host, array $options = []) |
|
| 41 | + public function __construct ($host, array $options = [ ]) |
|
| 42 | 42 | { |
| 43 | 43 | $this->setHost($host) |
| 44 | 44 | ->setOptions($options); |
@@ -49,7 +49,7 @@ discard block |
||
| 49 | 49 | * |
| 50 | 50 | * @return self |
| 51 | 51 | */ |
| 52 | - public function connect() |
|
| 52 | + public function connect () |
|
| 53 | 53 | { |
| 54 | 54 | if (!$host = $this->getHost()) { |
| 55 | 55 | throw new InvalidArgumentException('Host não informado'); |
@@ -67,7 +67,7 @@ discard block |
||
| 67 | 67 | * |
| 68 | 68 | * @return SoapClient::__soapCall |
| 69 | 69 | */ |
| 70 | - public function call() |
|
| 70 | + public function call () |
|
| 71 | 71 | { |
| 72 | 72 | $host = $this->getHost(); |
| 73 | 73 | if (!$host || empty($host)) { |
@@ -95,7 +95,7 @@ discard block |
||
| 95 | 95 | * |
| 96 | 96 | * @return string |
| 97 | 97 | */ |
| 98 | - public function getHost() |
|
| 98 | + public function getHost () |
|
| 99 | 99 | { |
| 100 | 100 | return $this->host; |
| 101 | 101 | } |
@@ -107,7 +107,7 @@ discard block |
||
| 107 | 107 | * |
| 108 | 108 | * @return self |
| 109 | 109 | */ |
| 110 | - public function setHost($host) |
|
| 110 | + public function setHost ($host) |
|
| 111 | 111 | { |
| 112 | 112 | $this->host = $host; |
| 113 | 113 | |
@@ -119,7 +119,7 @@ discard block |
||
| 119 | 119 | * |
| 120 | 120 | * @return array |
| 121 | 121 | */ |
| 122 | - public function getOptions() |
|
| 122 | + public function getOptions () |
|
| 123 | 123 | { |
| 124 | 124 | return $this->options; |
| 125 | 125 | } |
@@ -131,7 +131,7 @@ discard block |
||
| 131 | 131 | * |
| 132 | 132 | * @return self |
| 133 | 133 | */ |
| 134 | - public function setOptions(array $options) |
|
| 134 | + public function setOptions (array $options) |
|
| 135 | 135 | { |
| 136 | 136 | $this->options = $options; |
| 137 | 137 | |
@@ -143,7 +143,7 @@ discard block |
||
| 143 | 143 | * |
| 144 | 144 | * @return mixed |
| 145 | 145 | */ |
| 146 | - public function getRequest() |
|
| 146 | + public function getRequest () |
|
| 147 | 147 | { |
| 148 | 148 | return $this->request; |
| 149 | 149 | } |
@@ -155,7 +155,7 @@ discard block |
||
| 155 | 155 | * |
| 156 | 156 | * @return self |
| 157 | 157 | */ |
| 158 | - public function setRequest($request) |
|
| 158 | + public function setRequest ($request) |
|
| 159 | 159 | { |
| 160 | 160 | $this->request = $request; |
| 161 | 161 | |
@@ -167,7 +167,7 @@ discard block |
||
| 167 | 167 | * |
| 168 | 168 | * @return mixed |
| 169 | 169 | */ |
| 170 | - public function getService() |
|
| 170 | + public function getService () |
|
| 171 | 171 | { |
| 172 | 172 | return $this->service; |
| 173 | 173 | } |
@@ -179,7 +179,7 @@ discard block |
||
| 179 | 179 | * |
| 180 | 180 | * @return self |
| 181 | 181 | */ |
| 182 | - public function setService($service) |
|
| 182 | + public function setService ($service) |
|
| 183 | 183 | { |
| 184 | 184 | $this->service = $service; |
| 185 | 185 | |
@@ -191,7 +191,7 @@ discard block |
||
| 191 | 191 | * |
| 192 | 192 | * @return SoapClient |
| 193 | 193 | */ |
| 194 | - public function getClient() |
|
| 194 | + public function getClient () |
|
| 195 | 195 | { |
| 196 | 196 | return $this->client; |
| 197 | 197 | } |
@@ -203,7 +203,7 @@ discard block |
||
| 203 | 203 | * |
| 204 | 204 | * @return self |
| 205 | 205 | */ |
| 206 | - public function setClient(NativeSoapClient $client) |
|
| 206 | + public function setClient (NativeSoapClient $client) |
|
| 207 | 207 | { |
| 208 | 208 | $this->client = $client; |
| 209 | 209 | |
@@ -5,8 +5,7 @@ |
||
| 5 | 5 | use InvalidArgumentException; |
| 6 | 6 | use SoapClient as NativeSoapClient; |
| 7 | 7 | |
| 8 | -class SoapClient |
|
| 9 | -{ |
|
| 8 | +class SoapClient { |
|
| 10 | 9 | /** |
| 11 | 10 | * @var string |
| 12 | 11 | */ |
@@ -5,14 +5,14 @@ discard block |
||
| 5 | 5 | class CurlHelper |
| 6 | 6 | { |
| 7 | 7 | protected $init; |
| 8 | - protected $headers = []; |
|
| 8 | + protected $headers = [ ]; |
|
| 9 | 9 | protected $response; |
| 10 | 10 | protected $info; |
| 11 | 11 | protected $baseUrl; |
| 12 | 12 | protected $posFixUrl; |
| 13 | - protected $options = []; |
|
| 13 | + protected $options = [ ]; |
|
| 14 | 14 | |
| 15 | - public function __construct($baseUrl, array $headers = []) |
|
| 15 | + public function __construct ($baseUrl, array $headers = [ ]) |
|
| 16 | 16 | { |
| 17 | 17 | $this->init = curl_init(); |
| 18 | 18 | |
@@ -21,7 +21,7 @@ discard block |
||
| 21 | 21 | $this->headers = $headers; |
| 22 | 22 | } |
| 23 | 23 | |
| 24 | - protected function exec() |
|
| 24 | + protected function exec () |
|
| 25 | 25 | { |
| 26 | 26 | curl_setopt($this->init, CURLOPT_URL, trim($this->baseUrl.$this->posFixUrl)); |
| 27 | 27 | curl_setopt($this->init, CURLOPT_RETURNTRANSFER, true); |
@@ -37,7 +37,7 @@ discard block |
||
| 37 | 37 | $this->info = curl_getinfo($this->init); |
| 38 | 38 | } |
| 39 | 39 | |
| 40 | - public function send($close = true) |
|
| 40 | + public function send ($close = true) |
|
| 41 | 41 | { |
| 42 | 42 | $this->exec(); |
| 43 | 43 | |
@@ -48,59 +48,59 @@ discard block |
||
| 48 | 48 | return $this; |
| 49 | 49 | } |
| 50 | 50 | |
| 51 | - public function addHeader($header) |
|
| 51 | + public function addHeader ($header) |
|
| 52 | 52 | { |
| 53 | - $this->headers[] = $header; |
|
| 53 | + $this->headers[ ] = $header; |
|
| 54 | 54 | |
| 55 | 55 | return $this; |
| 56 | 56 | } |
| 57 | 57 | |
| 58 | - public function getResponse() |
|
| 58 | + public function getResponse () |
|
| 59 | 59 | { |
| 60 | 60 | return [ |
| 61 | - 'code' => $this->info['http_code'], |
|
| 61 | + 'code' => $this->info[ 'http_code' ], |
|
| 62 | 62 | 'data' => $this->response, |
| 63 | 63 | ]; |
| 64 | 64 | } |
| 65 | 65 | |
| 66 | - public function getInfo() |
|
| 66 | + public function getInfo () |
|
| 67 | 67 | { |
| 68 | 68 | return $this->info; |
| 69 | 69 | } |
| 70 | 70 | |
| 71 | - public function setBaseUrl($baseUrl) |
|
| 71 | + public function setBaseUrl ($baseUrl) |
|
| 72 | 72 | { |
| 73 | 73 | $this->baseUrl = $baseUrl; |
| 74 | 74 | |
| 75 | 75 | return $this; |
| 76 | 76 | } |
| 77 | 77 | |
| 78 | - public function setPosFixUrl($posFixUrl) |
|
| 78 | + public function setPosFixUrl ($posFixUrl) |
|
| 79 | 79 | { |
| 80 | 80 | $this->posFixUrl = $posFixUrl; |
| 81 | 81 | |
| 82 | 82 | return $this; |
| 83 | 83 | } |
| 84 | 84 | |
| 85 | - public function post(array $data) |
|
| 85 | + public function post (array $data) |
|
| 86 | 86 | { |
| 87 | - $this->options[CURLOPT_POST] = true; |
|
| 88 | - $this->options[CURLOPT_POSTFIELDS] = json_encode($data); |
|
| 87 | + $this->options[ CURLOPT_POST ] = true; |
|
| 88 | + $this->options[ CURLOPT_POSTFIELDS ] = json_encode($data); |
|
| 89 | 89 | |
| 90 | 90 | return $this; |
| 91 | 91 | } |
| 92 | 92 | |
| 93 | - public function put(array $data) |
|
| 93 | + public function put (array $data) |
|
| 94 | 94 | { |
| 95 | - $this->options[CURLOPT_CUSTOMREQUEST] = 'PUT'; |
|
| 96 | - $this->options[CURLOPT_POSTFIELDS] = json_encode($data); |
|
| 95 | + $this->options[ CURLOPT_CUSTOMREQUEST ] = 'PUT'; |
|
| 96 | + $this->options[ CURLOPT_POSTFIELDS ] = json_encode($data); |
|
| 97 | 97 | |
| 98 | 98 | return $this; |
| 99 | 99 | } |
| 100 | 100 | |
| 101 | - public function delete() |
|
| 101 | + public function delete () |
|
| 102 | 102 | { |
| 103 | - $this->options[CURLOPT_CUSTOMREQUEST] = 'DELETE'; |
|
| 103 | + $this->options[ CURLOPT_CUSTOMREQUEST ] = 'DELETE'; |
|
| 104 | 104 | |
| 105 | 105 | return $this; |
| 106 | 106 | } |
@@ -2,8 +2,7 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Bludata\Helpers; |
| 4 | 4 | |
| 5 | -class CurlHelper |
|
| 6 | -{ |
|
| 5 | +class CurlHelper { |
|
| 7 | 6 | protected $init; |
| 8 | 7 | protected $headers = []; |
| 9 | 8 | protected $response; |
@@ -24,9 +24,9 @@ discard block |
||
| 24 | 24 | protected function exec() |
| 25 | 25 | { |
| 26 | 26 | curl_setopt($this->init, CURLOPT_URL, trim($this->baseUrl.$this->posFixUrl)); |
| 27 | - curl_setopt($this->init, CURLOPT_RETURNTRANSFER, true); |
|
| 27 | + curl_setopt($this->init, CURLOPT_RETURNTRANSFER, TRUE); |
|
| 28 | 28 | curl_setopt($this->init, CURLOPT_HTTPHEADER, $this->headers); |
| 29 | - curl_setopt($this->init, CURLOPT_SSL_VERIFYPEER, false); |
|
| 29 | + curl_setopt($this->init, CURLOPT_SSL_VERIFYPEER, FALSE); |
|
| 30 | 30 | |
| 31 | 31 | foreach ($this->options as $key => $value) { |
| 32 | 32 | curl_setopt($this->init, $key, $value); |
@@ -37,11 +37,11 @@ discard block |
||
| 37 | 37 | $this->info = curl_getinfo($this->init); |
| 38 | 38 | } |
| 39 | 39 | |
| 40 | - public function send($close = true) |
|
| 40 | + public function send($close = TRUE) |
|
| 41 | 41 | { |
| 42 | 42 | $this->exec(); |
| 43 | 43 | |
| 44 | - if ($close === true) { |
|
| 44 | + if ($close === TRUE) { |
|
| 45 | 45 | curl_close($this->init); |
| 46 | 46 | } |
| 47 | 47 | |
@@ -84,7 +84,7 @@ discard block |
||
| 84 | 84 | |
| 85 | 85 | public function post(array $data) |
| 86 | 86 | { |
| 87 | - $this->options[CURLOPT_POST] = true; |
|
| 87 | + $this->options[CURLOPT_POST] = TRUE; |
|
| 88 | 88 | $this->options[CURLOPT_POSTFIELDS] = json_encode($data); |
| 89 | 89 | |
| 90 | 90 | return $this; |
@@ -6,8 +6,7 @@ |
||
| 6 | 6 | use Illuminate\Foundation\Application; |
| 7 | 7 | use Illuminate\Support\Facades\Route; |
| 8 | 8 | |
| 9 | -class BaseApplication extends Application |
|
| 10 | -{ |
|
| 9 | +class BaseApplication extends Application { |
|
| 11 | 10 | public function publicRoutes(string $uri, string $controller, Closure $routes = null, array $options = []) |
| 12 | 11 | { |
| 13 | 12 | $options['only'] = $options['only'] ?? ['index', 'show', 'destroyed']; |
@@ -8,21 +8,21 @@ |
||
| 8 | 8 | |
| 9 | 9 | class BaseApplication extends Application |
| 10 | 10 | { |
| 11 | - public function publicRoutes(string $uri, string $controller, Closure $routes = null, array $options = []) |
|
| 11 | + public function publicRoutes(string $uri, string $controller, Closure $routes = NULL, array $options = []) |
|
| 12 | 12 | { |
| 13 | 13 | $options['only'] = $options['only'] ?? ['index', 'show', 'destroyed']; |
| 14 | 14 | |
| 15 | 15 | return $this->resourceRoutes($uri, $controller, $routes, $options); |
| 16 | 16 | } |
| 17 | 17 | |
| 18 | - public function routesWithPermission(string $uri, string $controller, Closure $routes = null, array $options = []) |
|
| 18 | + public function routesWithPermission(string $uri, string $controller, Closure $routes = NULL, array $options = []) |
|
| 19 | 19 | { |
| 20 | 20 | $options['only'] = $options['only'] ?? ['store', 'update', 'destroyed', 'restoreDestroyed']; |
| 21 | 21 | |
| 22 | 22 | return $this->resourceRoutes($uri, $controller, $routes, $options); |
| 23 | 23 | } |
| 24 | 24 | |
| 25 | - public function resourceRoutes(string $uri, string $controller, Closure $routes = null, array $options = []) |
|
| 25 | + public function resourceRoutes(string $uri, string $controller, Closure $routes = NULL, array $options = []) |
|
| 26 | 26 | { |
| 27 | 27 | $options['name'] = $options['name'] ?? $uri; |
| 28 | 28 | $options['only'] = $options['only'] ?? []; |
@@ -8,62 +8,62 @@ |
||
| 8 | 8 | |
| 9 | 9 | class BaseApplication extends Application |
| 10 | 10 | { |
| 11 | - public function publicRoutes(string $uri, string $controller, Closure $routes = null, array $options = []) |
|
| 11 | + public function publicRoutes (string $uri, string $controller, Closure $routes = null, array $options = [ ]) |
|
| 12 | 12 | { |
| 13 | - $options['only'] = $options['only'] ?? ['index', 'show', 'destroyed']; |
|
| 13 | + $options[ 'only' ] = $options[ 'only' ] ?? [ 'index', 'show', 'destroyed' ]; |
|
| 14 | 14 | |
| 15 | 15 | return $this->resourceRoutes($uri, $controller, $routes, $options); |
| 16 | 16 | } |
| 17 | 17 | |
| 18 | - public function routesWithPermission(string $uri, string $controller, Closure $routes = null, array $options = []) |
|
| 18 | + public function routesWithPermission (string $uri, string $controller, Closure $routes = null, array $options = [ ]) |
|
| 19 | 19 | { |
| 20 | - $options['only'] = $options['only'] ?? ['store', 'update', 'destroyed', 'restoreDestroyed']; |
|
| 20 | + $options[ 'only' ] = $options[ 'only' ] ?? [ 'store', 'update', 'destroyed', 'restoreDestroyed' ]; |
|
| 21 | 21 | |
| 22 | 22 | return $this->resourceRoutes($uri, $controller, $routes, $options); |
| 23 | 23 | } |
| 24 | 24 | |
| 25 | - public function resourceRoutes(string $uri, string $controller, Closure $routes = null, array $options = []) |
|
| 25 | + public function resourceRoutes (string $uri, string $controller, Closure $routes = null, array $options = [ ]) |
|
| 26 | 26 | { |
| 27 | - $options['name'] = $options['name'] ?? $uri; |
|
| 28 | - $options['only'] = $options['only'] ?? []; |
|
| 29 | - $options['except'] = $options['except'] ?? []; |
|
| 27 | + $options[ 'name' ] = $options[ 'name' ] ?? $uri; |
|
| 28 | + $options[ 'only' ] = $options[ 'only' ] ?? [ ]; |
|
| 29 | + $options[ 'except' ] = $options[ 'except' ] ?? [ ]; |
|
| 30 | 30 | |
| 31 | - $exceptAll = isset($options['except'][0]) && $options['except'][0] == '*'; |
|
| 31 | + $exceptAll = isset($options[ 'except' ][ 0 ]) && $options[ 'except' ][ 0 ] == '*'; |
|
| 32 | 32 | |
| 33 | 33 | if (!$exceptAll) { |
| 34 | - if (in_array('index', $options['only']) && !in_array('index', $options['except'])) { |
|
| 34 | + if (in_array('index', $options[ 'only' ]) && !in_array('index', $options[ 'except' ])) { |
|
| 35 | 35 | Route::get($uri, $controller.'@index') |
| 36 | - ->name($options['name'].'.index'); |
|
| 36 | + ->name($options[ 'name' ].'.index'); |
|
| 37 | 37 | } |
| 38 | 38 | |
| 39 | - if (in_array('show', $options['only']) && !in_array('show', $options['except'])) { |
|
| 39 | + if (in_array('show', $options[ 'only' ]) && !in_array('show', $options[ 'except' ])) { |
|
| 40 | 40 | Route::get($uri.'/{uuid}', $controller.'@show') |
| 41 | - ->name($options['name'].'.show'); |
|
| 41 | + ->name($options[ 'name' ].'.show'); |
|
| 42 | 42 | } |
| 43 | 43 | |
| 44 | - if (in_array('store', $options['only']) && !in_array('store', $options['except'])) { |
|
| 44 | + if (in_array('store', $options[ 'only' ]) && !in_array('store', $options[ 'except' ])) { |
|
| 45 | 45 | Route::post($uri, $controller.'@store') |
| 46 | - ->name($options['name'].'.store'); |
|
| 46 | + ->name($options[ 'name' ].'.store'); |
|
| 47 | 47 | } |
| 48 | 48 | |
| 49 | - if (in_array('update', $options['only']) && !in_array('update', $options['except'])) { |
|
| 49 | + if (in_array('update', $options[ 'only' ]) && !in_array('update', $options[ 'except' ])) { |
|
| 50 | 50 | Route::put($uri.'/{uuid}', $controller.'@update') |
| 51 | - ->name($options['name'].'.update'); |
|
| 51 | + ->name($options[ 'name' ].'.update'); |
|
| 52 | 52 | } |
| 53 | 53 | |
| 54 | - if (in_array('destroy', $options['only']) && !in_array('destroy', $options['except'])) { |
|
| 54 | + if (in_array('destroy', $options[ 'only' ]) && !in_array('destroy', $options[ 'except' ])) { |
|
| 55 | 55 | Route::delete($uri.'/{uuid}', $controller.'@destroy') |
| 56 | - ->name($options['name'].'.destroy'); |
|
| 56 | + ->name($options[ 'name' ].'.destroy'); |
|
| 57 | 57 | } |
| 58 | 58 | |
| 59 | - if (in_array('destroyed', $options['only']) && !in_array('destroyed', $options['except'])) { |
|
| 59 | + if (in_array('destroyed', $options[ 'only' ]) && !in_array('destroyed', $options[ 'except' ])) { |
|
| 60 | 60 | Route::get($uri.'/destroyed', $controller.'@destroyed') |
| 61 | - ->name($options['name'].'.destroyed'); |
|
| 61 | + ->name($options[ 'name' ].'.destroyed'); |
|
| 62 | 62 | } |
| 63 | 63 | |
| 64 | - if (in_array('restoreDestroyed', $options['only']) && !in_array('restoreDestroyed', $options['except'])) { |
|
| 64 | + if (in_array('restoreDestroyed', $options[ 'only' ]) && !in_array('restoreDestroyed', $options[ 'except' ])) { |
|
| 65 | 65 | Route::post($uri.'/{uuid}', $controller.'@restoreDestroyed') |
| 66 | - ->name($options['name'].'.restoreDestroyed'); |
|
| 66 | + ->name($options[ 'name' ].'.restoreDestroyed'); |
|
| 67 | 67 | } |
| 68 | 68 | } |
| 69 | 69 | |
@@ -34,7 +34,7 @@ discard block |
||
| 34 | 34 | * |
| 35 | 35 | * @return void |
| 36 | 36 | */ |
| 37 | - public function __construct() |
|
| 37 | + public function __construct () |
|
| 38 | 38 | { |
| 39 | 39 | $this->middleware('guest'); |
| 40 | 40 | } |
@@ -46,7 +46,7 @@ discard block |
||
| 46 | 46 | * |
| 47 | 47 | * @return \Illuminate\Contracts\Validation\Validator |
| 48 | 48 | */ |
| 49 | - protected function validator(array $data) |
|
| 49 | + protected function validator (array $data) |
|
| 50 | 50 | { |
| 51 | 51 | return Validator::make($data, [ |
| 52 | 52 | 'name' => 'required|string|max:255', |
@@ -62,12 +62,12 @@ discard block |
||
| 62 | 62 | * |
| 63 | 63 | * @return \LaravelSeed\User |
| 64 | 64 | */ |
| 65 | - protected function create(array $data) |
|
| 65 | + protected function create (array $data) |
|
| 66 | 66 | { |
| 67 | 67 | return User::create([ |
| 68 | - 'name' => $data['name'], |
|
| 69 | - 'email' => $data['email'], |
|
| 70 | - 'password' => bcrypt($data['password']), |
|
| 68 | + 'name' => $data[ 'name' ], |
|
| 69 | + 'email' => $data[ 'email' ], |
|
| 70 | + 'password' => bcrypt($data[ 'password' ]), |
|
| 71 | 71 | ]); |
| 72 | 72 | } |
| 73 | 73 | } |
@@ -7,8 +7,7 @@ |
||
| 7 | 7 | use LaravelSeed\Http\Controllers\Controller; |
| 8 | 8 | use LaravelSeed\User; |
| 9 | 9 | |
| 10 | -class RegisterController extends Controller |
|
| 11 | -{ |
|
| 10 | +class RegisterController extends Controller { |
|
| 12 | 11 | /* |
| 13 | 12 | |-------------------------------------------------------------------------- |
| 14 | 13 | | Register Controller |
@@ -25,7 +25,7 @@ discard block |
||
| 25 | 25 | 'dev' => env('APP_DEBUG'), |
| 26 | 26 | 'meta' => env('DOCTRINE_METADATA', 'annotations'), |
| 27 | 27 | 'connection' => env('DB_CONNECTION', 'mysql'), |
| 28 | - 'namespaces' => [], |
|
| 28 | + 'namespaces' => [ ], |
|
| 29 | 29 | 'paths' => [ |
| 30 | 30 | base_path('app/Entities'), |
| 31 | 31 | ], |
@@ -45,10 +45,10 @@ discard block |
||
| 45 | 45 | | |
| 46 | 46 | */ |
| 47 | 47 | 'events' => [ |
| 48 | - 'listeners' => [], |
|
| 49 | - 'subscribers' => [], |
|
| 48 | + 'listeners' => [ ], |
|
| 49 | + 'subscribers' => [ ], |
|
| 50 | 50 | ], |
| 51 | - 'filters' => [], |
|
| 51 | + 'filters' => [ ], |
|
| 52 | 52 | /* |
| 53 | 53 | |-------------------------------------------------------------------------- |
| 54 | 54 | | Doctrine mapping types |
@@ -115,19 +115,19 @@ discard block |
||
| 115 | 115 | | DQL custom datetime functions |
| 116 | 116 | |-------------------------------------------------------------------------- |
| 117 | 117 | */ |
| 118 | - 'custom_datetime_functions' => [], |
|
| 118 | + 'custom_datetime_functions' => [ ], |
|
| 119 | 119 | /* |
| 120 | 120 | |-------------------------------------------------------------------------- |
| 121 | 121 | | DQL custom numeric functions |
| 122 | 122 | |-------------------------------------------------------------------------- |
| 123 | 123 | */ |
| 124 | - 'custom_numeric_functions' => [], |
|
| 124 | + 'custom_numeric_functions' => [ ], |
|
| 125 | 125 | /* |
| 126 | 126 | |-------------------------------------------------------------------------- |
| 127 | 127 | | DQL custom string functions |
| 128 | 128 | |-------------------------------------------------------------------------- |
| 129 | 129 | */ |
| 130 | - 'custom_string_functions' => [], |
|
| 130 | + 'custom_string_functions' => [ ], |
|
| 131 | 131 | /* |
| 132 | 132 | |-------------------------------------------------------------------------- |
| 133 | 133 | | Register custom hydrators |
@@ -31,9 +31,9 @@ discard block |
||
| 31 | 31 | ], |
| 32 | 32 | 'repository' => Doctrine\ORM\EntityRepository::class, |
| 33 | 33 | 'proxies' => [ |
| 34 | - 'namespace' => false, |
|
| 34 | + 'namespace' => FALSE, |
|
| 35 | 35 | 'path' => storage_path('proxies'), |
| 36 | - 'auto_generate' => env('DOCTRINE_PROXY_AUTOGENERATE', false), |
|
| 36 | + 'auto_generate' => env('DOCTRINE_PROXY_AUTOGENERATE', FALSE), |
|
| 37 | 37 | ], |
| 38 | 38 | /* |
| 39 | 39 | |-------------------------------------------------------------------------- |
@@ -148,7 +148,7 @@ discard block |
||
| 148 | 148 | | - LaravelDoctrine\ORM\Loggers\FileLogger |
| 149 | 149 | |-------------------------------------------------------------------------- |
| 150 | 150 | */ |
| 151 | - 'logger' => env('DOCTRINE_LOGGER', false), |
|
| 151 | + 'logger' => env('DOCTRINE_LOGGER', FALSE), |
|
| 152 | 152 | /* |
| 153 | 153 | |-------------------------------------------------------------------------- |
| 154 | 154 | | Cache |
@@ -161,20 +161,20 @@ discard block |
||
| 161 | 161 | | |
| 162 | 162 | */ |
| 163 | 163 | 'cache' => [ |
| 164 | - 'second_level' => false, |
|
| 164 | + 'second_level' => FALSE, |
|
| 165 | 165 | 'default' => env('DOCTRINE_CACHE', 'array'), |
| 166 | - 'namespace' => null, |
|
| 166 | + 'namespace' => NULL, |
|
| 167 | 167 | 'metadata' => [ |
| 168 | 168 | 'driver' => env('DOCTRINE_METADATA_CACHE', env('DOCTRINE_CACHE', 'array')), |
| 169 | - 'namespace' => null, |
|
| 169 | + 'namespace' => NULL, |
|
| 170 | 170 | ], |
| 171 | 171 | 'query' => [ |
| 172 | 172 | 'driver' => env('DOCTRINE_QUERY_CACHE', env('DOCTRINE_CACHE', 'array')), |
| 173 | - 'namespace' => null, |
|
| 173 | + 'namespace' => NULL, |
|
| 174 | 174 | ], |
| 175 | 175 | 'result' => [ |
| 176 | 176 | 'driver' => env('DOCTRINE_RESULT_CACHE', env('DOCTRINE_CACHE', 'array')), |
| 177 | - 'namespace' => null, |
|
| 177 | + 'namespace' => NULL, |
|
| 178 | 178 | ], |
| 179 | 179 | ], |
| 180 | 180 | /* |
@@ -188,7 +188,7 @@ discard block |
||
| 188 | 188 | | |
| 189 | 189 | */ |
| 190 | 190 | 'gedmo' => [ |
| 191 | - 'all_mappings' => false, |
|
| 191 | + 'all_mappings' => FALSE, |
|
| 192 | 192 | ], |
| 193 | 193 | /* |
| 194 | 194 | |-------------------------------------------------------------------------- |
@@ -198,7 +198,7 @@ discard block |
||
| 198 | 198 | | Enables the Doctrine Presence Verifier for Validation |
| 199 | 199 | | |
| 200 | 200 | */ |
| 201 | - 'doctrine_presence_verifier' => true, |
|
| 201 | + 'doctrine_presence_verifier' => TRUE, |
|
| 202 | 202 | |
| 203 | 203 | /* |
| 204 | 204 | |-------------------------------------------------------------------------- |