@@ -83,7 +83,7 @@ |
||
83 | 83 | */ |
84 | 84 | public function store($entity) |
85 | 85 | { |
86 | - if ( !($entity instanceOf $this->entityPrototype) ) { |
|
86 | + if (!($entity instanceOf $this->entityPrototype)) { |
|
87 | 87 | throw new \InvalidArgumentException(sprintf( |
88 | 88 | 'Entity must be of type %s but recieved %s instead', |
89 | 89 | get_class($this->entityPrototype), |
@@ -23,7 +23,7 @@ |
||
23 | 23 | * for multiple paths. |
24 | 24 | * example https://github.com/doctrine/DoctrineORMModule |
25 | 25 | */ |
26 | - 'paths' => array( __DIR__ . '/../src/Applications/Entity', |
|
26 | + 'paths' => array(__DIR__ . '/../src/Applications/Entity', |
|
27 | 27 | __DIR__ . '/../../../module/Cv/src/Cv/Entity'), |
28 | 28 | ), |
29 | 29 | ), |
@@ -14,13 +14,13 @@ discard block |
||
14 | 14 | if (php_sapi_name() == 'cli-server') { |
15 | 15 | $route = parse_url(substr($_SERVER["REQUEST_URI"], 1))["path"]; |
16 | 16 | if (is_file(__DIR__ . '/' . $route)) { |
17 | - if(substr($route, -4) == ".php"){ |
|
18 | - require __DIR__ . '/' . $route; // Include requested script files |
|
17 | + if (substr($route, -4) == ".php") { |
|
18 | + require __DIR__ . '/' . $route; // Include requested script files |
|
19 | 19 | exit; |
20 | 20 | } |
21 | - return false; // Serve file as is |
|
21 | + return false; // Serve file as is |
|
22 | 22 | } else { // Fallback to index.php |
23 | - $_GET["q"] = $route; // Try to emulate the behaviour of a .htaccess here. |
|
23 | + $_GET["q"] = $route; // Try to emulate the behaviour of a .htaccess here. |
|
24 | 24 | } |
25 | 25 | } |
26 | 26 | |
@@ -40,8 +40,8 @@ discard block |
||
40 | 40 | } else { |
41 | 41 | echo '<p>Could not initialize autoloading. This happens, if the dependencies are not installed yet.</p>'; |
42 | 42 | echo '<p>Please try to install the dependencies via: </p>'; |
43 | - echo '<code>cd '. realpath('.') .'<br>./install.sh</code>'; |
|
44 | - echo '<p>exit at ' . __FILE__ . ' in line ' . __LINE__ .'</p>'; |
|
43 | + echo '<code>cd ' . realpath('.') . '<br>./install.sh</code>'; |
|
44 | + echo '<p>exit at ' . __FILE__ . ' in line ' . __LINE__ . '</p>'; |
|
45 | 45 | exit; |
46 | 46 | } |
47 | 47 |