Skip to content
This repository was archived by the owner on Oct 8, 2024. It is now read-only.

Commit fc4332b

Browse files
committed
♻️ switched to single quotes
1 parent 7fe7a40 commit fc4332b

File tree

6 files changed

+106
-107
lines changed

6 files changed

+106
-107
lines changed

config/aloe.php

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,18 @@
11
<?php
2-
32
// config for aloe CLI
43
return [
5-
"paths" => [
6-
"controllers_path" => "/App/Controllers",
7-
"models_path" => "/App/Models",
8-
"migrations_path" => "/App/Database/Migrations",
9-
"seeds_path" => "/App/Database/Seeds",
10-
"factories_path" => "/App/Database/Factories",
11-
"helpers_path" => "/App/Helpers",
12-
"views_path" => "/App/Views",
13-
"config_path" => "/App/Config",
14-
"storage_path" => "/storage",
15-
"commands_path" => "/App/Console",
16-
"routes_path" => "/App/Routes",
17-
"lib_path" => "/Lib",
4+
'paths' => [
5+
'controllers_path' => '/app/controllers',
6+
'models_path' => '/app/models',
7+
'migrations_path' => '/app/database/migrations',
8+
'seeds_path' => '/app/database/seeds',
9+
'factories_path' => '/app/database/factories',
10+
'helpers_path' => '/app/helpers',
11+
'views_path' => '/app/views',
12+
'config_path' => '/app/config',
13+
'storage_path' => '/storage',
14+
'commands_path' => '/app/console',
15+
'routes_path' => '/app/routes',
16+
'lib_path' => '/lib',
1817
],
1918
];

config/app.php

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
| https://leafphp.netlify.app/#/leaf/v/2.5.0/config/settings?id=appdown-new
1515
|
1616
*/
17-
"app.down" => false,
17+
'app.down' => false,
1818

1919
/*
2020
|--------------------------------------------------------------------------
@@ -29,7 +29,7 @@
2929
| You might want to turn this off in production.
3030
|
3131
*/
32-
"debug" => true,
32+
'debug' => true,
3333

3434
/*
3535
|--------------------------------------------------------------------------
@@ -40,7 +40,7 @@
4040
| Use this setting if you need to return an HTTP/1.0 response.
4141
|
4242
*/
43-
"http.version" => "1.1",
43+
'http.version' => '1.1',
4444

4545
/*
4646
|--------------------------------------------------------------------------
@@ -50,7 +50,7 @@
5050
| This tells leaf which directory to save and look for logs.
5151
|
5252
*/
53-
"log.dir" => "storage/logs/",
53+
'log.dir' => 'storage/logs/',
5454

5555
/*
5656
|--------------------------------------------------------------------------
@@ -63,7 +63,7 @@
6363
| $app->log or $app->logWriter.
6464
|
6565
*/
66-
"log.enabled" => true,
66+
'log.enabled' => true,
6767

6868
/*
6969
|--------------------------------------------------------------------------
@@ -73,7 +73,7 @@
7373
| This setting tells leaf which file to write logs to.
7474
|
7575
*/
76-
"log.file" => "app.log",
76+
'log.file' => 'app.log',
7777

7878
/*
7979
|--------------------------------------------------------------------------
@@ -92,7 +92,7 @@
9292
| - \Leaf\Log::DEBUG
9393
|
9494
*/
95-
"log.level" => \Leaf\Log::DEBUG,
95+
'log.level' => \Leaf\Log::DEBUG,
9696

9797
/*
9898
|--------------------------------------------------------------------------
@@ -103,7 +103,7 @@
103103
| the specified log file if it doesn't exist.
104104
|
105105
*/
106-
"log.open" => true,
106+
'log.open' => true,
107107

108108
/*
109109
|--------------------------------------------------------------------------
@@ -114,7 +114,7 @@
114114
| to the appropriate output destination.
115115
|
116116
*/
117-
"log.writer" => null,
117+
'log.writer' => null,
118118

119119
/*
120120
|--------------------------------------------------------------------------
@@ -125,7 +125,7 @@
125125
| The mode does not affect a Leaf application’s internal functionality.
126126
|
127127
*/
128-
"mode" => "development",
128+
'mode' => 'development',
129129

130130
/*
131131
|--------------------------------------------------------------------------
@@ -136,7 +136,7 @@
136136
| contains your Leaf application’s view files.
137137
|
138138
*/
139-
"views.path" => ViewsPath(null, false),
139+
'views.path' => ViewsPath(null, false),
140140

141141
/*
142142
|--------------------------------------------------------------------------
@@ -146,5 +146,5 @@
146146
| This config tells leaf where to save cached and compiled views.
147147
|
148148
*/
149-
"views.cachePath" => StoragePath('framework/views'),
149+
'views.cachePath' => StoragePath('framework/views'),
150150
];

