Ahoj potřebuju zkontrolovat kód šablon, asi tam mám BOM. Stáhl jsem si
Code-checker, složka je na C:\ – na stejné úrovni jako XAMPP s projektem.
Pokouším se code-checker spustit přes příkazovou řádku, ale nedaří se
mi to, už jsem vyzkoušel snad všechno, ale pokud už, tak to hlásí ‚Could
not open input file Code-checker.php‘
podle Nette dokumentace je to takto:
php code-checker.php [options]
Zkusil jsem např.:
C:\> php code-checker/code-checker.php
[-d=‚xampp/htdocs/webprojekt/app/Front/presenters/templates‘]
Výsledek: ‚Could not open input file Code-checker.php‘
Výsledek: PHP Warning: CodeChecker was moved from /src/code-checker.php to
/code-checker in C:\code-checker\src\code-checker.php on line 5
Warning: CodeChecker was moved from /src/code-checker.php to /code-checker in
C:\code-checker\src\code-checker.php on line 5
Install packages using composer update
C:\>
C:\> code-checker
[-d=‚xampp/htdocs/webprojekt/app/Front/presenters/templates‘]
‚code-checker‘ is not recognized as an internal or external command,
operable program or batch file.
C:\> php code-checker
[-d=‚xampp/htdocs/webprojekt/app/presenters/templates‘]
Could not open input file: code-checker
nebo ještě
C:\> php code-checker/code-checker
[-d=‚xampp/htdocs/webprojekt/Front/presenters/templates‘]
Install packages using composer update
C:\code-checker> code-checker
[-d=‚xampp/htdocs/webprojekt/app/Front/presenters/templates‘]
‚code-checker‘ is not recognized as an internal or external command,
operable program or batch file.
C:\code-checker> php code-checker
[-d=‚xampp/htdocs/webprojekt/app/Front/presenters/templates‘]
Install packages using composer update
C:\code-checker>cd..
C:\> php code-checker/code-checker
[-d=‚xampp/htdocs/webprojekt/app/Front/presenters/templates‘]
Install packages using composer update
C:\>
Koukám, že jsi tam dělal úpravy před 2 hodinami. No zkoušel jsem ten
update, viz níže. Přece to sakra rozchodíme… Jen mi není jasné, když to
spouštím na C:, a PHP 7.3 je na XAMPP, kde to vlastně běží. Neměl bych
to hodit do toho XAMPPU? Vlastně jsem to zkoušel a nic… Sorry, jsem
samouk.
C:\code-checker> code-checker [-d=‚xampp/htdocs/webprojekt‘]
‚code-checker‘ is not recognized as an internal or external command,
operable program or batch file.
C:\code-checker> php code-checker [-d=‚xampp/htdocs/webprojekt‘]
Install packages using composer update
C:\code-checker>