1313class CustomProperties extends AbstractApi
1414{
1515 /**
16- * @param string $owner The account owner of the repository.
16+ * @param string $owner The account owner of the repository.
1717 * @param string $repository The name of the repository.
1818 * @return array|string
1919 */
2020 public function all (string $ owner , string $ repository )
2121 {
22- return $ this ->get ('/repos/ ' . rawurlencode ($ owner ) . '/ ' . rawurlencode ($ repository ) . '/properties/values ' );
22+ return $ this ->get ('/repos/ ' . rawurlencode ($ owner ). '/ ' . rawurlencode ($ repository ). '/properties/values ' );
2323 }
2424
2525 /**
26- * @param string $owner The account owner of the repository.
27- * @param string $repository The name of the repository.
26+ * @param string $owner The account owner of the repository.
27+ * @param string $repository The name of the repository.
2828 * @param string $propertyName The name of the property to retrieve.
29- * @return array
29+ *
3030 * @throws RuntimeException if the property is not found.
31+ *
32+ * @return array
3133 */
3234 public function show (string $ owner , string $ repository , string $ propertyName ): array
3335 {
3436 $ allProperties = $ this ->all ($ owner , $ repository );
3537
36- if (!is_array ($ allProperties )) {
38+ if (!is_array ($ allProperties )) {
3739 throw new RuntimeException ('Unexpected response from GitHub API. ' );
3840 }
3941
@@ -47,13 +49,13 @@ public function show(string $owner, string $repository, string $propertyName): a
4749 }
4850
4951 /**
50- * @param string $owner The account owner of the repository.
51- * @param string $repository The name of the repository.
52+ * @param string $owner The account owner of the repository.
53+ * @param string $repository The name of the repository.
5254 * @param array<string, mixed> $params
5355 * @return array|string
5456 */
5557 public function update (string $ owner , string $ repository , array $ params )
5658 {
57- return $ this ->patch ('/repos/ ' . rawurlencode ($ owner ) . '/ ' . rawurlencode ($ repository ) . '/properties/values ' , $ params );
59+ return $ this ->patch ('/repos/ ' . rawurlencode ($ owner ). '/ ' . rawurlencode ($ repository ). '/properties/values ' , $ params );
5860 }
5961}
0 commit comments