@@ -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 ]
@@ -168,8 +168,8 @@ protected function execute(InputInterface $input, OutputInterface $output)
168168 } elseif (false !== $ composer = ComposerAdapter::getComposer ($ input , $ output )) {
169169 $ cmanager = new ComposerPathFinder ($ composer );
170170 $ options = [
171- 'targetSuffix ' => DIRECTORY_SEPARATOR .$ this ->bootstrapInstallPath .static ::$ targetSuffix ,
172- 'sourcePrefix ' => '.. ' .DIRECTORY_SEPARATOR .'.. ' .DIRECTORY_SEPARATOR ,
171+ 'targetSuffix ' => \ DIRECTORY_SEPARATOR .$ this ->bootstrapInstallPath .static ::$ targetSuffix ,
172+ 'sourcePrefix ' => '.. ' .\ DIRECTORY_SEPARATOR .'.. ' .\ DIRECTORY_SEPARATOR ,
173173 ];
174174 [$ symlinkTarget , $ symlinkName ] = $ cmanager ->getSymlinkFromComposer (
175175 self ::$ mopaBootstrapBundleName ,
@@ -183,15 +183,15 @@ protected function execute(InputInterface $input, OutputInterface $output)
183183 }
184184
185185 // Automatically detect if on Win XP where symlink will allways fail
186- if ($ input ->getOption ('no-symlink ' ) || PHP_OS == 'WINNT ' ) {
186+ if ($ input ->getOption ('no-symlink ' ) || \ PHP_OS == 'WINNT ' ) {
187187 $ this ->output ->write ('Checking destination ' );
188188
189189 if (true === self ::checkSymlink ($ symlinkTarget , $ symlinkName )) {
190190 $ this ->output ->writeln (' ... <comment>symlink already exists</comment> ' );
191191 } else {
192192 $ this ->output ->writeln (' ... <comment>not existing</comment> ' );
193193 $ this ->output ->writeln (\sprintf ('Mirroring to: %s ' , $ symlinkName ));
194- $ this ->output ->write (\sprintf ('from target: %s ' , \realpath ($ symlinkName .DIRECTORY_SEPARATOR .'.. ' .DIRECTORY_SEPARATOR .$ symlinkTarget )));
194+ $ this ->output ->write (\sprintf ('from target: %s ' , \realpath ($ symlinkName .\ DIRECTORY_SEPARATOR .'.. ' .\ DIRECTORY_SEPARATOR .$ symlinkTarget )));
195195 self ::createMirror ($ symlinkTarget , $ symlinkName );
196196 }
197197 } else {
@@ -230,7 +230,7 @@ protected function getBootstrapPathsFromUser()
230230 throw new \Exception ('Target path ' .$ symlinkTarget .'is not a directory! ' );
231231 }
232232 } else {
233- $ symlinkTarget = $ symlinkName .DIRECTORY_SEPARATOR .'.. ' .DIRECTORY_SEPARATOR .$ symlinkTarget ;
233+ $ symlinkTarget = $ symlinkName .\ DIRECTORY_SEPARATOR .'.. ' .\ DIRECTORY_SEPARATOR .$ symlinkTarget ;
234234 }
235235
236236 if (!\is_dir ($ symlinkTarget )) {
0 commit comments