config/cors.php

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -9,26 +9,26 @@
99
| Configures the Access-Control-Allow-Origin CORS header. Possible values:
1010
|
1111
| * String - set origin to a specific origin. For example if
12-
| you set it to "http://example.com" only requests from
13-
| "http://example.com" will be allowed.
12+
| you set it to 'http://example.com' only requests from
13+
| 'http://example.com' will be allowed.
1414
|
1515
| * RegExp - set origin to a regular expression pattern which will be
1616
| used to test the request origin. If it's a match, the request origin
1717
| will be reflected. For example the pattern /example\.com$/ will reflect
18-
| any request that is coming from an origin ending with "example.com".
18+
| any request that is coming from an origin ending with 'example.com'.
1919
|
2020
| * Array - set origin to an array of valid origins. Each origin can be a String
21-
| or a RegExp. For example ["http://example1.com", /\.example2\.com$/] will
22-
| accept any request from "http://example1.com" or from
23-
| a subdomain of "example2.com".
21+
| or a RegExp. For example ['http://example1.com', /\.example2\.com$/] will
22+
| accept any request from 'http://example1.com' or from
23+
| a subdomain of 'example2.com'.
2424
|
2525
| * Function - set origin to a function implementing some custom
2626
| logic. The function takes the request origin as the first parameter
2727
| and a callback (called as callback(err, origin), where origin is a
2828
| non-function value of the origin option) as the second.
2929
|
3030
*/
31-
"origin" => "*",
31+
'origin' => '*',
3232

3333
/*
3434
|--------------------------------------------------------------------------
@@ -40,7 +40,7 @@
4040
| an array (ex: ['GET', 'PUT', 'POST'])
4141
|
4242
*/
43-
"methods" => "GET,HEAD,PUT,PATCH,POST,DELETE",
43+
'methods' => 'GET,HEAD,PUT,PATCH,POST,DELETE',
4444

4545
/*
4646
|--------------------------------------------------------------------------
@@ -54,7 +54,7 @@
5454
| Access-Control-Request-Headers header.
5555
|
5656
*/
57-
"allowedHeaders" => "*",
57+
'allowedHeaders' => '*',
5858

5959
/*
6060
|--------------------------------------------------------------------------
@@ -67,7 +67,7 @@
6767
| If not specified, no custom headers are exposed.
6868
|
6969
*/
70-
"exposedHeaders" => "",
70+
'exposedHeaders' => '',
7171

7272
/*
7373
|--------------------------------------------------------------------------
@@ -78,7 +78,7 @@
7878
| Set to true to pass the header, otherwise it is omitted.
7979
|
8080
*/
81-
"credentials" => false,
81+
'credentials' => false,
8282

8383
/*
8484
|--------------------------------------------------------------------------
@@ -89,7 +89,7 @@
8989
| an integer to pass the header, otherwise it is omitted.
9090
|
9191
*/
92-
"maxAge" => null,
92+
'maxAge' => null,
9393

