original_string: public function hasItems()
      {
          if (count($this->data[1]) === 0) {
              return;
          }
          foreach ($this->data[1] as $key => $value) {
              $this->failIf(
                  !$this->itemExists(
                      array($this->data[0], array($key => $value))
                  )
              );
          }
      }
code: public function hasItems()
      {
          if (count($this->data[1]) === 0) {
              return;
          }
          foreach ($this->data[1] as $key => $value) {
              $this->failIf(
                  !$this->itemExists(
                      array($this->data[0], array($key => $value))
                  )
              );
          }
      }
code_tokens: public function hasItems ( ) { if ( count ( $ this -> data [ 1 ] ) === 0 ) { return ; } foreach ( $ this -> data [ 1 ] as $ key => $ value ) { $ this -> failIf ( ! $ this -> itemExists ( array ( $ this -> data [ 0 ] , array ( $ key => $ value ) ) ) ) ; } }
docstring: Assert an array has all key and value items.
  
  @syntax array ?:array has items ?:array
docstring_tokens: Assert an array has all key and value items .