Closed Ninir closed 11 years ago
@suncat2000 In the DeviceView class, why not using strict comparison for is*View
functions?
For instance: line 76
I'm sorry I did not quite understand what you mean You can write an example?
Well, for instance line 76 (following the link I gave above), you can see this:
return ($this->viewType == self::VIEW_FULL);
Why not using this (3 equals, comparing the type of vars):
return $this->viewType === self::VIEW_FULL;
I do not know why I was so wrote))) Yes you are right, better use strict compare in this expression