Completed
Push — develop ( 273775...480429 )
by Greg
02:04
created
app/Http/Controllers/SearchTrait.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
 
10 10
     public function search(&$entities, $type = null, $search = null)
11 11
     {
12
-        $reflection  = new ReflectionProperty($entities, 'model');
12
+        $reflection = new ReflectionProperty($entities, 'model');
13 13
         $reflection->setAccessible(true);
14 14
         $classname = $reflection->getValue($entities);
15 15
 
@@ -20,14 +20,14 @@  discard block
 block discarded – undo
20 20
             $criteria = explode(' ', $search);
21 21
             $columns = $classname::SEARCH_CRITERIA[$type];
22 22
 
23
-            $entities = $entities->where( function($q) use ($columns, $criteria) {
23
+            $entities = $entities->where(function($q) use ($columns, $criteria) {
24 24
                 foreach ($columns as $column) {
25 25
                     if (is_array($column)) {
26 26
                         $relation = $column;
27
-                        foreach($relation as $table => $column) {
27
+                        foreach ($relation as $table => $column) {
28 28
                             $q->whereHas($table,
29 29
                                 function($query) use ($column, $criteria) {
30
-                                    foreach($criteria as $value) {
30
+                                    foreach ($criteria as $value) {
31 31
                                         $query->orWhere($column, 'LIKE', $value);
32 32
                                     }
33 33
                                 }
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
                     } else {
37 37
                         $q->orWhere(
38 38
                             function($query) use ($column, $criteria) {
39
-                                foreach($criteria as $value) {
39
+                                foreach ($criteria as $value) {
40 40
                                     $query->orWhere($column, 'LIKE', $value);
41 41
                                 }
42 42
                             }
Please login to merge, or discard this patch.
app/Http/Controllers/CategoryController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -96,7 +96,7 @@
 block discarded – undo
96 96
     {
97 97
         $category = Category::findOrFail($id);
98 98
         $accounts = $category->accounts()->where('status', 0);
99
-        if (count($accounts) > 0 ) {
99
+        if (count($accounts) > 0) {
100 100
             $accounts->delete();
101 101
         }
102 102
         return redirect()->back()->with(
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
@@ -100,7 +100,7 @@
 block discarded – undo
100 100
     {
101 101
         $group = Group::findOrFail($id);
102 102
         $accounts = Group::Find($id)->accounts()->where('status', 0);
103
-        if (count($accounts) > 0 ) {
103
+        if (count($accounts) > 0) {
104 104
             $accounts->delete();
105 105
         }
106 106
         return redirect()->back()->with(
Please login to merge, or discard this patch.
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/Account.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -10,12 +10,12 @@
 block discarded – undo
10 10
 class Account extends Model
11 11
 {
12 12
     const ACCOUNT_STATUS = [
13
-        0 => [  'text' => 'accounts.disabled',
13
+        0 => ['text' => 'accounts.disabled',
14 14
                 'icon' => 'fa-ban',
15
-                'unicon' => '' ],
16
-        1 => [  'text' => 'accounts.enabled',
15
+                'unicon' => ''],
16
+        1 => ['text' => 'accounts.enabled',
17 17
                 'icon' => 'fa-globe',
18
-                'unicon' => '' ]
18
+                'unicon' => '']
19 19
     ];
20 20
 
21 21
     const SEARCH_CRITERIA = [
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/User.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -12,27 +12,27 @@
 block discarded – undo
12 12
     const USER_LEVEL_SUPER  = 9;
13 13
 
14 14
     const USER_STATUS = [
15
-        0 => [  'text' => 'users.disabled',
15
+        0 => ['text' => 'users.disabled',
16 16
                 'icon' => '',
17
-                'unicon' => '' ],
18
-        1 => [  'text' => 'users.enabled',
17
+                'unicon' => ''],
18
+        1 => ['text' => 'users.enabled',
19 19
                 'icon' => 'fa-check',
20
-                'unicon' => '' ]
20
+                'unicon' => '']
21 21
     ];
22 22
 
23 23
     const USER_LEVEL = [
24
-        1 => [  'text' => 'users.access.local',
24
+        1 => ['text' => 'users.access.local',
25 25
                 'icon' => 'fa-support',
26
-                'unicon' => '' ],
27
-        3 => [  'text' => 'users.access.global',
26
+                'unicon' => ''],
27
+        3 => ['text' => 'users.access.global',
28 28
                 'icon' => 'fa-globe',
29
-                'unicon' => '' ],
30
-        5 => [  'text' => 'users.access.admin',
29
+                'unicon' => ''],
30
+        5 => ['text' => 'users.access.admin',
31 31
                 'icon' => 'fa-shield',
32
-                'unicon' => '' ],
33
-        9 => [  'text' => 'users.access.super',
32
+                'unicon' => ''],
33
+        9 => ['text' => 'users.access.super',
34 34
                 'icon' => 'fa-rocket',
35
-                'unicon' => '' ],
35
+                'unicon' => ''],
36 36
     ];
37 37
 
38 38
     const SEARCH_CRITERIA = [
Please login to merge, or discard this patch.