File tree Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -87,9 +87,21 @@ public function all(array $parameters = [])
8787 * @param int $project_id
8888 * @return mixed
8989 */
90- public function show ($ project_id )
90+ public function show ($ project_id, array $ parameters = [] )
9191 {
92- return $ this ->get ('projects/ ' .$ this ->encodePath ($ project_id ));
92+ $ resolver = $ this ->createOptionsResolver ();
93+ $ booleanNormalizer = function (Options $ resolver , $ value ) {
94+ return $ value ? 'true ' : 'false ' ;
95+ };
96+ $ resolver ->setDefined ('statistics ' )
97+ ->setAllowedTypes ('statistics ' , 'bool ' )
98+ ->setNormalizer ('statistics ' , $ booleanNormalizer )
99+ ;
100+ $ resolver ->setDefined ('with_custom_attributes ' )
101+ ->setAllowedTypes ('with_custom_attributes ' , 'bool ' )
102+ ->setNormalizer ('with_custom_attributes ' , $ booleanNormalizer )
103+ ;
104+ return $ this ->get ('projects/ ' .$ this ->encodePath ($ project_id ), $ resolver ->resolve ($ parameters ));
93105 }
94106
95107 /**
You can’t perform that action at this time.
0 commit comments