original_string: public static function setGlob_step()
      {
          $project = $_POST['project_name'];
          $name = $_POST['dev_name'];
          //
          if (isset($_POST['ckeck_loggin'])) {
              $loggin = true;
          } else {
              $loggin = false;
          }
          //
          if (isset($_POST['ckeck_maintenance'])) {
              $maintenance = 'true';
          } else {
              $maintenance = 'false';
          }
          //
          if (isset($_POST['ckeck_search'])) {
              $robot = true;
          } else {
              $robot = false;
          }
          //
          if (!Application::$isTest) {
              $appCont = App::set($name, $project, true);
              $translatorCont = Translator::set('en');
              $logginCont = Loggin::set($loggin);
              Robots::set($robot);
              //
              file_put_contents(Application::$root.'config/app.php', $appCont, 0);
              file_put_contents(Application::$root.'config/lang.php', $translatorCont, 0);
              file_put_contents(Application::$root.'config/loggin.php', $logginCont, 0);
              //
              echo 'true';
          }
      }
code: public static function setGlob_step()
      {
          $project = $_POST['project_name'];
          $name = $_POST['dev_name'];
          //
          if (isset($_POST['ckeck_loggin'])) {
              $loggin = true;
          } else {
              $loggin = false;
          }
          //
          if (isset($_POST['ckeck_maintenance'])) {
              $maintenance = 'true';
          } else {
              $maintenance = 'false';
          }
          //
          if (isset($_POST['ckeck_search'])) {
              $robot = true;
          } else {
              $robot = false;
          }
          //
          if (!Application::$isTest) {
              $appCont = App::set($name, $project, true);
              $translatorCont = Translator::set('en');
              $logginCont = Loggin::set($loggin);
              Robots::set($robot);
              //
              file_put_contents(Application::$root.'config/app.php', $appCont, 0);
              file_put_contents(Application::$root.'config/lang.php', $translatorCont, 0);
              file_put_contents(Application::$root.'config/loggin.php', $logginCont, 0);
              //
              echo 'true';
          }
      }
code_tokens: public static function setGlob_step ( ) { $ project = $ _POST [ 'project_name' ] ; $ name = $ _POST [ 'dev_name' ] ; // if ( isset ( $ _POST [ 'ckeck_loggin' ] ) ) { $ loggin = true ; } else { $ loggin = false ; } // if ( isset ( $ _POST [ 'ckeck_maintenance' ] ) ) { $ maintenance = 'true' ; } else { $ maintenance = 'false' ; } // if ( isset ( $ _POST [ 'ckeck_search' ] ) ) { $ robot = true ; } else { $ robot = false ; } // if ( ! Application :: $ isTest ) { $ appCont = App :: set ( $ name , $ project , true ) ; $ translatorCont = Translator :: set ( 'en' ) ; $ logginCont = Loggin :: set ( $ loggin ) ; Robots :: set ( $ robot ) ; // file_put_contents ( Application :: $ root . 'config/app.php' , $ appCont , 0 ) ; file_put_contents ( Application :: $ root . 'config/lang.php' , $ translatorCont , 0 ) ; file_put_contents ( Application :: $ root . 'config/loggin.php' , $ logginCont , 0 ) ; // echo 'true' ; } }
docstring: set global setup.
docstring_tokens: set global setup .