@@ -69,7 +69,7 @@ |
||
| 69 | 69 | |
| 70 | 70 | $newValue = array_filter( |
| 71 | 71 | $inheritanceTargets, |
| 72 | - function ($inheritanceTarget) { |
|
| 72 | + function($inheritanceTarget) { |
|
| 73 | 73 | return $inheritanceTarget['target'] !== Opportunity::class; |
| 74 | 74 | } |
| 75 | 75 | ); |
@@ -226,7 +226,7 @@ discard block |
||
| 226 | 226 | $isChanged = true; |
| 227 | 227 | $value = $this->filterValue($filter); |
| 228 | 228 | $stringType = isset($filter['criterion']['data']['type']) |
| 229 | - ? (int) $filter['criterion']['data']['type'] |
|
| 229 | + ? (int)$filter['criterion']['data']['type'] |
|
| 230 | 230 | : null; |
| 231 | 231 | // If string operator expects operand to be array |
| 232 | 232 | // parse value off the db representation |
@@ -270,7 +270,7 @@ discard block |
||
| 270 | 270 | } |
| 271 | 271 | |
| 272 | 272 | $search = ArrayUtil::find( |
| 273 | - function ($column) use ($config, $key) { |
|
| 273 | + function($column) use ($config, $key) { |
|
| 274 | 274 | return preg_match(sprintf('/%s$/', preg_quote($column)), $config[$key]); |
| 275 | 275 | }, |
| 276 | 276 | array_keys($this->fixes['removedFields']) |
@@ -333,7 +333,7 @@ discard block |
||
| 333 | 333 | } |
| 334 | 334 | |
| 335 | 335 | return ArrayUtil::some( |
| 336 | - function ($column) use ($filter) { |
|
| 336 | + function($column) use ($filter) { |
|
| 337 | 337 | return preg_match(sprintf('/%s$/', preg_quote($column)), $filter['columnName']); |
| 338 | 338 | }, |
| 339 | 339 | $this->fixes['chainFilters'] |
@@ -131,7 +131,7 @@ discard block |
||
| 131 | 131 | ]; |
| 132 | 132 | |
| 133 | 133 | $sql = 'UPDATE oro_workflow_step SET name = :new_name, label = :new_label, is_final = :final' . |
| 134 | - ' WHERE workflow_name = :workflow_name AND name = :old_name'; |
|
| 134 | + ' WHERE workflow_name = :workflow_name AND name = :old_name'; |
|
| 135 | 135 | foreach ($params as $param) { |
| 136 | 136 | $this->logQuery($logger, $sql, $param, $types); |
| 137 | 137 | $this->connection->executeUpdate($sql, $param, $types); |
@@ -156,7 +156,7 @@ discard block |
||
| 156 | 156 | 'step_to_id' => Type::INTEGER, |
| 157 | 157 | ]; |
| 158 | 158 | $sql = 'DELETE FROM oro_workflow_transition_log' . |
| 159 | - ' WHERE step_from_id = :step_from_id AND step_to_id = :step_to_id'; |
|
| 159 | + ' WHERE step_from_id = :step_from_id AND step_to_id = :step_to_id'; |
|
| 160 | 160 | $this->logQuery($logger, $sql, $params, $types); |
| 161 | 161 | if (!$dryRun) { |
| 162 | 162 | $this->connection->executeUpdate($sql, $params, $types); |
@@ -172,7 +172,7 @@ discard block |
||
| 172 | 172 | 'old_current_step_id' => Type::INTEGER, |
| 173 | 173 | ]; |
| 174 | 174 | $sql = 'UPDATE oro_workflow_item SET current_step_id = :new_current_step_id' . |
| 175 | - ' WHERE current_step_id = :old_current_step_id'; |
|
| 175 | + ' WHERE current_step_id = :old_current_step_id'; |
|
| 176 | 176 | $this->logQuery($logger, $sql, $params, $types); |
| 177 | 177 | if (!$dryRun) { |
| 178 | 178 | $this->connection->executeUpdate($sql, $params, $types); |
@@ -190,7 +190,7 @@ discard block |
||
| 190 | 190 | 'step_to_id' => Type::INTEGER, |
| 191 | 191 | ]; |
| 192 | 192 | $sql = 'UPDATE oro_workflow_transition_log SET transition = :new_transition' . |
| 193 | - ' WHERE transition IN (:old_transitions) AND step_to_id = :step_to_id'; |
|
| 193 | + ' WHERE transition IN (:old_transitions) AND step_to_id = :step_to_id'; |
|
| 194 | 194 | $this->logQuery($logger, $sql, $params, $types); |
| 195 | 195 | if (!$dryRun) { |
| 196 | 196 | $this->connection->executeUpdate($sql, $params, $types); |
@@ -212,8 +212,8 @@ discard block |
||
| 212 | 212 | 'step_from_id' => Type::INTEGER, |
| 213 | 213 | ]; |
| 214 | 214 | $sql = 'UPDATE oro_workflow_transition_log' . |
| 215 | - ' SET transition = :new_transition, step_to_id = :new_step_to_id, step_from_id = :step_from_id' . |
|
| 216 | - ' WHERE step_to_id = :old_step_to_id AND transition = :old_transition'; |
|
| 215 | + ' SET transition = :new_transition, step_to_id = :new_step_to_id, step_from_id = :step_from_id' . |
|
| 216 | + ' WHERE step_to_id = :old_step_to_id AND transition = :old_transition'; |
|
| 217 | 217 | $this->logQuery($logger, $sql, $params, $types); |
| 218 | 218 | if (!$dryRun) { |
| 219 | 219 | $this->connection->executeUpdate($sql, $params, $types); |
@@ -233,7 +233,7 @@ discard block |
||
| 233 | 233 | 'step_from_id' => Type::INTEGER, |
| 234 | 234 | ]; |
| 235 | 235 | $sql = 'UPDATE oro_workflow_transition_log SET transition = :new_transition, step_from_id = :step_from_id' . |
| 236 | - ' WHERE step_to_id = :step_to_id AND transition = :old_transition'; |
|
| 236 | + ' WHERE step_to_id = :step_to_id AND transition = :old_transition'; |
|
| 237 | 237 | $this->logQuery($logger, $sql, $params, $types); |
| 238 | 238 | if (!$dryRun) { |
| 239 | 239 | $this->connection->executeUpdate($sql, $params, $types); |
@@ -298,7 +298,7 @@ discard block |
||
| 298 | 298 | ]; |
| 299 | 299 | |
| 300 | 300 | $sql = 'UPDATE orocrm_sales_opportunity SET workflow_step_id = :new_workflow_step_id' . |
| 301 | - ' WHERE workflow_step_id = :old_workflow_step_id AND status_id = :status_id'; |
|
| 301 | + ' WHERE workflow_step_id = :old_workflow_step_id AND status_id = :status_id'; |
|
| 302 | 302 | |
| 303 | 303 | foreach ($params as $param) { |
| 304 | 304 | $this->logQuery($logger, $sql, $param, $types); |
@@ -322,7 +322,7 @@ |
||
| 322 | 322 | |
| 323 | 323 | $steps = array_filter( |
| 324 | 324 | $this->steps, |
| 325 | - function ($val) use ($name) { |
|
| 325 | + function($val) use ($name) { |
|
| 326 | 326 | return $val['name'] === $name; |
| 327 | 327 | } |
| 328 | 328 | ); |
@@ -17,7 +17,7 @@ |
||
| 17 | 17 | */ |
| 18 | 18 | public function testCreateAccount() |
| 19 | 19 | { |
| 20 | - $accountName = 'Account_'.mt_rand(); |
|
| 20 | + $accountName = 'Account_' . mt_rand(); |
|
| 21 | 21 | |
| 22 | 22 | $login = $this->login(); |
| 23 | 23 | /** @var Accounts $login */ |
@@ -55,7 +55,7 @@ |
||
| 55 | 55 | $id = $request['id']; |
| 56 | 56 | $result = array_filter( |
| 57 | 57 | $result, |
| 58 | - function ($a) use ($id) { |
|
| 58 | + function($a) use ($id) { |
|
| 59 | 59 | return $a['id'] == $id; |
| 60 | 60 | } |
| 61 | 61 | ); |
@@ -51,7 +51,7 @@ discard block |
||
| 51 | 51 | $filters = $config->offsetGetByPath(self::FILTERS_PATH, array()); |
| 52 | 52 | |
| 53 | 53 | foreach ($enumValues as $id => $text) { |
| 54 | - $label = $id.'Count'; |
|
| 54 | + $label = $id . 'Count'; |
|
| 55 | 55 | $selects[] = sprintf($selectTemplate, $id, $label); |
| 56 | 56 | $grandTotals[$label] = ['expr' => sprintf($grandTotalTemplate, $id)]; |
| 57 | 57 | $columns[$label] = ['label' => $text, 'frontend_type' => 'integer']; |
@@ -65,10 +65,10 @@ discard block |
||
| 65 | 65 | } |
| 66 | 66 | } |
| 67 | 67 | |
| 68 | - $selects[] = 'COUNT(o.id) as '.self::TOTALOPS_LABEL; |
|
| 68 | + $selects[] = 'COUNT(o.id) as ' . self::TOTALOPS_LABEL; |
|
| 69 | 69 | $grandTotals[self::TOTALOPS_LABEL] = ['expr' => 'COUNT(o.id)']; |
| 70 | 70 | $columns[self::TOTALOPS_LABEL] = [ |
| 71 | - 'label' => 'oro.reportcrm.datagrid.columns.'.self::TOTALOPS_LABEL, |
|
| 71 | + 'label' => 'oro.reportcrm.datagrid.columns.' . self::TOTALOPS_LABEL, |
|
| 72 | 72 | 'frontend_type' => 'integer' |
| 73 | 73 | ]; |
| 74 | 74 | $sorters[self::TOTALOPS_LABEL] = ['data_name' => self::TOTALOPS_LABEL]; |
@@ -258,7 +258,7 @@ discard block |
||
| 258 | 258 | $isoCode = $data['Country']; |
| 259 | 259 | $country = array_filter( |
| 260 | 260 | $this->countries, |
| 261 | - function (Country $a) use ($isoCode) { |
|
| 261 | + function(Country $a) use ($isoCode) { |
|
| 262 | 262 | return $a->getIso2Code() == $isoCode; |
| 263 | 263 | } |
| 264 | 264 | ); |
@@ -272,7 +272,7 @@ discard block |
||
| 272 | 272 | $regions = $country->getRegions(); |
| 273 | 273 | |
| 274 | 274 | $region = $regions->filter( |
| 275 | - function (Region $a) use ($idRegion) { |
|
| 275 | + function(Region $a) use ($idRegion) { |
|
| 276 | 276 | return $a->getCode() == $idRegion; |
| 277 | 277 | } |
| 278 | 278 | ); |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | */ |
| 14 | 14 | public function testCreateContact() |
| 15 | 15 | { |
| 16 | - $contactName = 'Contact_'.mt_rand(); |
|
| 16 | + $contactName = 'Contact_' . mt_rand(); |
|
| 17 | 17 | |
| 18 | 18 | $login = $this->login(); |
| 19 | 19 | /** @var Contacts $login */ |
@@ -39,7 +39,7 @@ |
||
| 39 | 39 | */ |
| 40 | 40 | public function getDependencies() |
| 41 | 41 | { |
| 42 | - return ['Oro\Bundle\DemoDataBundle\Migrations\Data\Demo\ORM\LoadContactData',]; |
|
| 42 | + return ['Oro\Bundle\DemoDataBundle\Migrations\Data\Demo\ORM\LoadContactData', ]; |
|
| 43 | 43 | } |
| 44 | 44 | |
| 45 | 45 | /** |