@@ -18,6 +18,6 @@ |
||
18 | 18 | Cli::printer("Enter password: ", "magneta"); |
19 | 19 | $password = trim(fgets(fopen("php://stdin", "r"))); |
20 | 20 | |
21 | - Cli::printer(Auth::bcrypt($password) . PHP_EOL, "cyan", ); |
|
21 | + Cli::printer(Auth::bcrypt($password) . PHP_EOL, "cyan",); |
|
22 | 22 | } |
23 | 23 | } |
@@ -19,9 +19,9 @@ |
||
19 | 19 | $yaml = Yaml::dump($array); |
20 | 20 | file_put_contents("config/$filename.yml", $yaml); |
21 | 21 | |
22 | - Cli::printer("Yml was created" . PHP_EOL, "cyan", ); |
|
22 | + Cli::printer("Yml was created" . PHP_EOL, "cyan",); |
|
23 | 23 | } catch (Exception $e) { |
24 | - echo 'Exception: ', $e->getMessage(), "\n"; |
|
24 | + echo 'Exception: ', $e->getMessage(), "\n"; |
|
25 | 25 | } |
26 | 26 | } |
27 | 27 | } |
@@ -6,7 +6,7 @@ |
||
6 | 6 | |
7 | 7 | class PgSQL |
8 | 8 | { |
9 | - public function __construct(protected $table){} |
|
9 | + public function __construct(protected $table) {} |
|
10 | 10 | |
11 | 11 | public function isTable() |
12 | 12 | { |
@@ -6,7 +6,7 @@ |
||
6 | 6 | |
7 | 7 | class SQLite |
8 | 8 | { |
9 | - public function __construct(protected $table){} |
|
9 | + public function __construct(protected $table) {} |
|
10 | 10 | |
11 | 11 | public function up(): void |
12 | 12 | { |
@@ -6,7 +6,7 @@ |
||
6 | 6 | |
7 | 7 | class MySQL |
8 | 8 | { |
9 | - public function __construct(protected $table){} |
|
9 | + public function __construct(protected $table) {} |
|
10 | 10 | |
11 | 11 | public function isTable() |
12 | 12 | { |
@@ -5,7 +5,7 @@ |
||
5 | 5 | if (php_sapi_name() != "cli") { |
6 | 6 | Router::get([ |
7 | 7 | 'url' => "callable/:name", |
8 | - 'controller' => function ($name) { |
|
8 | + 'controller' => function($name) { |
|
9 | 9 | echo "Hello $name!"; |
10 | 10 | } |
11 | 11 | ]); |
@@ -19,7 +19,7 @@ |
||
19 | 19 | |
20 | 20 | 'services' => [ |
21 | 21 | // 'factory' => StdFactory::class, |
22 | - 'callable' => function (){ |
|
22 | + 'callable' => function() { |
|
23 | 23 | $std = new stdClass; |
24 | 24 | $std->method = __METHOD__ . '::Created from waiting'; |
25 | 25 |
@@ -5,7 +5,7 @@ |
||
5 | 5 | use App\Ship\ShipController; |
6 | 6 | use Rudra\View\ViewFacade as View; |
7 | 7 | |
8 | -class ErrorsController extends ShipController{ |
|
8 | +class ErrorsController extends ShipController { |
|
9 | 9 | public function containerInit(): void |
10 | 10 | { |
11 | 11 | View::setup(dirname(__DIR__) . "/Errors/UI/tmpl"); |
@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | #[Middleware(name: 'App\Containers\Demo\Middleware\SecondMiddleware')] |
28 | 28 | #[AfterMiddleware(name: 'App\Containers\Demo\Middleware\FirstMiddleware')] |
29 | 29 | #[AfterMiddleware(name: 'App\Containers\Demo\Middleware\SecondMiddleware')] |
30 | - public function attributes(stdClass $std, stdClass $asd,stdClass $asw,string $name = 'John'): void |
|
30 | + public function attributes(stdClass $std, stdClass $asd, stdClass $asw, string $name = 'John'): void |
|
31 | 31 | { |
32 | 32 | data([ |
33 | 33 | "content" => cache(['mainpage']) ?? view(["index", 'mainpage']), |
@@ -41,13 +41,13 @@ discard block |
||
41 | 41 | // dump(Rudra::get('factory')); |
42 | 42 | // dump(Rudra::get('callable')); |
43 | 43 | |
44 | - Rudra::set(['one', [new StdFactory()]]); |
|
44 | + Rudra::set(['one', [new StdFactory()]]); |
|
45 | 45 | dump(Rudra::get('one')); |
46 | 46 | |
47 | - Rudra::set(['two', [fn() => (new StdFactory())->create()]]); |
|
47 | + Rudra::set(['two', [fn() => (new StdFactory())->create()]]); |
|
48 | 48 | dump(Rudra::get('two')); |
49 | 49 | |
50 | - Rudra::set(['three', [StdFactory::class]]); |
|
50 | + Rudra::set(['three', [StdFactory::class]]); |
|
51 | 51 | dump(Rudra::get('three')); |
52 | 52 | |
53 | 53 | render("layout", data()); |