Completed
Push — 1.8 ( b7094f...f1162e )
by
unknown
83:38 queued 61:44
created
src/Oro/Bundle/EntityConfigBundle/Form/Type/ConfigScopeType.php 2 patches
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -218,6 +218,9 @@  discard block
 block discarded – undo
218 218
         return $values;
219 219
     }
220 220
 
221
+    /**
222
+     * @param string $cssClass
223
+     */
221 224
     protected function appendClassAttr(array &$options, $cssClass)
222 225
     {
223 226
         if (isset($options['attr']['class'])) {
@@ -227,6 +230,9 @@  discard block
 block discarded – undo
227 230
         }
228 231
     }
229 232
 
233
+    /**
234
+     * @param string $name
235
+     */
230 236
     protected function setAttr(array &$options, $name, $value)
231 237
     {
232 238
         if (!isset($options['attr'])) {
Please login to merge, or discard this patch.
Unused Use Statements   -3 removed lines patch added patch discarded remove patch
@@ -4,13 +4,10 @@
 block discarded – undo
4 4
 
5 5
 use Symfony\Component\Form\AbstractType;
6 6
 use Symfony\Component\Form\FormBuilderInterface;
7
-
8 7
 use Oro\Bundle\EntityConfigBundle\Config\Id\EntityConfigId;
9 8
 use Oro\Bundle\EntityConfigBundle\Config\Id\FieldConfigId;
10
-
11 9
 use Oro\Bundle\EntityConfigBundle\Config\ConfigInterface;
12 10
 use Oro\Bundle\EntityConfigBundle\Config\ConfigManager;
13
-
14 11
 use Oro\Bundle\EntityConfigBundle\Entity\AbstractConfigModel;
15 12
 
16 13
 /**
Please login to merge, or discard this patch.
Bundle/EntityConfigBundle/Migration/UpdateEntityConfigFieldValueQuery.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -3,9 +3,7 @@
 block discarded – undo
3 3
 namespace Oro\Bundle\EntityConfigBundle\Migration;
4 4
 
5 5
 use Doctrine\DBAL\Types\Type;
6
-
7 6
 use Psr\Log\LoggerInterface;
8
-
9 7
 use Oro\Bundle\MigrationBundle\Migration\ArrayLogger;
10 8
 use Oro\Bundle\MigrationBundle\Migration\ParametrizedMigrationQuery;
11 9
 
Please login to merge, or discard this patch.
src/Oro/Bundle/EntityConfigBundle/Provider/ConfigProvider.php 2 patches
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -4,12 +4,10 @@
 block discarded – undo
4 4
 
5 5
 use Doctrine\Common\Util\ClassUtils;
6 6
 use Doctrine\ORM\PersistentCollection;
7
-
8 7
 use Oro\Bundle\EntityConfigBundle\Config\ConfigInterface;
9 8
 use Oro\Bundle\EntityConfigBundle\Config\Id\EntityConfigId;
10 9
 use Oro\Bundle\EntityConfigBundle\Config\Id\ConfigIdInterface;
11 10
 use Oro\Bundle\EntityConfigBundle\Config\Id\FieldConfigId;
12
-
13 11
 use Oro\Bundle\EntityConfigBundle\Config\ConfigManager;
14 12
 use Oro\Bundle\EntityConfigBundle\Exception\RuntimeException;
15 13
 
Please login to merge, or discard this patch.
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -159,7 +159,7 @@  discard block
 block discarded – undo
159 159
      * @param bool        $withHidden Set true if you need ids of all configurable entities,
160 160
      *                                including entities marked as mode="hidden"
161 161
      *
162
-     * @return array|ConfigInterface[]
162
+     * @return ConfigInterface[]
163 163
      */
164 164
     public function getConfigs($className = null, $withHidden = false)
165 165
     {
@@ -174,7 +174,7 @@  discard block
 block discarded – undo
174 174
      * Applies the callback to configuration data of all classes (if $className is not specified)
175 175
      * or all fields of the given $className.
176 176
      *
177
-     * @param callable    $callback The callback function to run for configuration data for each object
177
+     * @param \Closure    $callback The callback function to run for configuration data for each object
178 178
      * @param string|null $className
179 179
      * @param bool        $withHidden
180 180
      *
Please login to merge, or discard this patch.
src/Oro/Bundle/EntityConfigBundle/Tools/CommandExecutor.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -4,11 +4,9 @@
 block discarded – undo
4 4
 
5 5
 use Psr\Log\LoggerInterface;
6 6
 use Psr\Log\NullLogger;
7
-
8 7
 use Symfony\Component\HttpFoundation\File\Exception\FileNotFoundException;
9 8
 use Symfony\Component\Process\Process;
10 9
 use Symfony\Component\Process\ProcessBuilder;
11
-
12 10
 use Oro\Bundle\CacheBundle\Manager\OroDataCacheManager;
13 11
 use Oro\Bundle\InstallerBundle\Process\PhpExecutableFinder;
14 12
 
Please login to merge, or discard this patch.
src/Oro/Bundle/EntityConfigBundle/Tools/ConfigHelper.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,6 @@
 block discarded – undo
3 3
 namespace Oro\Bundle\EntityConfigBundle\Tools;
4 4
 
5 5
 use Doctrine\Common\Util\Inflector;
6
-
7 6
 use Oro\Bundle\UIBundle\Tools\EntityLabelBuilder;
8 7
 
9 8
 class ConfigHelper
Please login to merge, or discard this patch.
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -91,7 +91,7 @@
 block discarded – undo
91 91
      * Extracts module and entity names from the given full class name
92 92
      *
93 93
      * @param string $className
94
-     * @return array [$moduleName, $entityName]
94
+     * @return string[] [$moduleName, $entityName]
95 95
      */
96 96
     public static function getModuleAndEntityNames($className)
97 97
     {
Please login to merge, or discard this patch.
src/Oro/Bundle/EntityExtendBundle/Command/CacheCommand.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -3,12 +3,10 @@
 block discarded – undo
3 3
 namespace Oro\Bundle\EntityExtendBundle\Command;
4 4
 
5 5
 use Doctrine\Common\Cache\ClearableCache;
6
-
7 6
 use Symfony\Component\Console\Output\OutputInterface;
8 7
 use Symfony\Component\HttpKernel\KernelInterface;
9 8
 use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand;
10 9
 use Symfony\Bundle\FrameworkBundle\Console\Application as ConsoleApplication;
11
-
12 10
 use Oro\Bundle\CacheBundle\Provider\DirectoryAwareFileCacheInterface;
13 11
 use Oro\Bundle\EntityExtendBundle\Extend\EntityProxyGenerator;
14 12
 use Oro\Bundle\EntityExtendBundle\Tools\ExtendClassLoadingUtils;
Please login to merge, or discard this patch.
src/Oro/Bundle/EntityExtendBundle/Controller/ConfigEntityGridController.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -3,13 +3,11 @@
 block discarded – undo
3 3
 namespace Oro\Bundle\EntityExtendBundle\Controller;
4 4
 
5 5
 use FOS\RestBundle\Util\Codes;
6
-
7 6
 use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
8 7
 use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template;
9 8
 use Symfony\Bundle\FrameworkBundle\Controller\Controller;
10 9
 use Symfony\Component\HttpFoundation\JsonResponse;
11 10
 use Symfony\Component\HttpFoundation\Response;
12
-
13 11
 use Oro\Bundle\EntityConfigBundle\Config\ConfigManager;
14 12
 use Oro\Bundle\EntityConfigBundle\Entity\EntityConfigModel;
15 13
 use Oro\Bundle\EntityExtendBundle\EntityConfig\ExtendScope;
Please login to merge, or discard this patch.
src/Oro/Bundle/EntityExtendBundle/Controller/ConfigFieldGridController.php 1 patch
Unused Use Statements   -4 removed lines patch added patch discarded remove patch
@@ -5,18 +5,14 @@
 block discarded – undo
5 5
 use Symfony\Bundle\FrameworkBundle\Controller\Controller;
6 6
 use Symfony\Component\HttpFoundation\JsonResponse;
7 7
 use Symfony\Component\HttpFoundation\Response;
8
-
9 8
 use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
10 9
 use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template;
11
-
12 10
 use FOS\RestBundle\Util\Codes;
13
-
14 11
 use Oro\Bundle\EntityConfigBundle\Config\ConfigManager;
15 12
 use Oro\Bundle\EntityConfigBundle\Config\ConfigInterface;
16 13
 use Oro\Bundle\EntityConfigBundle\Entity\FieldConfigModel;
17 14
 use Oro\Bundle\EntityConfigBundle\Entity\EntityConfigModel;
18 15
 use Oro\Bundle\EntityConfigBundle\Provider\ConfigProvider;
19
-
20 16
 use Oro\Bundle\EntityExtendBundle\Form\Type\FieldType;
21 17
 use Oro\Bundle\EntityExtendBundle\EntityConfig\ExtendScope;
22 18
 use Oro\Bundle\EntityExtendBundle\Tools\ExtendHelper;
Please login to merge, or discard this patch.
src/Oro/Bundle/EntityExtendBundle/Entity/Manager/AssociationManager.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
      * @param string $attribute The name of the entity config attribute which indicates
104 104
      *                          whether the association is enabled or not
105 105
      *
106
-     * @return callable
106
+     * @return \Closure
107 107
      */
108 108
     public function getSingleOwnerFilter($scope, $attribute = 'enabled')
109 109
     {
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
      * @param string $attribute The name of the entity config attribute which is used to store
122 122
      *                          enabled associations
123 123
      *
124
-     * @return callable
124
+     * @return \Closure
125 125
      */
126 126
     public function getMultiOwnerFilter($scope, $attribute)
127 127
     {
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,6 @@
 block discarded – undo
4 4
 
5 5
 use Doctrine\ORM\Query\ResultSetMapping;
6 6
 use Doctrine\DBAL\Types\Type;
7
-
8 7
 use Oro\Bundle\EntityBundle\ORM\DoctrineHelper;
9 8
 use Oro\Bundle\EntityBundle\ORM\QueryUtils;
10 9
 use Oro\Bundle\EntityBundle\ORM\SqlQueryBuilder;
Please login to merge, or discard this patch.