@@ -45,7 +45,7 @@ public function configure($bodyType = null)
4545 *
4646 * @param string $username the user who owns the repository
4747 * @param string $repository the name of the repository
48- * @param null| string $reference reference to a branch or commit
48+ * @param string|null $reference reference to a branch or commit
4949 *
5050 * @return array information for README file
5151 */
@@ -63,8 +63,8 @@ public function readme($username, $repository, $reference = null)
6363 *
6464 * @param string $username the user who owns the repository
6565 * @param string $repository the name of the repository
66- * @param null| string $path path to file or directory
67- * @param null| string $reference reference to a branch or commit
66+ * @param string|null $path path to file or directory
67+ * @param string|null $reference reference to a branch or commit
6868 *
6969 * @return array|string information for file | information for each item in directory
7070 */
@@ -90,7 +90,7 @@ public function show($username, $repository, $path = null, $reference = null)
9090 * @param string $path path to file
9191 * @param string $content contents of the new file
9292 * @param string $message the commit message
93- * @param null| string $branch name of a branch
93+ * @param string|null $branch name of a branch
9494 * @param null|array $committer information about the committer
9595 *
9696 * @throws MissingArgumentException
@@ -126,7 +126,7 @@ public function create($username, $repository, $path, $content, $message, $branc
126126 * @param string $username the user who owns the repository
127127 * @param string $repository the name of the repository
128128 * @param string $path path of file to check
129- * @param null| string $reference reference to a branch or commit
129+ * @param string|null $reference reference to a branch or commit
130130 *
131131 * @return bool
132132 */
@@ -166,7 +166,7 @@ public function exists($username, $repository, $path, $reference = null)
166166 * @param string $content contents of the new file
167167 * @param string $message the commit message
168168 * @param string $sha blob SHA of the file being replaced
169- * @param null| string $branch name of a branch
169+ * @param string|null $branch name of a branch
170170 * @param null|array $committer information about the committer
171171 *
172172 * @throws MissingArgumentException
@@ -207,7 +207,7 @@ public function update($username, $repository, $path, $content, $message, $sha,
207207 * @param string $path path to file
208208 * @param string $message the commit message
209209 * @param string $sha blob SHA of the file being deleted
210- * @param null| string $branch name of a branch
210+ * @param string|null $branch name of a branch
211211 * @param null|array $committer information about the committer
212212 *
213213 * @throws MissingArgumentException
@@ -245,7 +245,7 @@ public function rm($username, $repository, $path, $message, $sha, $branch = null
245245 * @param string $username the user who owns the repository
246246 * @param string $repository the name of the repository
247247 * @param string $format format of archive: tarball or zipball
248- * @param null| string $reference reference to a branch or commit
248+ * @param string|null $reference reference to a branch or commit
249249 *
250250 * @return string repository archive binary data
251251 */
@@ -265,12 +265,12 @@ public function archive($username, $repository, $format, $reference = null)
265265 * @param string $username the user who owns the repository
266266 * @param string $repository the name of the repository
267267 * @param string $path path to file
268- * @param null| string $reference reference to a branch or commit
268+ * @param string|null $reference reference to a branch or commit
269269 *
270270 * @throws InvalidArgumentException If $path is not a file or if its encoding is different from base64
271271 * @throws ErrorException If $path doesn't include a 'content' index
272272 *
273- * @return null| string content of file, or null in case of base64_decode failure
273+ * @return string|null content of file, or null in case of base64_decode failure
274274 */
275275 public function download ($ username , $ repository , $ path , $ reference = null )
276276 {
0 commit comments