protected function addFileReports()
    {
        $sCode = $this->html->sequence();

        $output = false;
        $filenames = $this->_getFilenames();
        foreach ($filenames as  $filename) {
            $output = $this->addFileReport($filename) || $output;
        }
        if ($this->appNamespaceError) {
            $sCode->h3('Code change issues found');
            $sCode->pInfo('The application code has code change issues. You can try to fix them by running this phing script:');
            $sCode->pre(
                    'cd ' . APPLICATION_PATH . "\n" .
                    'phing -f ' . GEMS_LIBRARY_DIR . DIRECTORY_SEPARATOR . 'scripts' . DIRECTORY_SEPARATOR . 'namespacer.xml'
                    );
            $p = $sCode->pInfo('To use this script you have to install ');
            $p->a('https://www.phing.info/', 'Phing');
            $p->append('. Then run the script and check again for issues not fixed by the script.');

        } elseif (! $output) {
            $this->html->h3('Code change report');
            $this->html->pInfo('No compatibility issues found in the code for this project.');
        }
    }
protected function addFileReports()
    {
        $sCode = $this->html->sequence();

        $output = false;
        $filenames = $this->_getFilenames();
        foreach ($filenames as  $filename) {
            $output = $this->addFileReport($filename) || $output;
        }
        if ($this->appNamespaceError) {
            $sCode->h3('Code change issues found');
            $sCode->pInfo('The application code has code change issues. You can try to fix them by running this phing script:');
            $sCode->pre(
                    'cd ' . APPLICATION_PATH . "\n" .
                    'phing -f ' . GEMS_LIBRARY_DIR . DIRECTORY_SEPARATOR . 'scripts' . DIRECTORY_SEPARATOR . 'namespacer.xml'
                    );
            $p = $sCode->pInfo('To use this script you have to install ');
            $p->a('https://www.phing.info/', 'Phing');
            $p->append('. Then run the script and check again for issues not fixed by the script.');

        } elseif (! $output) {
            $this->html->h3('Code change report');
            $this->html->pInfo('No compatibility issues found in the code for this project.');
        }
    }
protected function addFileReports ( ) { $ sCode = $ this -> html -> sequence ( ) ; $ output = false ; $ filenames = $ this -> _getFilenames ( ) ; foreach ( $ filenames as $ filename ) { $ output = $ this -> addFileReport ( $ filename ) || $ output ; } if ( $ this -> appNamespaceError ) { $ sCode -> h3 ( 'Code change issues found' ) ; $ sCode -> pInfo ( 'The application code has code change issues. You can try to fix them by running this phing script:' ) ; $ sCode -> pre ( 'cd ' . APPLICATION_PATH . "\n" . 'phing -f ' . GEMS_LIBRARY_DIR . DIRECTORY_SEPARATOR . 'scripts' . DIRECTORY_SEPARATOR . 'namespacer.xml' ) ; $ p = $ sCode -> pInfo ( 'To use this script you have to install ' ) ; $ p -> a ( 'https://www.phing.info/' , 'Phing' ) ; $ p -> append ( '. Then run the script and check again for issues not fixed by the script.' ) ; } elseif ( ! $ output ) { $ this -> html -> h3 ( 'Code change report' ) ; $ this -> html -> pInfo ( 'No compatibility issues found in the code for this project.' ) ; } }
A reports on code files
A reports on code files