original_string: protected function buildStacks()
      {
          $stacks   = [];
          $stackNo  = 0;
          $currSize = 0;
  
          foreach ($this->requests as $request) {
              if ($currSize === $this->stackSize) {
                  $currSize = 0;
                  $stackNo++;
              }
  
              $stacks[$stackNo][] = $request;
              $currSize++;
          }
  
          return $stacks;
      }
code: protected function buildStacks()
      {
          $stacks   = [];
          $stackNo  = 0;
          $currSize = 0;
  
          foreach ($this->requests as $request) {
              if ($currSize === $this->stackSize) {
                  $currSize = 0;
                  $stackNo++;
              }
  
              $stacks[$stackNo][] = $request;
              $currSize++;
          }
  
          return $stacks;
      }
code_tokens: protected function buildStacks ( ) { $ stacks = [ ] ; $ stackNo = 0 ; $ currSize = 0 ; foreach ( $ this -> requests as $ request ) { if ( $ currSize === $ this -> stackSize ) { $ currSize = 0 ; $ stackNo ++ ; } $ stacks [ $ stackNo ] [ ] = $ request ; $ currSize ++ ; } return $ stacks ; }
docstring: Builds stacks of requests.
  
  @return array
docstring_tokens: Builds stacks of requests .