Completed
Push — develop ( da2d79...3a854e )
by Greg
07:32
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/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/Controllers/Auth/LoginController.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@
 block discarded – undo
73 73
     /**
74 74
      * Handle an authentication attempt.
75 75
      *
76
-     * @return Response
76
+     * @return \Illuminate\Http\RedirectResponse|null
77 77
      */
78 78
     public function authenticate()
79 79
     {
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,6 @@
 block discarded – undo
2 2
 
3 3
 namespace App\Http\Controllers\Auth;
4 4
 
5
-use App\User;
6 5
 use Validator;
7 6
 use App\Http\Controllers\Controller;
8 7
 use Illuminate\Foundation\Auth\ThrottlesLogins;
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 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
             }
28 28
         }
29 29
         $view->with('enable', $enable)
30
-             ->with('title', $title)
31
-             ->with('contents', $contents);
30
+                ->with('title', $title)
31
+                ->with('contents', $contents);
32 32
     }
33 33
 }
Please login to merge, or discard this 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.