Skip to content

Commit

Permalink
add and require end of file newlines
Browse files Browse the repository at this point in the history
  • Loading branch information
crstauf committed Jul 26, 2024
1 parent 5443cac commit 05f2156
Show file tree
Hide file tree
Showing 28 changed files with 27 additions and 28 deletions.
1 change: 1 addition & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ charset = utf-8
end_of_line = lf
indent_style = tab
trim_trailing_whitespace = true
insert_final_newline = true

[*.{yml,json,svg,xml}]
indent_style = space
Expand Down
2 changes: 1 addition & 1 deletion acf/qmx-acf-collector.php
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ public function filter__acf_pre_load_value( $short_circuit, $post_id, $field ) {
$key = $row['group']['key'];
$title = $row['group']['title'];
}

$this->data->field_groups[ $key ] = $title;
}

Expand Down
2 changes: 1 addition & 1 deletion acf/qmx-acf-data.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,4 @@ class QMX_Data_ACF extends QM_Data {
*/
public $loaded_field_groups = array();

}
}
2 changes: 1 addition & 1 deletion acf/qmx-acf-output.php
Original file line number Diff line number Diff line change
Expand Up @@ -582,4 +582,4 @@ public function panel_menu( array $menu ) {
}

return $output;
}, 70 );
}, 70 );
2 changes: 1 addition & 1 deletion constants/qmx-constants-collector.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@ public function process() : void {
add_filter( 'qm/collectors', static function ( array $collectors ) : array {
$collectors['constants'] = new QMX_Collector_Constants;
return $collectors;
} );
} );
2 changes: 1 addition & 1 deletion constants/qmx-constants-data.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ class QMX_Data_Constants extends QM_Data {
*/
public $constants;

}
}
2 changes: 1 addition & 1 deletion constants/qmx-constants-output.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,4 +94,4 @@ public function panel_menu( array $menu ) {
}

return $output;
}, 70 );
}, 70 );
2 changes: 1 addition & 1 deletion files/qmx-files-collector.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,4 @@ public function process() {
add_filter( 'qm/collectors', static function ( array $collectors ) : array {
$collectors['files'] = new QMX_Collector_Files;
return $collectors;
} );
} );
2 changes: 1 addition & 1 deletion files/qmx-files-data.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ class QMX_Data_Files extends QM_Data {
*/
public $files = array();

}
}
2 changes: 1 addition & 1 deletion files/qmx-files-output.php
Original file line number Diff line number Diff line change
Expand Up @@ -207,4 +207,4 @@ private function human_file_size( int $bytes ) : string {
}

return $output;
}, 70 );
}, 70 );
2 changes: 1 addition & 1 deletion globals/qmx-globals-collector.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,4 @@ public function process() : void {
add_filter( 'qm/collectors', static function ( array $collectors ) : array {
$collectors['globals'] = new QMX_Collector_Globals;
return $collectors;
} );
} );
2 changes: 1 addition & 1 deletion globals/qmx-globals-data.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ class QMX_Data_Globals extends QM_Data {
*/
public $post;

}
}
2 changes: 1 addition & 1 deletion globals/qmx-globals-output.php
Original file line number Diff line number Diff line change
Expand Up @@ -210,4 +210,4 @@ public function panel_menu( array $menu ) {
}

return $output;
}, 70 );
}, 70 );
2 changes: 1 addition & 1 deletion heartbeat/qmx-heartbeat-collector.php
Original file line number Diff line number Diff line change
Expand Up @@ -179,4 +179,4 @@ public function get_concerned_filters() : array {
add_filter( 'qm/collectors', static function ( array $collectors ) : array {
$collectors['heartbeat'] = new QMX_Collector_Heartbeat;
return $collectors;
} );
} );
2 changes: 1 addition & 1 deletion heartbeat/qmx-heartbeat-output.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,4 +89,4 @@ public function panel_menu( array $menu ) {
}

