| Conditions | 3 | 
| Paths | 4 | 
| Total Lines | 30 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Tests | 0 | 
| CRAP Score | 12 | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 10 | protected function blocoX($y)  | 
            ||
| 11 |     { | 
            ||
| 12 | $this->bloco9H = 3;  | 
            ||
| 
                                                                                                    
                        
                         | 
                |||
| 13 | |||
| 14 | /*  | 
            ||
| 15 | $aFont = ['font'=> $this->fontePadrao, 'size' => 7, 'style' => ''];  | 
            ||
| 16 | $this->pdf->textBox($this->margem, $y, $this->wPrint, $this->bloco9H, '', $aFont, 'T', 'C', true, '', false);  | 
            ||
| 17 | */  | 
            ||
| 18 | |||
| 19 | $aFont = ['font'=> $this->fontePadrao, 'size' => 6, 'style' => ''];  | 
            ||
| 20 |         if ($this->paperwidth < 70) { | 
            ||
| 21 | $aFont = ['font'=> $this->fontePadrao, 'size' => 4, 'style' => ''];  | 
            ||
| 22 | }  | 
            ||
| 23 |         if (!empty($this->creditos)) { | 
            ||
| 24 | $this->pdf->textBox(  | 
            ||
| 25 | $this->margem,  | 
            ||
| 26 | $y,  | 
            ||
| 27 | $this->wPrint,  | 
            ||
| 28 | $this->bloco9H,  | 
            ||
| 29 | $this->creditos,  | 
            ||
| 30 | $aFont,  | 
            ||
| 31 | 'C',  | 
            ||
| 32 | 'R',  | 
            ||
| 33 | false,  | 
            ||
| 34 | '',  | 
            ||
| 35 | true  | 
            ||
| 36 | );  | 
            ||
| 37 | }  | 
            ||
| 38 | return $this->bloco9H + $y;  | 
            ||
| 39 | }  | 
            ||
| 40 | }  | 
            ||
| 41 | 
In PHP it is possible to write to properties without declaring them. For example, the following is perfectly valid PHP code:
Generally, it is a good practice to explictly declare properties to avoid accidental typos and provide IDE auto-completion: