Test Failed
Push — master ( 458817...774831 )
by Marcel
07:18 queued 03:37
created
app/Helpers/MiscHelper.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -9,15 +9,15 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
app/Http/Controllers/FineUploaderController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
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');
Please login to merge, or discard this patch.
app/Http/Controllers/BoardController.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
             ]);
Please login to merge, or discard this patch.