File tree Expand file tree Collapse file tree 1 file changed +4
-9
lines changed
src/integready/firstdataapi Expand file tree Collapse file tree 1 file changed +4
-9
lines changed Original file line number Diff line number Diff line change @@ -83,7 +83,7 @@ class FirstData
8383 protected $ apiKey = '' ;
8484
8585 /**
86- * @var boolean - set whether we are in a test mode or not
86+ * @var bool - set whether we are in a test mode or not
8787 */
8888 public static $ testMode = false ;
8989
@@ -244,7 +244,7 @@ public function setApiKey($key): self
244244 /**
245245 * Set whether we are in a test mode or not
246246 *
247- * @param boolean $value
247+ * @param bool $value
248248 *
249249 * @return void
250250 */
@@ -682,7 +682,7 @@ protected function doRequest($ch = null): string
682682
683683 /**
684684 * Did we encounter an error?
685- * @return boolean
685+ * @return bool
686686 */
687687 public function isError (): bool
688688 {
@@ -978,7 +978,7 @@ public function getErrorMessage(): string
978978 /**
979979 * Find a key inside a multi dim. array
980980 *
981- * @param array|object $data
981+ * @param array $data
982982 * @param string $key
983983 *
984984 * @return mixed
@@ -997,11 +997,6 @@ protected function getValueByKey($data, $key)
997997 }
998998 }
999999
1000- if ($ data instanceof stdClass) {
1001- return $ data ->{$ key } ?? null ;
1002- }
1003-
1004- // Nothing matched
10051000 return null ;
10061001 }
10071002
You can’t perform that action at this time.
0 commit comments