For compatibility and reusability of your code, PSR1 recommends that a file should introduce either new symbols (like classes, functions, etc.) or have side-effects (like outputting something, or including other files), but not both at the same time. The first symbol is defined on line 29 and the first side effect is on line 29.
The PSR-1: Basic Coding Standard recommends that a file should either introduce
new symbols, that is classes, functions, constants or similar, or have side effects.
Side effects are anything that executes logic, like for example printing output,
changing ini settings or writing to a file.
The idea behind this recommendation is that merely auto-loading a class should not change the state
of an application. It also promotes a cleaner style of programming and makes your code
less prone to errors, because the logic is not spread out all over the place.
To learn more about the PSR-1, please see the PHP-FIG site on the
PSR-1.
Loading history...
2
3
/*
4
* Wolnościowiec / WebDeploy
5
* ------------------------
6
*
7
* Framework for creation of post-install scripts dedicated
8
* for applications hosted on shared hosting (without access to the shell).
9
*
10
* A part of an anarchist portal - wolnosciowiec.net
11
*
12
* Wolnościowiec is a project to integrate the movement
13
* of people who strive to build a society based on
14
* solidarity, freedom, equality with a respect for
15
* individual and cooperation of each other.
16
*
17
* We support human rights, animal rights, feminism,
18
* anti-capitalism (taking over the production by workers),
19
* anti-racism, and internationalism. We negate
20
* the political fight and politicians at all.
21
*
22
* http://wolnosciowiec.net/en
23
*
24
* License: LGPLv3
25
*/
26
27
namespace Wolnosciowiec\WebDeploy\Exceptions;
28
29
class DeploymentFailureException extends \Exception { };
The PSR-1: Basic Coding Standard recommends that a file should either introduce new symbols, that is classes, functions, constants or similar, or have side effects. Side effects are anything that executes logic, like for example printing output, changing ini settings or writing to a file.
The idea behind this recommendation is that merely auto-loading a class should not change the state of an application. It also promotes a cleaner style of programming and makes your code less prone to errors, because the logic is not spread out all over the place.
To learn more about the PSR-1, please see the PHP-FIG site on the PSR-1.