Completed
Push — develop ( 9c74c1...033e04 )
by Greg
01:53
created
app/Providers/RouteServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
54 54
     {
55 55
         $router->group([
56 56
             'namespace' => $this->namespace, 'middleware' => 'web',
57
-        ], function ($router) {
57
+        ], function($router) {
58 58
             require app_path('Http/routes.php');
59 59
         });
60 60
     }
Please login to merge, or discard this patch.
app/Http/routes.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
 |
12 12
 */
13 13
 
14
-Route::group(['middleware' => 'installed'], function () {
14
+Route::group(['middleware' => 'installed'], function() {
15 15
 
16 16
     Route::auth();
17 17
 
Please login to merge, or discard this patch.
app/Http/ViewComposers/LegalNoticeComposer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
         $contents = '';
21 21
         if (config('kleis.legal_notice')) {
22 22
             $mdfile = public_path('markdown/legal/'.config('kleis.legal_notice').'-'.config('app.locale').'.md');
23
-            if (file_exists($mdfile)){
23
+            if (file_exists($mdfile)) {
24 24
                 list($title, $text) = explode(PHP_EOL, file_get_contents($mdfile), 2);
25 25
                 $enable = true;
26 26
                 $contents = Markdown::parse($text)->toHtml();
Please login to merge, or discard this patch.
app/Account.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -13,12 +13,12 @@
 block discarded – undo
13 13
     const ACCOUNT_ENABLE = 1;
14 14
 
15 15
     const ACCOUNT_STATUS = [
16
-        0 => [  'text' => 'accounts.disabled',
16
+        0 => ['text' => 'accounts.disabled',
17 17
                 'icon' => 'fa-ban',
18
-                'unicon' => '' ],
19
-        1 => [  'text' => 'accounts.enabled',
18
+                'unicon' => ''],
19
+        1 => ['text' => 'accounts.enabled',
20 20
                 'icon' => 'fa-globe',
21
-                'unicon' => '' ]
21
+                'unicon' => '']
22 22
     ];
23 23
 
24 24
     const SEARCH_CRITERIA = [
Please login to merge, or discard this patch.
app/Console/Commands/ExportCategories.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@
 block discarded – undo
64 64
              return;
65 65
          }
66 66
 
67
-         foreach ($categories as $category){
67
+         foreach ($categories as $category) {
68 68
              $name = static::stringNormalise($category->name);
69 69
              $filename = "{$this->exportFolder}/{$name}{$this->exportFileExt}";
70 70
              $accounts = Account::where('status', Account::ACCOUNT_ENABLE)
Please login to merge, or discard this patch.
app/Console/Commands/ExportGroups.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@
 block discarded – undo
64 64
              return;
65 65
          }
66 66
 
67
-         foreach ($groups as $group){
67
+         foreach ($groups as $group) {
68 68
              $name = static::stringNormalise($group->name);
69 69
              $filename = "{$this->exportFolder}/{$name}{$this->exportFileExt}";
70 70
              $accounts = Account::where('status', Account::ACCOUNT_ENABLE)
Please login to merge, or discard this patch.
app/User.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -15,27 +15,27 @@
 block discarded – undo
15 15
     const USER_ENABLED = 1;
16 16
 
17 17
     const USER_STATUS = [
18
-        0 => [  'text' => 'users.disabled',
18
+        0 => ['text' => 'users.disabled',
19 19
                 'icon' => '',
20
-                'unicon' => '' ],
21
-        1 => [  'text' => 'users.enabled',
20
+                'unicon' => ''],
21
+        1 => ['text' => 'users.enabled',
22 22
                 'icon' => 'fa-check',
23
-                'unicon' => '' ]
23
+                'unicon' => '']
24 24
     ];
25 25
 
26 26
     const USER_LEVEL = [
27
-        1 => [  'text' => 'users.access.local',
27
+        1 => ['text' => 'users.access.local',
28 28
                 'icon' => 'fa-support',
29
-                'unicon' => '' ],
30
-        3 => [  'text' => 'users.access.global',
29
+                'unicon' => ''],
30
+        3 => ['text' => 'users.access.global',
31 31
                 'icon' => 'fa-globe',
32
-                'unicon' => '' ],
33
-        5 => [  'text' => 'users.access.admin',
32
+                'unicon' => ''],
33
+        5 => ['text' => 'users.access.admin',
34 34
                 'icon' => 'fa-shield',
35
-                'unicon' => '' ],
36
-        9 => [  'text' => 'users.access.super',
35
+                'unicon' => ''],
36
+        9 => ['text' => 'users.access.super',
37 37
                 'icon' => 'fa-rocket',
38
-                'unicon' => '' ],
38
+                'unicon' => ''],
39 39
     ];
40 40
 
41 41
     const SEARCH_CRITERIA = [
Please login to merge, or discard this patch.
app/Http/Controllers/GroupController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -101,7 +101,7 @@
 block discarded – undo
101 101
     {
102 102
         $group = Group::findOrFail($id);
103 103
         $accounts = Group::Find($id)->accounts()->where('status', Account::ACCOUNT_DISABLE);
104
-        if (count($accounts) > 0 ) {
104
+        if (count($accounts) > 0) {
105 105
             $accounts->delete();
106 106
         }
107 107
         return redirect()->back()->with(
Please login to merge, or discard this patch.