Passed
Pull Request — master (#104)
by Korotkov
02:00
created
app/Ship/Command/BcryptCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,6 +18,6 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
app/Ship/Command/ArrayToYml.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -19,9 +19,9 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
app/Ship/Utils/Database/Driver/PgSQL.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
app/Ship/Utils/Database/Driver/SQLite.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
app/Ship/Utils/Database/Driver/MySQL.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
app/Containers/Demo/routes.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@
 block discarded – undo
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
     ]);
Please login to merge, or discard this patch.
app/Containers/Demo/config.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
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
     
Please login to merge, or discard this patch.
app/Ship/Errors/ErrorsController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@
 block discarded – undo
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");
Please login to merge, or discard this patch.
app/Containers/Demo/Controller/IndexController.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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());
Please login to merge, or discard this patch.