original_string: private function parseTexturesProperties($propertiesArray)
      {
          foreach($propertiesArray as $property) {
              if($property['name'] == 'textures') {
                  $texturesJSON = json_decode(base64_decode($property['value']), true);
  
                  $properties = new PlayerProperties(
                      $texturesJSON['timestamp'],
                      $texturesJSON['profileId'],
                      $texturesJSON['profileName']
                  );
  
                  if(isset($texturesJSON['isPublic'])) {
                      $properties->setPublic($texturesJSON['isPublic']);
                  }
  
                  if(array_key_exists('SKIN', $texturesJSON['textures'])) {
                      $properties->setSkinTexture($texturesJSON['textures']['SKIN']['url']);
                  }
                  if(array_key_exists('CAPE', $texturesJSON['textures'])) {
                      $properties->setCapeTexture($texturesJSON['textures']['CAPE']['url']);
                  }
  
                  return $properties;
              }
          }
          return null;
      }
code: private function parseTexturesProperties($propertiesArray)
      {
          foreach($propertiesArray as $property) {
              if($property['name'] == 'textures') {
                  $texturesJSON = json_decode(base64_decode($property['value']), true);
  
                  $properties = new PlayerProperties(
                      $texturesJSON['timestamp'],
                      $texturesJSON['profileId'],
                      $texturesJSON['profileName']
                  );
  
                  if(isset($texturesJSON['isPublic'])) {
                      $properties->setPublic($texturesJSON['isPublic']);
                  }
  
                  if(array_key_exists('SKIN', $texturesJSON['textures'])) {
                      $properties->setSkinTexture($texturesJSON['textures']['SKIN']['url']);
                  }
                  if(array_key_exists('CAPE', $texturesJSON['textures'])) {
                      $properties->setCapeTexture($texturesJSON['textures']['CAPE']['url']);
                  }
  
                  return $properties;
              }
          }
          return null;
      }
code_tokens: private function parseTexturesProperties ( $ propertiesArray ) { foreach ( $ propertiesArray as $ property ) { if ( $ property [ 'name' ] == 'textures' ) { $ texturesJSON = json_decode ( base64_decode ( $ property [ 'value' ] ) , true ) ; $ properties = new PlayerProperties ( $ texturesJSON [ 'timestamp' ] , $ texturesJSON [ 'profileId' ] , $ texturesJSON [ 'profileName' ] ) ; if ( isset ( $ texturesJSON [ 'isPublic' ] ) ) { $ properties -> setPublic ( $ texturesJSON [ 'isPublic' ] ) ; } if ( array_key_exists ( 'SKIN' , $ texturesJSON [ 'textures' ] ) ) { $ properties -> setSkinTexture ( $ texturesJSON [ 'textures' ] [ 'SKIN' ] [ 'url' ] ) ; } if ( array_key_exists ( 'CAPE' , $ texturesJSON [ 'textures' ] ) ) { $ properties -> setCapeTexture ( $ texturesJSON [ 'textures' ] [ 'CAPE' ] [ 'url' ] ) ; } return $ properties ; } } return null ; }
docstring: Checks the array for a properties with name 'textures' and creates a PlayerProperties for it
  
  @param $propertiesArray array the array of properties
  @return PlayerProperties the parsed properties or null if textures property not found
docstring_tokens: Checks the array for a properties with name textures and creates a PlayerProperties for it