This is a standalone expression in a function:
$var OR $var = $var
What does this expression exactly do?
Never saw this before and can't find the answer as I have no idea how is this called.
Code itself is from: Сodeigniter Template on Github
public function build($view, $data = array(), $return = FALSE)
{
// Set whatever values are given. These will be available to all view files
is_array($data) OR $data = (array) $data;
// Merge in what we already have with the specific data
$this->_data = array_merge($this->_data, $data);
...
$varsupposed to be in the code 3 times?=) has higher precedence thanOR, so it sets a variable value to itself, and then ors it with itself again, and then does absolutely nothing.... it's basically a waste of processing cycles as it standsis_array($data) OR $data = (array) $data;doesn't do the same thing of$var OR $var = $var. Why didn't you post that from the start?if (!is_array($data)) { $data = (array) $data; }