Переглянути джерело

Revert "optimization to call `$this->getOption('code')` only once"

This reverts commit 451616fa6550199c1d089de9ba9952556e6c8f5e.

Conflicts:
	Admin/BaseFieldDescription.php
Thomas Rabaix 11 роки тому
батько
коміт
3578e37098
1 змінених файлів з 2 додано та 2 видалено
  1. 2 2
      Admin/BaseFieldDescription.php

+ 2 - 2
Admin/BaseFieldDescription.php

@@ -331,8 +331,8 @@ abstract class BaseFieldDescription implements FieldDescriptionInterface
         $parameters = array();
         $parameters = array();
 
 
         // prefer method name given in the code option
         // prefer method name given in the code option
-        if ($code) {
-            $getters[] = $code;
+        if ($this->getOption('code')) {
+            $getters[] = $this->getOption('code');
         }
         }
         // parameters for the method given in the code option
         // parameters for the method given in the code option
         if($this->getOption('parameters')){
         if($this->getOption('parameters')){