@@ -9,15 +9,15 @@ discard block |
||
| 9 | 9 | $difference = []; |
| 10 | 10 | foreach ($array1 as $key => $value) { |
| 11 | 11 | if (is_array($value)) { |
| 12 | - if (! isset($array2[$key]) || ! is_array($array2[$key])) { |
|
| 12 | + if (!isset($array2[$key]) || !is_array($array2[$key])) { |
|
| 13 | 13 | $difference[$key] = $value; |
| 14 | - } else { |
|
| 14 | + }else { |
|
| 15 | 15 | $new_diff = self::array_diff_assoc_recursive($value, $array2[$key]); |
| 16 | - if (! empty($new_diff)) { |
|
| 16 | + if (!empty($new_diff)) { |
|
| 17 | 17 | $difference[$key] = $new_diff; |
| 18 | 18 | } |
| 19 | 19 | } |
| 20 | - } elseif (! array_key_exists($key, $array2) || $array2[$key] !== $value) { |
|
| 20 | + } elseif (!array_key_exists($key, $array2) || $array2[$key] !== $value) { |
|
| 21 | 21 | $difference[$key] = $value; |
| 22 | 22 | } |
| 23 | 23 | } |
@@ -29,7 +29,7 @@ discard block |
||
| 29 | 29 | { |
| 30 | 30 | if ($max == 0 || $views == 0) { |
| 31 | 31 | $ret = 0; |
| 32 | - } else { |
|
| 32 | + }else { |
|
| 33 | 33 | $ret = ($views / $max) * 100; |
| 34 | 34 | } |
| 35 | 35 | |
@@ -18,7 +18,7 @@ |
||
| 18 | 18 | { |
| 19 | 19 | $fu = new FineUploader(); |
| 20 | 20 | $destpath = storage_path('app/public/temp'); |
| 21 | - if (! file_exists($destpath)) { |
|
| 21 | + if (!file_exists($destpath)) { |
|
| 22 | 22 | mkdir($destpath); |
| 23 | 23 | } |
| 24 | 24 | $res = $fu->handleUpload(storage_path('app/public/temp'), 'file'); |
@@ -60,7 +60,7 @@ discard block |
||
| 60 | 60 | \DB::table('board_cats') |
| 61 | 61 | ->where('id', '=', $catid) |
| 62 | 62 | ->increment('order'); |
| 63 | - } else { |
|
| 63 | + }else { |
|
| 64 | 64 | \DB::table('board_cats') |
| 65 | 65 | ->where('id', '=', $catid) |
| 66 | 66 | ->decrement('order'); |
@@ -89,9 +89,9 @@ discard block |
||
| 89 | 89 | public function show_thread($threadid) |
| 90 | 90 | { |
| 91 | 91 | $posts = BoardPost::with('user', 'thread', 'cat')->whereThreadId($threadid)->orderBy('id')->paginate(25); |
| 92 | - if (! Input::get('page')) { |
|
| 92 | + if (!Input::get('page')) { |
|
| 93 | 93 | return redirect('board/thread/'.$threadid.'?page='.$posts->lastPage()); |
| 94 | - } else { |
|
| 94 | + }else { |
|
| 95 | 95 | return view('board.threads.show', [ |
| 96 | 96 | 'posts' => $posts, |
| 97 | 97 | ]); |