@@ -6,13 +6,13 @@ discard block |
||
| 6 | 6 | * @param string $class The fully-qualified class name. |
| 7 | 7 | * @return void |
| 8 | 8 | */ |
| 9 | -spl_autoload_register(function ($class) { |
|
| 9 | +spl_autoload_register(function($class) { |
|
| 10 | 10 | |
| 11 | 11 | // project-specific namespace prefix |
| 12 | 12 | $prefix = 'EncreInformatique\\DoctorSenderApi\\'; |
| 13 | 13 | |
| 14 | 14 | // base directory for the namespace prefix |
| 15 | - $base_dir = __DIR__ . '/src/'; |
|
| 15 | + $base_dir = __DIR__.'/src/'; |
|
| 16 | 16 | |
| 17 | 17 | // does the class use the namespace prefix? |
| 18 | 18 | $len = strlen($prefix); |
@@ -27,7 +27,7 @@ discard block |
||
| 27 | 27 | // replace the namespace prefix with the base directory, replace namespace |
| 28 | 28 | // separators with directory separators in the relative class name, append |
| 29 | 29 | // with .php |
| 30 | - $file = $base_dir . str_replace('\\', '/', $relative_class) . '.php'; |
|
| 30 | + $file = $base_dir.str_replace('\\', '/', $relative_class).'.php'; |
|
| 31 | 31 | |
| 32 | 32 | // if the file exists, require it |
| 33 | 33 | if (file_exists($file)) { |
@@ -55,7 +55,7 @@ discard block |
||
| 55 | 55 | $sqlWhereDate = 'send_date <= \''.$options['date']['end']->format("Y-m-d").'\''; |
| 56 | 56 | } |
| 57 | 57 | |
| 58 | - $sqlWhere.= ' and '.$sqlWhereDate; |
|
| 58 | + $sqlWhere .= ' and '.$sqlWhereDate; |
|
| 59 | 59 | } |
| 60 | 60 | |
| 61 | 61 | /* |
@@ -67,7 +67,7 @@ discard block |
||
| 67 | 67 | |
| 68 | 68 | $sqlWhereList = 'user_list = \''.$options['list'].'\''; |
| 69 | 69 | |
| 70 | - $sqlWhere.= ' and '.$sqlWhereList; |
|
| 70 | + $sqlWhere .= ' and '.$sqlWhereList; |
|
| 71 | 71 | } |
| 72 | 72 | |
| 73 | 73 | /* |