@@ -10,9 +10,9 @@ discard block |
||
| 10 | 10 | /** |
| 11 | 11 | * @param array $data |
| 12 | 12 | */ |
| 13 | - public function exception($data=array()) |
|
| 13 | + public function exception($data = array()) |
|
| 14 | 14 | {
|
| 15 | - if(!isset($data['project']) and !isset($data['version'])){
|
|
| 15 | + if (!isset($data['project']) and !isset($data['version'])) {
|
|
| 16 | 16 | throw new DomainException('No Project or Version');
|
| 17 | 17 | } |
| 18 | 18 | |
@@ -21,17 +21,17 @@ discard block |
||
| 21 | 21 | |
| 22 | 22 | //If there is no project on the url |
| 23 | 23 | //we throw an exception |
| 24 | - if($data['project']===null OR !file_exists($appPath)){
|
|
| 24 | + if ($data['project']===null OR !file_exists($appPath)) {
|
|
| 25 | 25 | throw new DomainException('No Project');
|
| 26 | 26 | } |
| 27 | 27 | |
| 28 | - if(!in_array($data['version'],UrlVersionIdentifier::supportedVersions())){
|
|
| 28 | + if (!in_array($data['version'], UrlVersionIdentifier::supportedVersions())) {
|
|
| 29 | 29 | throw new DomainException('Version Number is not supported');
|
| 30 | 30 | } |
| 31 | 31 | |
| 32 | 32 | //If there is no endpoint on the url |
| 33 | 33 | //we throw an exception |
| 34 | - if($data['endpoint']===null){
|
|
| 34 | + if ($data['endpoint']===null) {
|
|
| 35 | 35 | throw new DomainException('No Endpoint');
|
| 36 | 36 | } |
| 37 | 37 | } |