Skip to content

Commit

Permalink
chore: fix php lint
Browse files Browse the repository at this point in the history
  • Loading branch information
bshaffer committed Dec 28, 2022
1 parent 0ca97a1 commit 32c665d
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 19 deletions.
4 changes: 2 additions & 2 deletions php/src/Google/Protobuf/Internal/AnyBase.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public function unpack()
/**
* The type_url will be created according to the given message’s type and
* the value is encoded data from the given message..
* @param message: A proto message.
* @param Message $msg A proto message.
*/
public function pack($msg)
{
Expand All @@ -73,7 +73,7 @@ public function pack($msg)
/**
* This method returns whether the type_url in any_message is corresponded
* to the given class.
* @param klass: The fully qualified PHP class name of a proto message type.
* @param string $klass The fully qualified PHP class name of a proto message type.
*/
public function is($klass)
{
Expand Down
11 changes: 5 additions & 6 deletions php/src/Google/Protobuf/Internal/CodedInputStream.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ private function consumedEntireMessage()
/**
* Read uint32 into $var. Advance buffer with consumed bytes. If the
* contained varint is larger than 32 bits, discard the high order bits.
* @param $var.
* @param $var
*/
public function readVarint32(&$var)
{
Expand Down Expand Up @@ -142,7 +142,7 @@ public function readVarint32(&$var)

/**
* Read Uint64 into $var. Advance buffer with consumed bytes.
* @param $var.
* @param $var
*/
public function readVarint64(&$var)
{
Expand Down Expand Up @@ -208,7 +208,7 @@ public function readVarint64(&$var)
/**
* Read int into $var. If the result is larger than the largest integer, $var
* will be -1. Advance buffer with consumed bytes.
* @param $var.
* @param $var
*/
public function readVarintSizeAsInt(&$var)
{
Expand All @@ -222,7 +222,7 @@ public function readVarintSizeAsInt(&$var)
/**
* Read 32-bit unsigned integer to $var. If the buffer has less than 4 bytes,
* return false. Advance buffer with consumed bytes.
* @param $var.
* @param $var
*/
public function readLittleEndian32(&$var)
{
Expand All @@ -238,7 +238,7 @@ public function readLittleEndian32(&$var)
/**
* Read 64-bit unsigned integer to $var. If the buffer has less than 8 bytes,
* return false. Advance buffer with consumed bytes.
* @param $var.
* @param $var
*/
public function readLittleEndian64(&$var)
{
Expand All @@ -261,7 +261,6 @@ public function readLittleEndian64(&$var)

/**
* Read tag into $var. Advance buffer with consumed bytes.
* @param $var.
*/
public function readTag()
{
Expand Down
5 changes: 2 additions & 3 deletions php/src/Google/Protobuf/Internal/MapFieldIter.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,8 @@ class MapFieldIter implements \Iterator
/**
* Create iterator instance for MapField.
*
* @param MapField The MapField instance for which this iterator is
* created.
* @param GPBType Map key type.
* @param array $container
* @param GPBType $key_type Map key type.
* @ignore
*/
public function __construct($container, $key_type)
Expand Down
13 changes: 7 additions & 6 deletions php/src/Google/Protobuf/Internal/Message.php
Original file line number Diff line number Diff line change
Expand Up @@ -544,7 +544,7 @@ private function parseFieldFromStream($tag, $input, $field)

/**
* Clear all containing fields.
* @return null.
* @return null
*/
public function clear()
{
Expand Down Expand Up @@ -654,7 +654,7 @@ public function clear()

/**
* Clear all unknown fields previously parsed.
* @return null.
* @return null
*/
public function discardUnknownFields()
{
Expand Down Expand Up @@ -700,7 +700,7 @@ public function discardUnknownFields()
* sub-messages are deep-copied.
*
* @param object $msg Protobuf message to be merged from.
* @return null.
* @return null
*/
public function mergeFrom($msg)
{
Expand Down Expand Up @@ -767,7 +767,7 @@ public function mergeFrom($msg)
* specified message.
*
* @param string $data Binary protobuf data.
* @return null.
* @return null
* @throws \Exception Invalid data.
*/
public function mergeFromString($data)
Expand All @@ -785,7 +785,8 @@ public function mergeFromString($data)
* specified message.
*
* @param string $data Json protobuf data.
* @return null.
* @param bool $ignore_unknown
* @return null
* @throws \Exception Invalid data.
*/
public function mergeFromJsonString($data, $ignore_unknown = false)
Expand Down Expand Up @@ -1053,7 +1054,7 @@ private function convertJsonValueToProtoValue(
* must receive data that is either a string or a StringValue object.
*
* @param array $array An array containing message properties and values.
* @return null.
* @return null
*/
protected function mergeFromArray(array $array)
{
Expand Down
3 changes: 1 addition & 2 deletions php/src/Google/Protobuf/Internal/RepeatedFieldIter.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,7 @@ class RepeatedFieldIter implements \Iterator
/**
* Create iterator instance for RepeatedField.
*
* @param RepeatedField The RepeatedField instance for which this iterator
* is created.
* @param array $container
* @ignore
*/
public function __construct($container)
Expand Down

0 comments on commit 32c665d

Please sign in to comment.