@@ -74,7 +74,7 @@ public static function checkSymlink($symlinkTarget, $symlinkName, $forceSymlink
7474 if (!$ forceSymlink ) {
7575 throw new \Exception (\sprintf ('Symlink "%s" points to "%s" instead of "%s" ' , $ symlinkName , $ linkTarget , $ symlinkTarget ));
7676 }
77- if (\strtoupper (\substr (PHP_OS , 0 , 3 )) === 'WIN ' && \is_dir ($ linkTarget )) {
77+ if (\strtoupper (\substr (\ PHP_OS , 0 , 3 )) === 'WIN ' && \is_dir ($ linkTarget )) {
7878 \rmdir ($ symlinkName );
7979 } else {
8080 \unlink ($ symlinkName );
@@ -126,7 +126,7 @@ public static function createMirror($symlinkTarget, $symlinkName)
126126 $ filesystem = new Filesystem ();
127127 $ filesystem ->mkdir ($ symlinkName );
128128 $ filesystem ->mirror (
129- $ symlinkName .DIRECTORY_SEPARATOR .'.. ' .DIRECTORY_SEPARATOR .$ symlinkTarget ,
129+ $ symlinkName .\ DIRECTORY_SEPARATOR .'.. ' .\ DIRECTORY_SEPARATOR .$ symlinkTarget ,
130130 $ symlinkName ,
131131 null ,
132132 ['copy_on_windows ' => true , 'delete ' => true , 'override ' => true ]
@@ -169,8 +169,8 @@ protected function execute(InputInterface $input, OutputInterface $output)
169169 } elseif (false !== $ composer = ComposerAdapter::getComposer ($ input , $ output )) {
170170 $ cmanager = new ComposerPathFinder ($ composer );
171171 $ options = [
172- 'targetSuffix ' => DIRECTORY_SEPARATOR .$ this ->bootstrapInstallPath .static ::$ targetSuffix ,
173- 'sourcePrefix ' => '.. ' .DIRECTORY_SEPARATOR .'.. ' .DIRECTORY_SEPARATOR ,
172+ 'targetSuffix ' => \ DIRECTORY_SEPARATOR .$ this ->bootstrapInstallPath .static ::$ targetSuffix ,
173+ 'sourcePrefix ' => '.. ' .\ DIRECTORY_SEPARATOR .'.. ' .\ DIRECTORY_SEPARATOR ,
174174 ];
175175 list ($ symlinkTarget , $ symlinkName ) = $ cmanager ->getSymlinkFromComposer (
176176 self ::$ mopaBootstrapBundleName ,
@@ -184,15 +184,15 @@ protected function execute(InputInterface $input, OutputInterface $output)
184184 }
185185
186186 // Automatically detect if on Win XP where symlink will allways fail
187- if ($ input ->getOption ('no-symlink ' ) || PHP_OS == 'WINNT ' ) {
187+ if ($ input ->getOption ('no-symlink ' ) || \ PHP_OS == 'WINNT ' ) {
188188 $ this ->output ->write ('Checking destination ' );
189189
190190 if (true === self ::checkSymlink ($ symlinkTarget , $ symlinkName )) {
191191 $ this ->output ->writeln (' ... <comment>symlink already exists</comment> ' );
192192 } else {
193193 $ this ->output ->writeln (' ... <comment>not existing</comment> ' );
194194 $ this ->output ->writeln (\sprintf ('Mirroring to: %s ' , $ symlinkName ));
195- $ this ->output ->write (\sprintf ('from target: %s ' , \realpath ($ symlinkName .DIRECTORY_SEPARATOR .'.. ' .DIRECTORY_SEPARATOR .$ symlinkTarget )));
195+ $ this ->output ->write (\sprintf ('from target: %s ' , \realpath ($ symlinkName .\ DIRECTORY_SEPARATOR .'.. ' .\ DIRECTORY_SEPARATOR .$ symlinkTarget )));
196196 self ::createMirror ($ symlinkTarget , $ symlinkName );
197197 }
198198 } else {
@@ -231,7 +231,7 @@ protected function getBootstrapPathsFromUser()
231231 throw new \Exception ('Target path ' .$ symlinkTarget .'is not a directory! ' );
232232 }
233233 } else {
234- $ symlinkTarget = $ symlinkName .DIRECTORY_SEPARATOR .'.. ' .DIRECTORY_SEPARATOR .$ symlinkTarget ;
234+ $ symlinkTarget = $ symlinkName .\ DIRECTORY_SEPARATOR .'.. ' .\ DIRECTORY_SEPARATOR .$ symlinkTarget ;
235235 }
236236
237237 if (!\is_dir ($ symlinkTarget )) {
0 commit comments