mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2024-11-23 10:05:32 +03:00
Page:
Whitespace
Pages
Actions
Arrays
Authentication
Bridge API
BridgeAbstract
Cache API
CacheInterface
Casting
Classes
Coding style policy
Command Line Interface (CLI)
Constants
Custom Configuration
Customizations
Debug mode
Docker
Extended Bridges
FAQ
FeedExpander
Folder structure
For developers
For hosts
Format API
FormatAbstract
FormatInterface
Functions
Heroku Installation
Home
How can I contribute
How to create a new Bridge
How to create a new Cache
How to create a new Format
Indentation
Installation
Keywords
Maximum line length
Operators
Project goals
Public hosts
Pull request policy
RSS Bridge on PHP 5.4
Read queriedContext
Requirements
Screenshots
Strings
Structures
Technical Recommendations
The collectData function
The detectParameters function
The getContents function
The getDescription function
The getIcon function
The getInput function
The getMaintainer function
The getName function
The getSimpleHTMLDOM function
The getSimpleHTMLDOMCached function
The getURI function
The returnClientError function
The returnError function
The returnServerError function
Updating
Web server links
Whitelisting
Whitespace
XPathAbstract
const PARAMETERS
defaultLinkTo
if Statement
No results
2
Whitespace
LogMANOriginal edited this page 2018-11-05 13:31:49 +01:00
Add a new line at the end of a file
Each PHP/CSS/HTML file must end with a new line at the end of a file.
Example
Bad
{
// code here
} // This is the end of the file
Good
{
// code here
}
// This is the end of the file
Reference: PSR2.Files.EndFileNewline
Do not add a whitespace before a semicolon
A semicolon indicates the end of a line of code. Spaces before the semicolon is unnecessary and must be removed.
Example
Bad
echo 'Hello World!' ;
Good
echo 'Hello World!';
Reference: Squiz.WhiteSpace.SemicolonSpacing
Do not add whitespace at start or end of a file or end of a line
Whitespace at the end of lines or at the start or end of a file is invisible to the reader and absolutely unnecessary. Thus it must be removed.
Reference: Squiz.WhiteSpace.SuperfluousWhitespace
RSS-Bridge · Reconnecting the Web ·