@@ -132,8 +132,8 @@ |
||
132 | 132 | $default = ["text", "min:1|max:255", []]; |
133 | 133 | return array_get([ |
134 | 134 | 'text' => ['textarea', "string|min:5", []], |
135 | - 'date' => ['date', "date", ['php_format' => 'M, d Y', 'datepicker_format' => 'M, dd YYYY',]], |
|
136 | - 'datetime' => ['datetime', "date_format:Y-m-d H:i:s", ['php_format' => 'M, d Y H:i',]], |
|
135 | + 'date' => ['date', "date", ['php_format' => 'M, d Y', 'datepicker_format' => 'M, dd YYYY', ]], |
|
136 | + 'datetime' => ['datetime', "date_format:Y-m-d H:i:s", ['php_format' => 'M, d Y H:i', ]], |
|
137 | 137 | 'time' => ['time', 'date_format:H:i:s', []], |
138 | 138 | 'double' => ['money', "integer|min:0", []], |
139 | 139 | 'int' => ['number', 'integer|min:0', []], |
@@ -14,7 +14,7 @@ |
||
14 | 14 | public function boot() |
15 | 15 | { |
16 | 16 | $this->app['view']->addNamespace('CbEmailTpl', __DIR__.'/views'); |
17 | - $this->loadRoutesFrom( __DIR__.'/email_templates_routes.php'); |
|
17 | + $this->loadRoutesFrom(__DIR__.'/email_templates_routes.php'); |
|
18 | 18 | } |
19 | 19 | |
20 | 20 | /** |
@@ -39,7 +39,7 @@ discard block |
||
39 | 39 | $printer->printHeader(); |
40 | 40 | |
41 | 41 | $passes = (new RequirementChecker($this))->check(); |
42 | - if(!$passes) { |
|
42 | + if (!$passes) { |
|
43 | 43 | $this->info('Sorry unfortunately your system is not meet with our requirements !'); |
44 | 44 | $printer->printFooter(false); |
45 | 45 | $this->info('--'); |
@@ -60,9 +60,9 @@ discard block |
||
60 | 60 | $this->symlinkForAsset(); |
61 | 61 | |
62 | 62 | |
63 | - if($this->confirm('Do you have setting the database configuration at .env ?')) { |
|
63 | + if ($this->confirm('Do you have setting the database configuration at .env ?')) { |
|
64 | 64 | $this->installCrudbooster(); |
65 | - }else{ |
|
65 | + } else { |
|
66 | 66 | $this->info('Setup Aborted !'); |
67 | 67 | $this->info('Please setting the database configuration for first !'); |
68 | 68 | } |
@@ -112,7 +112,7 @@ discard block |
||
112 | 112 | if (!file_exists($vendorPath)) { |
113 | 113 | $this->info('Creating public/vendor/crudbooster symlink...'); |
114 | 114 | app('files')->link(__DIR__.'/../assets', public_path('vendor/crudbooster')); |
115 | - return ; |
|
115 | + return; |
|
116 | 116 | } |
117 | 117 | |
118 | 118 | $this->info('Vendor Path: '.$vendorPath); |
@@ -147,7 +147,7 @@ discard block |
||
147 | 147 | $this->info('Migrating database...'); |
148 | 148 | $this->call('migrate', ['--path'=> '\database\migrations\crudbooster']); |
149 | 149 | |
150 | - if (! class_exists('CBSeeder')) { |
|
150 | + if (!class_exists('CBSeeder')) { |
|
151 | 151 | require_once __DIR__.'/../database/seeds/CBSeeder.php'; |
152 | 152 | } |
153 | 153 | $this->callSilent('db:seed', ['--class' => 'CBSeeder']); |
@@ -160,11 +160,11 @@ discard block |
||
160 | 160 | private function createVendorAtPublic() |
161 | 161 | { |
162 | 162 | $this->info('Checking public/vendor directory...'); |
163 | - if (! file_exists(public_path('vendor'))) { |
|
163 | + if (!file_exists(public_path('vendor'))) { |
|
164 | 164 | mkdir(public_path('vendor'), 0777); |
165 | 165 | } |
166 | 166 | |
167 | - if (! is_writable(public_path('vendor'))) { |
|
167 | + if (!is_writable(public_path('vendor'))) { |
|
168 | 168 | $this->info('Setup aborted !'); |
169 | 169 | $this->info('Please set public/vendor directory to writable 0777'); |
170 | 170 | exit; |
@@ -175,7 +175,7 @@ discard block |
||
175 | 175 | */ |
176 | 176 | private function rrmdir($dir) |
177 | 177 | { |
178 | - if (! is_dir($dir)) { |
|
178 | + if (!is_dir($dir)) { |
|
179 | 179 | return; |
180 | 180 | } |
181 | 181 | foreach (scandir($dir) as $object) { |
@@ -76,7 +76,7 @@ |
||
76 | 76 | */ |
77 | 77 | private function chechExtension($extension) |
78 | 78 | { |
79 | - if (! extension_loaded($extension)) { |
|
79 | + if (!extension_loaded($extension)) { |
|
80 | 80 | $this->console->info($extension.' extension: [Bad]'); |
81 | 81 | return $this->requirements = false; |
82 | 82 | } |
@@ -229,7 +229,7 @@ |
||
229 | 229 | |
230 | 230 | public static function stringify($input, $indent = "") |
231 | 231 | { |
232 | - if (! is_array($input)) { |
|
232 | + if (!is_array($input)) { |
|
233 | 233 | return var_export($input, true); |
234 | 234 | } |
235 | 235 | $buffer = []; |
@@ -9,8 +9,8 @@ |
||
9 | 9 | $colsItem = self::extractLines($code, $type); |
10 | 10 | |
11 | 11 | foreach ($colsItem as &$item) { |
12 | - $item = str_replace(' ','', $item); |
|
13 | - $item = str_replace('\',]',']', $item); |
|
12 | + $item = str_replace(' ', '', $item); |
|
13 | + $item = str_replace('\',]', ']', $item); |
|
14 | 14 | $item = trim($item); |
15 | 15 | $item = trim($item, '['); |
16 | 16 | $item = trim($item, '];'); |
@@ -61,7 +61,7 @@ |
||
61 | 61 | $columnScript[] = ' $this->col[] = [];'; |
62 | 62 | foreach ($labels as $i => $label) { |
63 | 63 | |
64 | - if (! $name[$i]) { |
|
64 | + if (!$name[$i]) { |
|
65 | 65 | continue; |
66 | 66 | } |
67 | 67 |
@@ -153,7 +153,7 @@ discard block |
||
153 | 153 | public static function first($table, $id) |
154 | 154 | { |
155 | 155 | $table = self::parseSqlTable($table)['table']; |
156 | - if (! is_array($id)) { |
|
156 | + if (!is_array($id)) { |
|
157 | 157 | $pk = self::pk($table); |
158 | 158 | |
159 | 159 | return DB::table($table)->where($pk, $id)->first(); |
@@ -247,7 +247,7 @@ discard block |
||
247 | 247 | $controllerName = basename($controllerName); |
248 | 248 | $route_url = route($controllerName.'GetIndex'); |
249 | 249 | |
250 | - if (! $path) { |
|
250 | + if (!$path) { |
|
251 | 251 | return trim($route_url, '/'); |
252 | 252 | } |
253 | 253 |
@@ -9,7 +9,7 @@ |
||
9 | 9 | @$get = $_GET; |
10 | 10 | $inputhtml = ''; |
11 | 11 | |
12 | - if (! $get) { |
|
12 | + if (!$get) { |
|
13 | 13 | return $inputhtml; |
14 | 14 | } |
15 | 15 | if (is_array($exception)) { |