return $output;
}, 70 );
}, 70 );
2 changes: 1 addition & 1 deletion image-sizes/qmx-image-sizes-collector.php
Original file line number Diff line number Diff line change
Expand Up @@ -315,4 +315,4 @@ function qmx_image_size_highlighter__mouseleave( prop, el ) {

}

QM_Collectors::add( new QMX_Collector_Image_Sizes );
QM_Collectors::add( new QMX_Collector_Image_Sizes );
2 changes: 1 addition & 1 deletion image-sizes/qmx-image-sizes-data.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ class QMX_Data_Image_Sizes extends QM_Data {
*/
public $duplicates = array();

}
}
2 changes: 1 addition & 1 deletion image-sizes/qmx-image-sizes-output.php
Original file line number Diff line number Diff line change
Expand Up @@ -168,4 +168,4 @@ public function panel_menu( array $menu ) {
}

return $output;
}, 70 );
}, 70 );
2 changes: 1 addition & 1 deletion paths/qmx-paths-collector.php
Original file line number Diff line number Diff line change
Expand Up @@ -146,4 +146,4 @@ public function get_concerned_options() {
add_filter( 'qm/collectors', static function ( array $collectors ) : array {
$collectors['paths'] = new QMX_Collector_Paths;
return $collectors;
} );
} );
2 changes: 1 addition & 1 deletion paths/qmx-paths-data.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ class QMX_Data_Paths extends QM_Data {
*/
public $paths = array();

}
}
2 changes: 1 addition & 1 deletion paths/qmx-paths-output.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,4 +112,4 @@ public function panel_menu( array $menu ) {
}

return $output;
}, 70 );
}, 70 );
2 changes: 0 additions & 2 deletions phpcs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,6 @@
<exclude name="Squiz.WhiteSpace.ControlStructureSpacing.SpacingAfterOpen"/>
<exclude name="Squiz.WhiteSpace.ControlStructureSpacing.SpacingBeforeClose"/>
<exclude name="Generic.WhiteSpace.ScopeIndent.IncorrectExact"/>
<exclude name="Generic.Files.EndFileNewline.NotFound"/>
<exclude name="PSR2.Files.EndFileNewline.NoneFound"/>
<exclude name="Generic.WhiteSpace.ScopeIndent.Incorrect"/>
<exclude name="PSR2.ControlStructures.ElseIfDeclaration.NotAllowed"/>
<exclude name="PSR12.Files.DeclareStatement.SpaceFoundBeforeDirective"/>
Expand Down
2 changes: 1 addition & 1 deletion qmx-conditionals.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,4 @@
sort( $conditionals );

return $conditionals;
} );
} );
2 changes: 1 addition & 1 deletion qmx-time-hooks.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,4 @@ function qmx_auto() : void {

qmx_time_hooks( 'start' );
add_action( current_action(), 'qmx_stop', PHP_INT_MAX );
}
}
2 changes: 1 addition & 1 deletion query-monitor-extend.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,4 +126,4 @@
include_once $dir . 'qmx-time-hooks.php';

# Include additional conditionals.
include_once $dir . 'qmx-conditionals.php';
include_once $dir . 'qmx-conditionals.php';
2 changes: 1 addition & 1 deletion time/qmx-time-collector.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,4 +89,4 @@ public function get_browser() : string {
add_filter( 'qm/collectors', static function ( array $collectors ) : array {
$collectors['time'] = new QMX_Collector_Time;
return $collectors;
} );
} );
2 changes: 1 addition & 1 deletion time/qmx-time-data.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ class QMX_Data_Time extends QM_Data {
*/
public $functions = array();

}
}
2 changes: 1 addition & 1 deletion time/qmx-time-output.php
Original file line number Diff line number Diff line change
Expand Up @@ -135,4 +135,4 @@ public function panel_menu( array $menu ) {
}

return $output;
}, 70 );
}, 70 );

0 comments on commit 05f2156

Please sign in to comment.