original_string: public function actionGetWarehouses() {
  
          $street = $_GET['street'];
  
          $warehouses = $this->getResponse('AddressGeneral', 'getWarehouses',
              ['CityName' => $_GET['CityName']]);
  
          $warehousesByStreet = [];
          foreach ($warehouses->data['data'] as $warehouse) {
              if (substr_count(mb_strtolower($warehouse['Description']), mb_strtolower($street)) != 0 ||
                  substr_count(mb_strtolower($warehouse['DescriptionRu']), mb_strtolower($street))) {
                  $warehousesByStreet[] = $warehouse;
              }
          }
  
          return json_encode($warehousesByStreet);
      }
code: public function actionGetWarehouses() {
  
          $street = $_GET['street'];
  
          $warehouses = $this->getResponse('AddressGeneral', 'getWarehouses',
              ['CityName' => $_GET['CityName']]);
  
          $warehousesByStreet = [];
          foreach ($warehouses->data['data'] as $warehouse) {
              if (substr_count(mb_strtolower($warehouse['Description']), mb_strtolower($street)) != 0 ||
                  substr_count(mb_strtolower($warehouse['DescriptionRu']), mb_strtolower($street))) {
                  $warehousesByStreet[] = $warehouse;
              }
          }
  
          return json_encode($warehousesByStreet);
      }
code_tokens: public function actionGetWarehouses ( ) { $ street = $ _GET [ 'street' ] ; $ warehouses = $ this -> getResponse ( 'AddressGeneral' , 'getWarehouses' , [ 'CityName' => $ _GET [ 'CityName' ] ] ) ; $ warehousesByStreet = [ ] ; foreach ( $ warehouses -> data [ 'data' ] as $ warehouse ) { if ( substr_count ( mb_strtolower ( $ warehouse [ 'Description' ] ) , mb_strtolower ( $ street ) ) != 0 || substr_count ( mb_strtolower ( $ warehouse [ 'DescriptionRu' ] ) , mb_strtolower ( $ street ) ) ) { $ warehousesByStreet [ ] = $ warehouse ; } } return json_encode ( $ warehousesByStreet ) ; }
docstring: Gets warehouses by city and street.
  @return string
docstring_tokens: Gets warehouses by city and street .