Skip to content

staabm/rector-repro1

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

this repo reproduces a case in which rector add php starting/ending tags in view files.

Steps

  • composer install
  • vendor/bin/rector process -n

expected result

  • rector might change whitespaces / intentation.. AFAIK its technically hard to keep all whitespaces -> thats fine
  • rector should not add <?php ?> at the beginning of the file
  • rector should not add a trailling <?php

actual result

+<?php
+
+?>

        <div>
-       <?php echo check_box($auktion, 'skipnetzprovider', '1', "class=checkbox onclick=\"getAngebotHTML($('angebot').value);\""); ?>
+       <?php
+echo check_box($auktion, 'skipnetzprovider', '1', "class=checkbox onclick=\"getAngebotHTML($('angebot').value);\"");
+?>
        <b class="caption">Provider und Netz nicht anzeigen</b> (Im gesamten Template)
        <br><br>
-       </div>
+       </div><?php

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published

Languages