original_string: private function validatePayloadSize(array $rawData, $fieldName, $maxSize)
      {
          if (!isset($rawData[$fieldName])) {
              return;
          }
          if (strlen(json_encode($rawData[$fieldName])) > $maxSize) {
              throw new Exception(
                  ucfirst($fieldName)." payload is to big (max {$maxSize} bytes)",
                  Exception::MALFORMED_REQUEST
              );
          }
      }
code: private function validatePayloadSize(array $rawData, $fieldName, $maxSize)
      {
          if (!isset($rawData[$fieldName])) {
              return;
          }
          if (strlen(json_encode($rawData[$fieldName])) > $maxSize) {
              throw new Exception(
                  ucfirst($fieldName)." payload is to big (max {$maxSize} bytes)",
                  Exception::MALFORMED_REQUEST
              );
          }
      }
code_tokens: private function validatePayloadSize ( array $ rawData , $ fieldName , $ maxSize ) { if ( ! isset ( $ rawData [ $ fieldName ] ) ) { return ; } if ( strlen ( json_encode ( $ rawData [ $ fieldName ] ) ) > $ maxSize ) { throw new Exception ( ucfirst ( $ fieldName ) . " payload is to big (max {$maxSize} bytes)" , Exception :: MALFORMED_REQUEST ) ; } }
docstring: Validate size of json representation of passed payload
  
  @param array $rawData
  @param string $fieldName
  @param int $maxSize
  @throws \CodeMonkeysRu\GCM\Exception
  @return void
docstring_tokens: Validate size of json representation of passed payload