@@ -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 | } |
@@ -4,7 +4,7 @@ |
||
4 | 4 | |
5 | 5 | Router::get([ |
6 | 6 | 'url' => "callable/:name", |
7 | - 'controller' => function ($name) { |
|
7 | + 'controller' => function($name) { |
|
8 | 8 | echo "Hello $name!"; |
9 | 9 | } |
10 | 10 | ]); |
@@ -8,7 +8,7 @@ discard block |
||
8 | 8 | 'contracts' => [ |
9 | 9 | // stdClass::class => StdFactory::class, |
10 | 10 | // stdClass::class => 'callable', |
11 | - stdClass::class => function (){ |
|
11 | + stdClass::class => function() { |
|
12 | 12 | $std = new stdClass; |
13 | 13 | $std->method = __METHOD__ . '::Dependency Injection'; |
14 | 14 | |
@@ -19,7 +19,7 @@ discard block |
||
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 |