Completed
Push — master ( 9a0337...eaa97d )
by Sergi Tur
54:41 queued 24:43
created
src/Console/AdminLTEAdmin.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -32,8 +32,8 @@
 block discarded – undo
32 32
         $this->call('db:seed', [
33 33
             '--class' => basename(config('AdminUserSeeder', 'AdminUserSeeder.php'), ".php")
34 34
         ]);
35
-        $this->info('User ' . $this->username() . '(' . $this->email() . ') ' .
36
-            $this->passwordInfo() . ' created succesfully!');
35
+        $this->info('User '.$this->username().'('.$this->email().') '.
36
+            $this->passwordInfo().' created succesfully!');
37 37
     }
38 38
 
39 39
     /**
Please login to merge, or discard this patch.
src/Console/Installable.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -91,8 +91,8 @@  discard block
 block discarded – undo
91 91
             'to'   => new Flysystem(new LocalAdapter($to)),
92 92
         ]);
93 93
         foreach ($manager->listContents('from://', true) as $file) {
94
-            if ($file['type'] === 'file' && (!$manager->has('to://'.$file['path']) || $this->force)) {
95
-                $manager->put('to://'.$file['path'], $manager->read('from://'.$file['path']));
94
+            if ($file[ 'type' ] === 'file' && (!$manager->has('to://'.$file[ 'path' ]) || $this->force)) {
95
+                $manager->put('to://'.$file[ 'path' ], $manager->read('from://'.$file[ 'path' ]));
96 96
             }
97 97
         }
98 98
         $this->status($from, $to, 'Directory');
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
     {
112 112
         $from = str_replace(base_path(), '', realpath($from));
113 113
         $to = str_replace(base_path(), '', realpath($to));
114
-        $this->line('<info>Copied '. $type. '</info> <comment>['. $from.
114
+        $this->line('<info>Copied '.$type.'</info> <comment>['.$from.
115 115
             ']</comment> <info>To</info> <comment>['.$to.']</comment>');
116 116
     }
117 117
 }
Please login to merge, or discard this patch.
src/Console/MakeAdminUserSeeder.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
     {
65 65
         try {
66 66
             $this->filesystem->overwrite(
67
-                $path = database_path('seeds/' . config('AdminUserSeeder', 'AdminUserSeeder.php')),
67
+                $path = database_path('seeds/'.config('AdminUserSeeder', 'AdminUserSeeder.php')),
68 68
                 $this->compiler->compile(
69 69
                     $this->filesystem->get($this->getStubPath()),
70 70
                     [
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
                     ]
74 74
                 )
75 75
             );
76
-            $this->info('File ' . $path . ' created');
76
+            $this->info('File '.$path.' created');
77 77
         } catch (\Exception $e) {
78 78
             print_r($e->getMessage());
79 79
         }
@@ -86,6 +86,6 @@  discard block
 block discarded – undo
86 86
      */
87 87
     protected function getStubPath()
88 88
     {
89
-        return __DIR__ . '/stubs/AdminUserSeeder.php.stub';
89
+        return __DIR__.'/stubs/AdminUserSeeder.php.stub';
90 90
     }
91 91
 }
Please login to merge, or discard this patch.
resources/lang/ru/message.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -90,15 +90,15 @@
 block discarded – undo
90 90
     'showcase'                => 'Витрина',
91 91
     'contact'                 => 'Контакт',
92 92
     'laravelpackage'          => '5 package that switchs default Laravel',
93
-    'to'                      => 'to',                                  // never ever again
93
+    'to'                      => 'to', // never ever again
94 94
     'templatewith'            => 'template with',
95
-    'and'                     => 'and',                                 // put in a i18n files separate
95
+    'and'                     => 'and', // put in a i18n files separate
96 96
     'gedstarted'              => 'Get Started!',
97 97
     'amazing'                 => 'Amazing admin template',
98 98
     'basedadminlte'           => 'Based on adminlte bootstrap theme',
99 99
     'awesomepackaged'         => 'Awesome packaged...',
100
-    'by'                      => 'by',                                  // auxiliary/functional/syntactic words
101
-    'at'                      => 'at',                                  // or translator-nazi will find you by IP
100
+    'by'                      => 'by', // auxiliary/functional/syntactic words
101
+    'at'                      => 'at', // or translator-nazi will find you by IP
102 102
     'readytouse'              => 'ready to use with Laravel!',
103 103
     'designed'                => 'Designed To Excel',
