Passed
Push — master ( b724fa...c4411f )
by Darko
07:46
created
app/Http/Controllers/AdultController.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -57,13 +57,13 @@
 block discarded – undo
57 57
             $movies[] = $result;
58 58
         }
59 59
 
60
-        $title = ($request->has('title') && ! empty($request->input('title'))) ? stripslashes($request->input('title')) : '';
60
+        $title = ($request->has('title') && !empty($request->input('title'))) ? stripslashes($request->input('title')) : '';
61 61
         $this->smarty->assign('title', stripslashes($title));
62 62
 
63
-        $actors = ($request->has('actors') && ! empty($request->input('actors'))) ? stripslashes($request->input('actors')) : '';
63
+        $actors = ($request->has('actors') && !empty($request->input('actors'))) ? stripslashes($request->input('actors')) : '';
64 64
         $this->smarty->assign('actors', $actors);
65 65
 
66
-        $director = ($request->has('director') && ! empty($request->input('director'))) ? stripslashes($request->input('director')) : '';
66
+        $director = ($request->has('director') && !empty($request->input('director'))) ? stripslashes($request->input('director')) : '';
67 67
         $this->smarty->assign('director', $director);
68 68
 
69 69
         $genres = $adult->getAllGenres(true);
Please login to merge, or discard this patch.
app/Http/Controllers/AjaxController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
         if ($request->has('action') && (int) $request->input('action') === 1 && $request->has('emailto')) {
17 17
             $emailTo = $request->input('emailto');
18 18
             $ret = User::sendInvite(url('/'), $this->userdata->id, $emailTo);
19
-            if (! $ret) {
19
+            if (!$ret) {
20 20
                 echo 'Invite not sent.';
21 21
             } else {
22 22
                 echo 'Invite sent. Alternatively paste them following link to register - '.$ret;
Please login to merge, or discard this patch.
app/Http/Controllers/SeriesController.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -38,9 +38,9 @@  discard block
 block discarded – undo
38 38
 
39 39
             $show = Video::getByVideoID($id);
40 40
 
41
-            if (! $show) {
41
+            if (!$show) {
42 42
                 $this->smarty->assign('nodata', 'No video information for this series.');
43
-            } elseif (! $rel) {
43
+            } elseif (!$rel) {
44 44
                 $this->smarty->assign('nodata', 'No releases for this series.');
45 45
             } else {
46 46
                 $myshows = UserSerie::getShow($this->userdata->id, $show['id']);
@@ -67,11 +67,11 @@  discard block
 block discarded – undo
67 67
                 $seriestitles = $seriessummary = $seriescountry = [];
68 68
                 $seriestitles[] = $show['title'];
69 69
 
70
-                if (! empty($show['summary'])) {
70
+                if (!empty($show['summary'])) {
71 71
                     $seriessummary[] = $show['summary'];
72 72
                 }
73 73
 
74
-                if (! empty($show['countries_id'])) {
74
+                if (!empty($show['countries_id'])) {
75 75
                     $seriescountry[] = $show['countries_id'];
76 76
                 }
77 77
 
@@ -105,9 +105,9 @@  discard block
 block discarded – undo
105 105
         } else {
106 106
             $letter = ($id && preg_match('/^(0\-9|[A-Z])$/i', $id)) ? $id : '0-9';
107 107
 
108
-            $showname = ($request->has('title') && ! empty($request->input('title'))) ? $request->input('title') : '';
108
+            $showname = ($request->has('title') && !empty($request->input('title'))) ? $request->input('title') : '';
109 109
 
110
-            if ($showname !== '' && ! $id) {
110
+            if ($showname !== '' && !$id) {
111 111
                 $letter = '';
112 112
             }
113 113
 
Please login to merge, or discard this patch.
app/Http/Requests/Auth/RegisterRegisterRequest.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
     public function rules(): array
13 13
     {
14
-        if (config('captcha.enabled') === true && (! empty(config('captcha.secret')) && ! empty(config('captcha.sitekey')))) {
14
+        if (config('captcha.enabled') === true && (!empty(config('captcha.secret')) && !empty(config('captcha.sitekey')))) {
15 15
             return [
16 16
                 'g-recaptcha-response' => [
17 17
                     'required',
Please login to merge, or discard this patch.
app/Http/Middleware/ForceJsonOnAPI.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
     public function handle(Request $request, Closure $next): Response
18 18
     {
19 19
         // Force Json accept type on api routes
20
-        if ($request->is('api/*') && ! Str::contains($request->header('accept'), ['/json', '+json'])) {
20
+        if ($request->is('api/*') && !Str::contains($request->header('accept'), ['/json', '+json'])) {
21 21
             $request->headers->set('accept', 'application/json,'.$request->header('accept'));
22 22
         }
23 23
 
Please login to merge, or discard this patch.
app/Models/MediaInfo.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
     public static function addData($id, MediaInfoContainer $xmlArray): void
16 16
     {
17 17
         $mediainfoArray = $xmlArray->getGeneral();
18
-        if (! $mediainfoArray) {
18
+        if (!$mediainfoArray) {
19 19
             return;
20 20
         }
21 21
 
Please login to merge, or discard this patch.
app/Livewire/Forms/LoginForm.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
     {
31 31
         $this->ensureIsNotRateLimited();
32 32
 
33
-        if (! Auth::attempt($this->only(['email', 'password']), $this->remember)) {
33
+        if (!Auth::attempt($this->only(['email', 'password']), $this->remember)) {
34 34
             RateLimiter::hit($this->throttleKey());
35 35
 
36 36
             throw ValidationException::withMessages([
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
      */
47 47
     protected function ensureIsNotRateLimited(): void
48 48
     {
49
-        if (! RateLimiter::tooManyAttempts($this->throttleKey(), 5)) {
49
+        if (!RateLimiter::tooManyAttempts($this->throttleKey(), 5)) {
50 50
             return;
51 51
         }
52 52
 
Please login to merge, or discard this patch.
app/Http/Controllers/SearchController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
             foreach ($releases->getBrowseOrdering() as $orderType) {
66 66
                 $this->smarty->assign(
67 67
                     'orderby'.$orderType,
68
-                    url('/search?search='.htmlentities($searchString['searchname'], ENT_QUOTES | ENT_HTML5).'&t='.implode(',', $categoryID).'&ob='.$orderType));
68
+                    url('/search?search='.htmlentities($searchString['searchname'], ENT_QUOTES|ENT_HTML5).'&t='.implode(',', $categoryID).'&ob='.$orderType));
69 69
             }
70 70
 
71 71
             $rslt = $releases->search(
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
         if ($searchType !== 'basic' && $request->missing('id') && $request->missing('subject') && $request->anyFilled(['searchadvr', 'searchadvsubject', 'searchadvfilename', 'searchadvposter'])) {
124 124
             $orderByString = '';
125 125
             foreach ($searchVars as $searchVarKey => $searchVar) {
126
-                $orderByString .= "&$searchVarKey=".htmlentities($searchVar, ENT_QUOTES | ENT_HTML5);
126
+                $orderByString .= "&$searchVarKey=".htmlentities($searchVar, ENT_QUOTES|ENT_HTML5);
127 127
             }
128 128
             $orderByString = ltrim($orderByString, '&');
129 129
 
Please login to merge, or discard this patch.
app/Models/Settings.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
 
121 121
         // If there's an override and no mutator has been explicitly defined on
122 122
         // the model then use the override value
123
-        if ($override && ! $this->hasGetMutator($key)) {
123
+        if ($override && !$this->hasGetMutator($key)) {
124 124
             return $override->value;
125 125
         }
126 126
 
@@ -141,9 +141,9 @@  discard block
 block discarded – undo
141 141
         $results = self::cursor()->remember();
142 142
 
143 143
         $tree = [];
144
-        if (! empty($results)) {
144
+        if (!empty($results)) {
145 145
             foreach ($results as $result) {
146
-                if (! $excludeUnsectioned || ! empty($result->section)) {
146
+                if (!$excludeUnsectioned || !empty($result->section)) {
147 147
                     $tree[$result->section][$result->subsection][$result->name] =
148 148
                         ['value' => $result->value, 'hint' => $result->hint];
149 149
                 }
Please login to merge, or discard this patch.