Test Setup Failed
Push — master ( 18aad0...79eeb7 )
by Marcel
05:40
created
app/Models/News.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -48,11 +48,11 @@
 block discarded – undo
48 48
 
49 49
     protected $guarded = [];
50 50
 
51
-    public function user(){
51
+    public function user() {
52 52
         return $this->hasOne('App\Models\User', 'id', 'user_id');
53 53
     }
54 54
 
55
-    public function comments(){
55
+    public function comments() {
56 56
         return $this->hasMany('App\Models\Comment', 'content_id', 'id')->Where('content_type', '=', \DB::raw("'news'"))->with('user');
57 57
     }
58 58
 }
59 59
\ No newline at end of file
Please login to merge, or discard this patch.
app/Models/EventSetting.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
45 45
 
46 46
     protected $guarded = [];
47 47
 
48
-    public function event(){
48
+    public function event() {
49 49
         return $this->hasOne('App\Models\Event', 'id', 'event_id');
50 50
     }
51 51
 }
52 52
\ No newline at end of file
Please login to merge, or discard this patch.
app/Models/Logo.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -43,15 +43,15 @@
 block discarded – undo
43 43
 
44 44
     protected $guarded = [];
45 45
 
46
-    public function user(){
46
+    public function user() {
47 47
         return $this->belongsTo('App\Models\User');
48 48
     }
49 49
 
50
-    public function logovote(){
50
+    public function logovote() {
51 51
         return $this->belongsToMany('App\Models\LogoVote');
52 52
     }
53 53
 
54
-    public function voteresult(){
54
+    public function voteresult() {
55 55
         $up = LogoVote::whereLogoId($this->id)->selectRaw('SUM(up) as sumup, SUM(down) as sumdown');
56 56
 
57 57
         $res = $up->get(array('sumup', 'sumdown'));
Please login to merge, or discard this patch.
app/Models/Maker.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
 
42 42
     protected $guarded = [];
43 43
 
44
-    public function game(){
44
+    public function game() {
45 45
         return $this->belongsTo('App\Models\Game');
46 46
     }
47 47
 }
48 48
\ No newline at end of file
Please login to merge, or discard this patch.
app/Models/BoardPost.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -44,15 +44,15 @@
 block discarded – undo
44 44
 
45 45
     protected $guarded = [];
46 46
 
47
-    public function cat(){
47
+    public function cat() {
48 48
         return $this->belongsTo('App\Models\BoardCat', 'cat_id', 'id');
49 49
     }
50 50
 
51
-    public function thread(){
51
+    public function thread() {
52 52
         return $this->belongsTo('App\Models\BoardThread', 'thread_id', 'id');
53 53
     }
54 54
 
55
-    public function user(){
55
+    public function user() {
56 56
         return $this->hasOne('App\Models\User', 'id', 'user_id');
57 57
     }
58 58
 }
59 59
\ No newline at end of file
Please login to merge, or discard this patch.
app/Helpers/CheckRateableHelper.php 2 patches
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -2,8 +2,8 @@  discard block
 block discarded – undo
2 2
 
3 3
 namespace App\Helpers;
4 4
 
5
-class CheckRateable{
6
-    public static function checkRateable($content_type, $content_id, $user_id){
5
+class CheckRateable {
6
+    public static function checkRateable($content_type, $content_id, $user_id) {
7 7
         $up = 0;
8 8
         $down = 0;
9 9
 
@@ -14,9 +14,9 @@  discard block
 block discarded – undo
14 14
             ->where('comments.user_id', '=', $user_id)
15 15
             ->first();
16 16
 
17
-        if($comments->up > 0 || $comments->down > 0){
17
+        if ($comments->up > 0 || $comments->down > 0) {
18 18
             return false;
19
-        }else{
19
+        }else {
20 20
             return true;
21 21
         }
22 22
     }
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
 
17 17
         if($comments->up > 0 || $comments->down > 0){
18 18
             return false;
19
-        }else{
19
+        } else{
20 20
             return true;
21 21
         }
22 22
     }
Please login to merge, or discard this patch.
app/Providers/RouteServiceProvider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
         Route::group([
55 55
             'middleware' => 'web',
56 56
             'namespace' => $this->namespace,
57
-        ], function ($router) {
57
+        ], function($router) {
58 58
             require base_path('routes/web.php');
59 59
         });
60 60
     }
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
             'middleware' => 'api',
73 73
             'namespace' => $this->namespace,
74 74
             'prefix' => 'api',
75
-        ], function ($router) {
75
+        ], function($router) {
76 76
             require base_path('routes/api.php');
77 77
         });
78 78
     }
Please login to merge, or discard this patch.
app/Providers/BroadcastServiceProvider.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
          * Authenticate the user's personal channel...
21 21
          */
22
-        Broadcast::channel('App.User.*', function ($user, $userId) {
22
+        Broadcast::channel('App.User.*', function($user, $userId) {
23 23
             return (int) $user->id === (int) $userId;
24 24
         });
25 25
     }
Please login to merge, or discard this patch.
app/Http/Controllers/StatsticController.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@  discard block
 block discarded – undo
7 7
 
8 8
 class StatsticController extends Controller
9 9
 {
10
-    public function show(){
10
+    public function show() {
11 11
         $lava_config = [
12 12
             'legend' => [
13 13
                 'position' => 'in',
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
         $com = $lava->DataTable();
75 75
         $com->addStringColumn('Datum')
76 76
             ->addNumberColumn('Kommentare pro Monat');
77
-        foreach ($comments as $comment){
77
+        foreach ($comments as $comment) {
78 78
             $com->addRow([$comment->year.'-'.$comment->month, $comment->count]);
79 79
         }
80 80
         $lava->AreaChart('Kommentare', $com, $lava_config);
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
         $com = $lava->DataTable();
90 90
         $com->addStringColumn('Datum')
91 91
             ->addNumberColumn('Releases pro Jahr');
92
-        foreach ($gamesperyear as $game){
92
+        foreach ($gamesperyear as $game) {
93 93
             $com->addRow([$game->year, $game->count]);
94 94
         }
95 95
         $lava->AreaChart('Releases', $com, $lava_config);
@@ -104,12 +104,12 @@  discard block
 block discarded – undo
104 104
         $com = $lava->DataTable();
105 105
         $com->addStringColumn('Datum')
106 106
             ->addNumberColumn('Releases pro Monat');
107
-        foreach ($gamespermonth as $game){
107
+        foreach ($gamespermonth as $game) {
108 108
             $com->addRow([$game->year, $game->count]);
109 109
         }
110 110
         $lava->AreaChart('ReleasesMon', $com, $lava_config);
111 111
 
112
-        return view('statistics.index',[
112
+        return view('statistics.index', [
113 113
             'lava' => $lava,
114 114
         ]);
115 115
 
Please login to merge, or discard this patch.