Completed
Push — master ( 35a6df...32735f )
by Brian
18s queued 13s
created
includes/wpinv-post-types.php 1 patch
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -205,8 +205,8 @@  discard block
 block discarded – undo
205 205
 
206 206
 function wpinv_get_default_labels() {
207 207
     $defaults = array(
208
-       'singular' => __( 'Invoice', 'invoicing' ),
209
-       'plural'   => __( 'Invoices', 'invoicing' )
208
+        'singular' => __( 'Invoice', 'invoicing' ),
209
+        'plural'   => __( 'Invoices', 'invoicing' )
210 210
     );
211 211
     
212 212
     return apply_filters( 'wpinv_default_invoices_name', $defaults );
@@ -225,20 +225,20 @@  discard block
 block discarded – undo
225 225
 }
226 226
 
227 227
 function wpinv_change_default_title( $title ) {
228
-     if ( !is_admin() ) {
228
+        if ( !is_admin() ) {
229 229
         $label = wpinv_get_label_singular();
230 230
         $title = sprintf( __( 'Enter %s name here', 'invoicing' ), $label );
231 231
         return $title;
232
-     }
232
+        }
233 233
 
234
-     $screen = get_current_screen();
234
+        $screen = get_current_screen();
235 235
 
236
-     if ( 'wpi_invoice' == $screen->post_type ) {
236
+        if ( 'wpi_invoice' == $screen->post_type ) {
237 237
         $label = wpinv_get_label_singular();
238 238
         $title = sprintf( __( 'Enter %s name here', 'invoicing' ), $label );
239
-     }
239
+        }
240 240
 
241
-     return $title;
241
+        return $title;
242 242
 }
243 243
 add_filter( 'enter_title_here', 'wpinv_change_default_title' );
244 244
 
@@ -310,7 +310,7 @@  discard block
 block discarded – undo
310 310
 function wpinv_hide_uwp_user_invoices_count( $counts ){
311 311
 
312 312
     if ( apply_filters( 'wpinv_hide_uwp_user_invoices_count', true ) && isset( $counts['wpi_invoice'] ) ) {
313
-	    unset( $counts['wpi_invoice'] );
313
+        unset( $counts['wpi_invoice'] );
314 314
     }
315 315
 
316 316
     return $counts;
Please login to merge, or discard this patch.