Passed
Push — master ( f90200...dd7f41 )
by Mujeeb
03:38
created
src/NavToastr.php 2 patches
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -205,16 +205,16 @@
 block discarded – undo
205 205
     }
206 206
 
207 207
 
208
-     /**
209
-     * Add a notification.
210
-     *
211
-     * @param string $type    Could be error, info, success, or warning.
212
-     * @param string $message The notification's message
213
-     * @param string $title   The notification's title
214
-     * @param bool  $enableCustomButton
215
-     *
216
-     * @return NavToastr
217
-     */
208
+        /**
209
+         * Add a notification.
210
+         *
211
+         * @param string $type    Could be error, info, success, or warning.
212
+         * @param string $message The notification's message
213
+         * @param string $title   The notification's title
214
+         * @param bool  $enableCustomButton
215
+         *
216
+         * @return NavToastr
217
+         */
218 218
 
219 219
 
220 220
     public function addNotification(string $type, string $message, bool $enableCustomButton = false): self
Please login to merge, or discard this patch.
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -244,11 +244,12 @@
 block discarded – undo
244 244
 
245 245
         $option = array_map(
246 246
             function ($n) {
247
-                if(array_key_exists('reload', $n) && $n['reload'] == true)
248
-                    return array(
247
+                if(array_key_exists('reload', $n) && $n['reload'] == true) {
248
+                                    return array(
249 249
                         'text' => $n['text'],
250 250
                         'onClick' => 'function(){window.location.reload();}'
251 251
                     );
252
+                }
252 253
                 return array(
253 254
                     'text' => $n['text'], 
254 255
                     'onClick' => 'function(){window.open("'.$n['url'].'");}'
Please login to merge, or discard this patch.
src/NavToastrServiceProvider.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -58,9 +58,9 @@
 block discarded – undo
58 58
 
59 59
 
60 60
     /**
61
-    * Get the services provided by the provider
62
-    * @return array
63
-    */
61
+     * Get the services provided by the provider
62
+     * @return array
63
+     */
64 64
 
65 65
     public function provides()
66 66
     {
Please login to merge, or discard this patch.