104 104
     'community'               => 'Community',
Please login to merge, or discard this patch.
src/Console/AdminLTEMenu.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@
 block discarded – undo
71 71
      */
72 72
     protected function checkIfSpatieMenuAlreadyInstalled()
73 73
     {
74
-        if ((app()->getProvider('Spatie\Menu\Laravel\MenuServiceProvider')) && ! $this->force) {
74
+        if ((app()->getProvider('Spatie\Menu\Laravel\MenuServiceProvider')) && !$this->force) {
75 75
             throw new SpatieMenuAlreadyExists();
76 76
         }
77 77
         return;
Please login to merge, or discard this patch.
src/Console/Routes/ControllerResourceRoute.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
      */
33 33
     protected function getStubPath()
34 34
     {
35
-        return __DIR__ . '/../stubs/route_with_resource_controller.stub';
35
+        return __DIR__.'/../stubs/route_with_resource_controller.stub';
36 36
     }
37 37
 
38 38
     /**
@@ -43,8 +43,8 @@  discard block
 block discarded – undo
43 43
     protected function obtainReplacements()
44 44
     {
45 45
         return [
46
-            'ROUTE_LINK' => $this->getReplacements()[0],
47
-            'ROUTE_CONTROLLER' => $this->controller($this->getReplacements()[1]),
46
+            'ROUTE_LINK' => $this->getReplacements()[ 0 ],
47
+            'ROUTE_CONTROLLER' => $this->controller($this->getReplacements()[ 1 ]),
48 48
         ];
49 49
     }
50 50
 }
Please login to merge, or discard this patch.
src/Console/Routes/Controller.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
         if (str_contains($controllername, '@')) {
25 25
             return ucfirst($controllername);
26 26
         }
27
-        return ucfirst($controllername . '@index');
27
+        return ucfirst($controllername.'@index');
28 28
     }
29 29
 
30 30
     /**
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
     protected function controllerMethod($controllername)
51 51
     {
52 52
         if (str_contains($controller = $controllername, '@')) {
53
-            return substr($controllername, strpos($controllername, '@')+1, strlen($controllername));
53
+            return substr($controllername, strpos($controllername, '@') + 1, strlen($controllername));
54 54
         }
55 55
         return 'index';
56 56
     }
Please login to merge, or discard this patch.
src/Console/MakeMenu.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
         $tmpfile = $this->createTmpFileWithMenu();
79 79
         $path = $this->getPath($tmpfile);
80 80
         add_file_into_file($this->mountpoint(), $path, $dstFile = $this->destinationFile());
81
-        $this->info('Menu ' . $this->name() . ' added to ' .  $dstFile . '.');
81
+        $this->info('Menu '.$this->name().' added to '.$dstFile.'.');
82 82
         $this->postActions();
83 83
     }
84 84
 
@@ -122,8 +122,8 @@  discard block
 block discarded – undo
122 122
     protected function getMenuCode()
123 123
     {
124 124
         $type = $this->option('type');
125
-        $class = isset(static::$lookup[$type])
126
-            ? static::$lookup[$type]
125
+        $class = isset(static::$lookup[ $type ])
126
+            ? static::$lookup[ $type ]
127 127
             : RegularMenu::class;
128 128
         /** @var GeneratesCode $route */
129 129
         $route = new $class($this->compiler, $this->filesystem);
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
142 142
      */
143 143
     protected function getPath($tmpfile)
144 144
     {
145
-        return stream_get_meta_data($tmpfile)['uri'];
145
+        return stream_get_meta_data($tmpfile)[ 'uri' ];
146 146
     }
147 147
 
148 148
     /**
Please login to merge, or discard this patch.
src/Console/Menus/RegularMenu.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
      */
32 32
     protected function getStubPath()
33 33
     {
34
-        return __DIR__ . '/../stubs/menu.stub';
34
+        return __DIR__.'/../stubs/menu.stub';
35 35
     }
36 36
 
37 37
     /**
@@ -40,8 +40,8 @@  discard block
 block discarded – undo
40 40
     protected function obtainReplacements()
41 41
     {
42 42
         return [
43
-            'MENU_LINK' => $this->getReplacements()[0],
44
-            'MENU_NAME' => $this->getReplacements()[1]
43
+            'MENU_LINK' => $this->getReplacements()[ 0 ],
44
+            'MENU_NAME' => $this->getReplacements()[ 1 ]
45 45
         ];
46 46
     }
47 47
 }
Please login to merge, or discard this patch.