mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2024-11-21 17:15:25 +03:00
Page:
Structures
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
Structures
LogMANOriginal edited this page 2018-11-05 13:56:36 +01:00
Table of Contents
Structures must always be formatted as multi-line blocks
A structure should always be treated as if it contains a multi-line block.
Add a space after closing parenthesis
Example
Bad
if($condition){
...
}
Good
if($condition) {
...
}
Add body into new line
Example
Bad
if($condition){ ... }
Good
if($condition) {
...
}
Close body in new line
Example
Bad
if($condition){
... }
Good
if($condition) {
...
}
Reference: Squiz.ControlStructures.ControlSignature
RSS-Bridge · Reconnecting the Web ·