Example #1
0
 /**
  * @param string             $reason
  * @param Template|null|void $template
  * @return void
  * @throws BrainyStrictModeException
  */
 public function assertIsNotStrict($reason, $template = null)
 {
     if (Brainy::$strict_mode || $template && $template->isStrictMode()) {
         $this->trigger_template_error('Strict Mode: ' . $reason, null, '\\Box\\Brainy\\Exceptions\\BrainyStrictModeException');
     }
     if ($this->parser && $this->parser->isStrictMode()) {
         $this->trigger_template_error('Strict Mode: ' . $reason, null, '\\Box\\Brainy\\Exceptions\\BrainyStrictModeException');
     }
 }