9494
/*
9595
|--------------------------------------------------------------------------
@@ -99,7 +99,7 @@
9999
| Pass the CORS preflight response to the next handler.
100100
|
101101
*/
102-
"preflightContinue" => false,
102+
'preflightContinue' => false,
103103

104104
/*
105105
|--------------------------------------------------------------------------
@@ -110,5 +110,5 @@
110110
| since some legacy browsers (IE11, various SmartTVs) choke on 204.
111111
|
112112
*/
113-
"optionsSuccessStatus" => 204,
113+
'optionsSuccessStatus' => 204,
114114
];

config/database.php

Lines changed: 49 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
|
1414
*/
1515

16-
"default" => _env("DB_CONNECTION", "mysql"),
16+
'default' => _env('DB_CONNECTION', 'mysql'),
1717

1818
/*
1919
|--------------------------------------------------------------------------
@@ -31,61 +31,61 @@
3131
|
3232
*/
3333

34-
"connections" => [
35-
"sqlite" => [
36-
"driver" => "sqlite",
37-
"url" => _env("DATABASE_URL"),
38-
"database" => _env("DB_DATABASE", DatabasePath("database.sqlite")),
39-
"prefix" => "",
40-
"foreign_key_constraints" => _env("DB_FOREIGN_KEYS", true),
34+
'connections' => [
35+
'sqlite' => [
36+
'driver' => 'sqlite',
37+
'url' => _env('DATABASE_URL'),
38+
'database' => _env('DB_DATABASE', DatabasePath('database.sqlite')),
39+
'prefix' => '',
40+
'foreign_key_constraints' => _env('DB_FOREIGN_KEYS', true),
4141
],
4242

43-
"mysql" => [
44-
"driver" => "mysql",
45-
"url" => _env("DATABASE_URL"),
46-
"host" => _env("DB_HOST", "127.0.0.1"),
47-
"port" => _env("DB_PORT", "3306"),
48-
"database" => _env("DB_DATABASE", "forge"),
49-
"username" => _env("DB_USERNAME", "forge"),
50-
"password" => _env("DB_PASSWORD", ""),
51-
"unix_socket" => _env("DB_SOCKET", ""),
52-
"charset" => _env("DB_CHARSET", "utf8mb4"),
53-
"collation" => _env("DB_COLLATION", "utf8mb4_unicode_ci"),
54-
"prefix" => "",
55-
"prefix_indexes" => true,
56-
"strict" => true,
57-
"engine" => null,
58-
"options" => extension_loaded("pdo_mysql") ? array_filter([
59-
PDO::MYSQL_ATTR_SSL_CA => _env("MYSQL_ATTR_SSL_CA"),
43+
'mysql' => [
44+
'driver' => 'mysql',
45+
'url' => _env('DATABASE_URL'),
46+
'host' => _env('DB_HOST', '127.0.0.1'),
47+
'port' => _env('DB_PORT', '3306'),
48+
'database' => _env('DB_DATABASE', 'forge'),
49+
'username' => _env('DB_USERNAME', 'forge'),
50+
'password' => _env('DB_PASSWORD', ''),
51+
'unix_socket' => _env('DB_SOCKET', ''),
52+
'charset' => _env('DB_CHARSET', 'utf8mb4'),
53+
'collation' => _env('DB_COLLATION', 'utf8mb4_unicode_ci'),
54+
'prefix' => '',
55+
'prefix_indexes' => true,
56+
'strict' => true,
57+
'engine' => null,
58+
'options' => extension_loaded('pdo_mysql') ? array_filter([
59+
PDO::MYSQL_ATTR_SSL_CA => _env('MYSQL_ATTR_SSL_CA'),
6060
]) : [],
6161
],
6262

63-
"pgsql" => [
64-
"driver" => "pgsql",
65-
"url" => _env("DATABASE_URL"),
66-
"host" => _env("DB_HOST", "127.0.0.1"),
67-
"port" => _env("DB_PORT", "5432"),
68-
"database" => _env("DB_DATABASE", "forge"),
69-
"username" => _env("DB_USERNAME", "forge"),
70-
"password" => _env("DB_PASSWORD", ""),
71-
"charset" => _env("DB_CHARSET", "utf8"),
72-
"prefix" => "",
73-
"prefix_indexes" => true,
74-
"schema" => "public",
75-
"sslmode" => "prefer",
63+
'pgsql' => [
64+
'driver' => 'pgsql',
65+
'url' => _env('DATABASE_URL'),
66+
'host' => _env('DB_HOST', '127.0.0.1'),
67+
'port' => _env('DB_PORT', '5432'),
68+
'database' => _env('DB_DATABASE', 'forge'),
69+
'username' => _env('DB_USERNAME', 'forge'),
70+
'password' => _env('DB_PASSWORD', ''),
71+
'charset' => _env('DB_CHARSET', 'utf8'),
72+
'prefix' => '',
73+
'prefix_indexes' => true,
74+
'schema' => 'public',
75+
'sslmode' => 'prefer',
7676
],
7777

78-
"sqlsrv" => [
79-
"driver" => "sqlsrv",
80-
"url" => _env("DATABASE_URL"),
81-
"host" => _env("DB_HOST", "localhost"),
82-
"port" => _env("DB_PORT", "1433"),
83-
"database" => _env("DB_DATABASE", "forge"),
84-
"username" => _env("DB_USERNAME", "forge"),
85-
"password" => _env("DB_PASSWORD", ""),
86-
"charset" => _env("DB_CHARSET", "utf8"),
87-
"prefix" => "",
88-
"prefix_indexes" => true,
78+
'sqlsrv' => [
79+
'driver' => 'sqlsrv',
80+
'url' => _env('DATABASE_URL'),
81+
'host' => _env('DB_HOST', 'localhost'),
82+
'port' => _env('DB_PORT', '1433'),
83+
'database' => _env('DB_DATABASE', 'forge'),
84+
'username' => _env('DB_USERNAME', 'forge'),
85+
'password' => _env('DB_PASSWORD', ''),
86+
'charset' => _env('DB_CHARSET', 'utf8'),
87+
'prefix' => '',
88+
'prefix_indexes' => true,
8989
],
9090
],
9191
];

config/paths.php

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,31 @@
11
<?php
22

33
return [
4-
"controllersPath" => "app/controllers",
4+
'controllersPath' => 'app/controllers',
55

6-
"modelsPath" => "app/models",
6+
'modelsPath' => 'app/models',
77

8-
"migrationsPath" => "app/database/migrations",
8+
'migrationsPath' => 'app/database/migrations',
99

10-
"seedsPath" => "app/database/seeds",
10+
'seedsPath' => 'app/database/seeds',
1111

12-
"factoriesPath" => "app/database/factories",
12+
'factoriesPath' => 'app/database/factories',
1313

14-
"helpersPath" => "app/helpers",
14+
'helpersPath' => 'app/helpers',
1515

16-
"viewsPath" => "app/views",
16+
'viewsPath' => 'app/views',
1717

18-
"configPath" => "config",
18+
'configPath' => 'config',
1919

20-
"storagePath" => "storage",
20+
'storagePath' => 'storage',
2121

22-
"commandsPath" => "app/console",
22+
'commandsPath' => 'app/console',
2323

24-
"routesPath" => "app/routes",
24+
'routesPath' => 'app/routes',
2525

26-
"libPath" => "lib",
26+
'libPath' => 'lib',
2727

28-
"publicPath" => "public",
28+
'publicPath' => 'public',
2929

30-
"databaseStoragePath" => "storage/app/db"
30+
'databaseStoragePath' => 'storage/app/db'
3131
];

0 commit comments

Comments
 (0)