Wireless: code update#2086
Conversation
WalkthroughThis pull request includes code formatting changes and minor functional adjustments to two plugin files. In NetworkInfo.php, whitespace adjustments improve readability, the field count in the wireless link information command is reduced from five to four, and a new line sorts the band array. In Wireless.php, a substring extraction for MAC addresses is introduced in the Wi-Fi scan function, and additional spacing corrections are applied in the attribute-saving logic. No public API changes were made. Changes
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Actionable comments posted: 1
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (2)
emhttp/plugins/dynamix/include/NetworkInfo.php(3 hunks)emhttp/plugins/dynamix/include/Wireless.php(3 hunks)
🔇 Additional comments (7)
emhttp/plugins/dynamix/include/Wireless.php (3)
48-49: MAC address extraction added.The added code correctly extracts only the MAC address (17 characters) from the BSS line of the Wi-Fi scan output, improving data consistency.
140-143: Formatting improvements for better readability.Code formatting has been standardized by adding spaces around comparison operators, which improves readability without changing functionality.
162-167: Consistent spacing around operators.Code formatting has been standardized by adding spaces around comparison and ternary operators, which improves readability.
emhttp/plugins/dynamix/include/NetworkInfo.php (4)
25-26: Standardized spacing in conditional checks.Added consistent spacing around operators and in function arguments, which improves code readability.
41-41: Consistent formatting for DNS filtering conditions.Standardized spacing around comparison operators in the array filter functions, making the code more readable.
Also applies to: 47-47
55-59: Added consistent spacing in explode function calls.Improved code readability by adding spaces after commas in the explode function calls.
73-73: Added sorting of wireless bands.Sorting the band array provides a consistent display order of wireless bands (2.4G, 5G, 6G), improving user experience.
Summary by CodeRabbit
New Features
Style