1414
1515namespace TechDivision \Import \Callbacks ;
1616
17+ use Exception ;
1718use TechDivision \Import \Observers \ObserverInterface ;
1819
1920/**
@@ -108,14 +109,14 @@ protected function appendExceptionSuffix($message = null, $filename = null, $lin
108109 * line number and column name and use it for a detailed exception message.
109110 *
110111 * @param string $columnName The column name that should be resolved
111- * @param \ Exception $parent The exception we want to wrap
112+ * @param Exception|null $parent The exception we want to wrap
112113 * @param string $className The class name of the exception type we want to wrap the parent one
113114 *
114- * @return \ Exception the wrapped exception
115+ * @return Exception the wrapped exception
115116 */
116117 protected function wrapException (
117118 $ columnName ,
118- \ Exception $ parent = null ,
119+ ? Exception $ parent = null ,
119120 $ className = '\TechDivision\Import\Exceptions\WrappedColumnException '
120121 ) {
121122 return $ this ->getSubject ()->wrapException ($ columnName , $ parent , $ className );
@@ -130,7 +131,7 @@ protected function isDebugMode()
130131 {
131132 return $ this ->getSubject ()->isDebugMode ();
132133 }
133-
134+
134135 /**
135136 * Queries whether or not strict mode is enabled or not, default is True.
136137 * Backward compatibility
@@ -181,7 +182,7 @@ protected function mergeAttributesRecursive(array $status)
181182 *
182183 * @return mixed|null The, almost formatted, value
183184 */
184- protected function getValue ($ name , $ default = null , callable $ callback = null )
185+ protected function getValue ($ name , $ default = null , ? callable $ callback = null )
185186 {
186187 return $ this ->getSubject ()->getValue ($ name , $ default , $ callback );
187188 }
@@ -192,7 +193,7 @@ protected function getValue($name, $default = null, callable $callback = null)
192193 * @param string $storeViewCode The store view code to return the store ID for
193194 *
194195 * @return integer The ID of the store with the passed ID
195- * @throws \ Exception Is thrown, if the store with the actual code is not available
196+ * @throws Exception Is thrown, if the store with the actual code is not available
196197 */
197198 protected function getStoreId ($ storeViewCode )
198199 {
@@ -206,7 +207,7 @@ protected function getStoreId($storeViewCode)
206207 * @param string|null $default The default store view code to use, if no store view code is set in the CSV file
207208 *
208209 * @return integer The ID of the actual store
209- * @throws \ Exception Is thrown, if the store with the actual code is not available
210+ * @throws Exception Is thrown, if the store with the actual code is not available
210211 */
211212 protected function getRowStoreId ($ default = null )
212213 {
0 commit comments