Completed
Push — master ( 76cc03...7ee247 )
by Zura
08:07
created
src/Promocodes.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -93,7 +93,7 @@
 block discarded – undo
93 93
      * Your code will be validated to be unique for one request.
94 94
      *
95 95
      * @param $collection
96
-     * @param $new
96
+     * @param string $new
97 97
      *
98 98
      * @return bool
99 99
      */
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -172,7 +172,7 @@  discard block
 block discarded – undo
172 172
      */
173 173
     public function clearRedundant()
174 174
     {
175
-        Promocode::all()->each(function ($promocode) {
175
+        Promocode::all()->each(function($promocode) {
176 176
             if ($promocode->isExpired() || ($promocode->isDisposable() && $promocode->users()->exists())) {
177 177
                 $promocode->users()->detach();
178 178
                 $promocode->delete();
@@ -225,8 +225,8 @@  discard block
 block discarded – undo
225 225
      */
226 226
     private function getPrefix()
227 227
     {
228
-        return (bool)config('promocodes.prefix')
229
-            ? config('promocodes.prefix') . config('promocodes.separator')
228
+        return (bool) config('promocodes.prefix')
229
+            ? config('promocodes.prefix').config('promocodes.separator')
230 230
             : '';
231 231
     }
232 232
 
@@ -237,8 +237,8 @@  discard block
 block discarded – undo
237 237
      */
238 238
     private function getSuffix()
239 239
     {
240
-        return (bool)config('promocodes.suffix')
241
-            ? config('promocodes.separator') . config('promocodes.suffix')
240
+        return (bool) config('promocodes.suffix')
241
+            ? config('promocodes.separator').config('promocodes.suffix')
242 242
             : '';
243 243
     }
244 244
 
Please login to merge, or discard this patch.