@@ -25,11 +25,11 @@ discard block |
||
| 25 | 25 | |
| 26 | 26 | if ($releasedate) { |
| 27 | 27 | return Carbon::parse($releasedate->reldate)->toDateString(); |
| 28 | - } else { |
|
| 28 | + }else { |
|
| 29 | 29 | return ''; |
| 30 | 30 | } |
| 31 | 31 | |
| 32 | - } else { |
|
| 32 | + }else { |
|
| 33 | 33 | return Carbon::parse($game->release_date)->toDateString(); |
| 34 | 34 | } |
| 35 | 35 | } |
@@ -100,7 +100,7 @@ discard block |
||
| 100 | 100 | |
| 101 | 101 | if ($lang) { |
| 102 | 102 | return $lang->id; |
| 103 | - } else { |
|
| 103 | + }else { |
|
| 104 | 104 | return 0; |
| 105 | 105 | } |
| 106 | 106 | |
@@ -114,7 +114,7 @@ discard block |
||
| 114 | 114 | |
| 115 | 115 | if ($dev) { |
| 116 | 116 | return $dev->id; |
| 117 | - } else { |
|
| 117 | + }else { |
|
| 118 | 118 | return 0; |
| 119 | 119 | } |
| 120 | 120 | |
@@ -10,13 +10,13 @@ |
||
| 10 | 10 | if (is_array($value)) { |
| 11 | 11 | if (!isset($array2[$key]) || !is_array($array2[$key])) { |
| 12 | 12 | $difference[$key] = $value; |
| 13 | - } else { |
|
| 13 | + }else { |
|
| 14 | 14 | $new_diff = MiscHelper::array_diff_assoc_recursive($value, $array2[$key]); |
| 15 | 15 | if (!empty($new_diff)) { |
| 16 | 16 | $difference[$key] = $new_diff; |
| 17 | 17 | } |
| 18 | 18 | } |
| 19 | - } else if (!array_key_exists($key, $array2) || $array2[$key] !== $value) { |
|
| 19 | + }else if (!array_key_exists($key, $array2) || $array2[$key] !== $value) { |
|
| 20 | 20 | $difference[$key] = $value; |
| 21 | 21 | } |
| 22 | 22 | } |
@@ -30,7 +30,7 @@ |
||
| 30 | 30 | |
| 31 | 31 | if ($max == 0 || $views == 0) { |
| 32 | 32 | $ret = 0; |
| 33 | - }else { |
|
| 33 | + } else { |
|
| 34 | 34 | $ret = ($views / $max) * 100; |
| 35 | 35 | } |
| 36 | 36 | |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | |
| 14 | 14 | if ($comments->up > 0 || $comments->down > 0) { |
| 15 | 15 | return false; |
| 16 | - }else { |
|
| 16 | + } else { |
|
| 17 | 17 | return true; |
| 18 | 18 | } |
| 19 | 19 | } |
@@ -29,7 +29,7 @@ |
||
| 29 | 29 | $comment->vote_up = 0; |
| 30 | 30 | $comment->vote_down = 1; |
| 31 | 31 | event(new Obyx('rating', \Auth::id())); |
| 32 | - } else { |
|
| 32 | + }else { |
|
| 33 | 33 | $comment->vote_up = 0; |
| 34 | 34 | $comment->vote_down = 0; |
| 35 | 35 | } |
@@ -37,7 +37,7 @@ discard block |
||
| 37 | 37 | ->orderBy('games_files.release_day', $direction) |
| 38 | 38 | ->select('games.*') |
| 39 | 39 | ->paginate(20); |
| 40 | - } else { |
|
| 40 | + }else { |
|
| 41 | 41 | $games = Game::orderBy($orderby, $direction)->orderBy('title')->orderBy('subtitle')->paginate(20); |
| 42 | 42 | } |
| 43 | 43 | |
@@ -278,7 +278,7 @@ discard block |
||
| 278 | 278 | GamesDeveloper::whereGameId($id)->delete(); |
| 279 | 279 | Comment::whereContentId($id)->where('content_type', '=', 'game')->delete(); |
| 280 | 280 | TagRelation::whereContentId($id)->where('content_type', '=', 'game')->delete(); |
| 281 | - } else { |
|
| 281 | + }else { |
|
| 282 | 282 | return redirect()->action('GameController@edit', $id); |
| 283 | 283 | } |
| 284 | 284 | } |
@@ -95,7 +95,7 @@ |
||
| 95 | 95 | if (count($title) == 1) { |
| 96 | 96 | $game = Game::whereTitle($title[0]) |
| 97 | 97 | ->first(); |
| 98 | - } else { |
|
| 98 | + }else { |
|
| 99 | 99 | $game = Game::whereTitle($title[0]) |
| 100 | 100 | ->orWhere('subtitle', '=', $title[1]) |
| 101 | 101 | ->first(); |
@@ -39,7 +39,7 @@ |
||
| 39 | 39 | if ($request->get('value') == 0) { |
| 40 | 40 | $lv->down = 1; |
| 41 | 41 | $lv->up = 0; |
| 42 | - } else { |
|
| 42 | + }else { |
|
| 43 | 43 | $lv->down = 0; |
| 44 | 44 | $lv->up = 1; |
| 45 | 45 | } |
@@ -60,7 +60,7 @@ |
||
| 60 | 60 | $es->reg_end_date = $request->get('reg_end'); |
| 61 | 61 | if ($request->get('reg_allowed') == "on") { |
| 62 | 62 | $es->reg_allowed = 1; |
| 63 | - } else { |
|
| 63 | + }else { |
|
| 64 | 64 | $es->reg_allowed = 0; |
| 65 | 65 | } |
| 66 | 66 | $es->save(); |
@@ -21,7 +21,7 @@ |
||
| 21 | 21 | //Prüfen ob Screenshots vorhanden sind |
| 22 | 22 | if (is_null($s)) {//Es sind keine Screenshots vorhanden |
| 23 | 23 | $storagePath = public_path().'/assets/no_image.png'; |
| 24 | - } else {//Es sind Screenshots vorhanden |
|
| 24 | + }else {//Es sind Screenshots vorhanden |
|
| 25 | 25 | $storagePath = \Storage::get($s->filename); |
| 26 | 26 | } |
| 27 | 27 | |