addAll($args); $shouldAmend = true; } else if ($untrackedChoice === 2) /* Allow Untracked */ { $allowUntracked = true; } } function f() { if ($untrackedChoice === 0) /* Cancel */ null; else if ($untrackedChoice === 1) /* Add */ $shouldAmend = true; else if ($untrackedChoice === 2) /* Allow Untracked */ $allowUntracked = true; } function f() { if ($untrackedChoice === 0) /* Cancel */ // Cancel null; else if ($untrackedChoice === 1) /* Add */ // Add $shouldAmend = true; else if ($untrackedChoice === 2) /* Allow Untracked */ // Allow Untracked $allowUntracked = true; } function f() { if ($untrackedChoice === 0) /* Cancel */ { return null; } else if ($untrackedChoice === 1) /* Add */ { yield $repository->addAll($args); $shouldAmend = true; } else if ($untrackedChoice === 2) /* Allow Untracked */ { $allowUntracked = true; } } function f() { if ($untrackedChoice === 0) { /* Cancel */ return null; } else if ($untrackedChoice === 1) { /* Add */ yield $repository->addAll($args); $shouldAmend = true; } else if ($untrackedChoice === 2) { /* Allow Untracked */ $allowUntracked = true; } } if (true) // Comment echo 'foo'; else if (false) // Comment echo 'bar'; else // Comment echo 'baz'; if (true) // Comment echo 'foo'; else if (false) // Comment echo 'bar'; else // Comment echo 'baz'; // If the values implements the Arrayable interface we can just call this // toArray method on the instances which will convert both models and // collections to their proper array form and we'll set the values. if ($value instanceof Arrayable) { $relation = $value->toArray(); } // If the value is null, we'll still go ahead and set it in this list of // attributes since null is used to represent empty relationships if // if it a has one or belongs to type relationships on the models. elseif (is_null($value)) { $relation = $value; } // Comment if (true) { call(); } // Comment elseif (false) { call(); } // Comment if (true) { call(); } // Comment elseif (false) { call(); } // Comment if (true) { call(); } // Comment elseif (false) { call(); } // Comment else { call(); } // Comment if (true) { call(); } // Comment elseif (false) { call(); } // Comment else { call(); } // Comment if (true) { call(); } // Comment elseif (false) { call(); } // Comment else { call(); } if (true) { echo 'test'; } /* comment */ else if (false) { echo 'test'; } // comment else { echo 'test'; } if (true) echo 'test'; // comment else echo 'test'; if ($code === 92 /* '\' */) {} if ($code === 92 /* '\' */ /* '\' */) {} if ($code === 92) /* '\' */ {} if ($code === 92) { /* '\' */ } if ( 1 // Comment ) { $a; } if ($var)// Comment { $a = 1; } if ( // Comment $var ) { $a = 1; } if ($var) // Comment $a = 1; else if ($var) // Comment $a = 2; else // Comment $a = 3; if (/* Comment*/ $var /* Comment*/) /* Comment*/ {}