original_string: protected static function getParmas($row, $closeChar)
      {
          $params = '';
          $rest = '';
          $taken = false;
          $string = false; // 1 "" - 2 ''
          $opened = 0; // 1 "" - 2 ''
          //
          for ($j = 0; $j < strlen($row); $j++) {
              //
              if ($row[$j] == "'" && !$string) {
                  $string = 2;
              } elseif ($row[$j] == '"' && !$string) {
                  $string = 1;
              } elseif ($row[$j] == "'" && $string) {
                  $string = false;
              } elseif ($row[$j] == '"' && $string) {
                  $string = false;
              }
              //
              if ($row[$j] == '(') {
                  $opened++;
              } elseif ($row[$j] == ')') {
                  $opened--;
              }
              //
              if (!$string && $opened == 0 && $row[$j] == $closeChar && !$taken) {
                  $taken = true;
              } elseif (!$taken) {
                  $params .= $row[$j];
              } elseif ($taken) {
                  $rest .= $row[$j];
              }
          }
          //
          return ['params' => $params, 'rest' => $rest];
      }
code: protected static function getParmas($row, $closeChar)
      {
          $params = '';
          $rest = '';
          $taken = false;
          $string = false; // 1 "" - 2 ''
          $opened = 0; // 1 "" - 2 ''
          //
          for ($j = 0; $j < strlen($row); $j++) {
              //
              if ($row[$j] == "'" && !$string) {
                  $string = 2;
              } elseif ($row[$j] == '"' && !$string) {
                  $string = 1;
              } elseif ($row[$j] == "'" && $string) {
                  $string = false;
              } elseif ($row[$j] == '"' && $string) {
                  $string = false;
              }
              //
              if ($row[$j] == '(') {
                  $opened++;
              } elseif ($row[$j] == ')') {
                  $opened--;
              }
              //
              if (!$string && $opened == 0 && $row[$j] == $closeChar && !$taken) {
                  $taken = true;
              } elseif (!$taken) {
                  $params .= $row[$j];
              } elseif ($taken) {
                  $rest .= $row[$j];
              }
          }
          //
          return ['params' => $params, 'rest' => $rest];
      }
code_tokens: protected static function getParmas ( $ row , $ closeChar ) { $ params = '' ; $ rest = '' ; $ taken = false ; $ string = false ; // 1 "" - 2 '' $ opened = 0 ; // 1 "" - 2 '' // for ( $ j = 0 ; $ j < strlen ( $ row ) ; $ j ++ ) { // if ( $ row [ $ j ] == "'" && ! $ string ) { $ string = 2 ; } elseif ( $ row [ $ j ] == '"' && ! $ string ) { $ string = 1 ; } elseif ( $ row [ $ j ] == "'" && $ string ) { $ string = false ; } elseif ( $ row [ $ j ] == '"' && $ string ) { $ string = false ; } // if ( $ row [ $ j ] == '(' ) { $ opened ++ ; } elseif ( $ row [ $ j ] == ')' ) { $ opened -- ; } // if ( ! $ string && $ opened == 0 && $ row [ $ j ] == $ closeChar && ! $ taken ) { $ taken = true ; } elseif ( ! $ taken ) { $ params .= $ row [ $ j ] ; } elseif ( $ taken ) { $ rest .= $ row [ $ j ] ; } } // return [ 'params' => $ params , 'rest' => $ rest ] ; }
docstring: Get Fucntion params and the rest of script.
  
  @var string, string
  
  @return array
docstring_tokens: Get Fucntion params and the rest of script .