File tree Expand file tree Collapse file tree 1 file changed +4
-10
lines changed Expand file tree Collapse file tree 1 file changed +4
-10
lines changed Original file line number Diff line number Diff line change 23
23
}
24
24
25
25
$ vendor = realpath (__DIR__ . '/../vendor ' );
26
-
27
- if (file_exists ($ vendor . "/autoload.php " )) {
28
- require $ vendor . "/autoload.php " ;
26
+ if (file_exists ($ vendor . '/autoload.php ' )) {
27
+ require $ vendor . '/autoload.php ' ;
29
28
} else {
30
- $ vendor = realpath (__DIR__ . '/../../../ ' );
31
- if (file_exists ($ vendor . "/autoload.php " )) {
32
- require $ vendor . "/autoload.php " ;
33
- } else {
34
- throw new Exception ("Unable to load dependencies " );
35
- }
29
+ throw new Exception ('Unable to load dependencies ' );
36
30
}
37
31
38
32
spl_autoload_register (function ($ class ) {
49
43
}
50
44
});
51
45
52
- require_once __DIR__ . " /../src/PhpWord/Autoloader.php " ;
46
+ require_once __DIR__ . ' /../src/PhpWord/Autoloader.php ' ;
53
47
\PhpOffice \PhpWord \Autoloader::register ();
You can’t perform that action at this time.
0 commit comments