| Conditions | 3 | 
| Paths | 3 | 
| Total Lines | 13 | 
| Code Lines | 7 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Tests | 8 | 
| CRAP Score | 3 | 
| Changes | 1 | ||
| Bugs | 0 | Features | 1 | 
| 1 | <?php  | 
            ||
| 51 | 5 |     public function process(File $file, Report $report) { | 
            |
| 52 | 5 | $fileContent = $file->getContent()->get();  | 
            |
| 53 | |||
| 54 | 5 |       foreach (self::REGEXP as $regexp) { | 
            |
| 55 | 5 |         if (preg_match($regexp, $fileContent) === 1) { | 
            |
| 56 | 5 | return;  | 
            |
| 57 | }  | 
            ||
| 58 | }  | 
            ||
| 59 | |||
| 60 | 3 | $message = 'File must begin with `<?php` or `<?` or `#!/usr/bin/env php`';  | 
            |
| 61 | 3 | $report->addMessage($file, $this, $message, 1);  | 
            |
| 62 | |||
| 63 | 3 | }  | 
            |
| 64 | |||
| 65 | }  |