@@ -52,12 +52,12 @@ discard block |
||
| 52 | 52 | { |
| 53 | 53 | $name = trim( $name, '/' ); |
| 54 | 54 | |
| 55 | - if( isset( $this->negCache[ $name ] ) ) { |
|
| 55 | + if( isset( $this->negCache[$name] ) ) { |
|
| 56 | 56 | return $default; |
| 57 | 57 | } |
| 58 | 58 | |
| 59 | 59 | if( array_key_exists( $name, $this->cache ) ) { |
| 60 | - return $this->cache[ $name ]; |
|
| 60 | + return $this->cache[$name]; |
|
| 61 | 61 | } |
| 62 | 62 | |
| 63 | 63 | if( ( $value = $this->getValueFromArray( $this->config, explode( '/', $name ) ) ) === null ) { |
@@ -66,11 +66,11 @@ discard block |
||
| 66 | 66 | |
| 67 | 67 | if( $value === null ) |
| 68 | 68 | { |
| 69 | - $this->negCache[ $name ] = true; |
|
| 69 | + $this->negCache[$name] = true; |
|
| 70 | 70 | return $default; |
| 71 | 71 | } |
| 72 | 72 | |
| 73 | - $this->cache[ $name ] = $value; |
|
| 73 | + $this->cache[$name] = $value; |
|
| 74 | 74 | return $value; |
| 75 | 75 | } |
| 76 | 76 | |
@@ -87,15 +87,15 @@ discard block |
||
| 87 | 87 | |
| 88 | 88 | if( $value !== null ) |
| 89 | 89 | { |
| 90 | - $this->cache[ $name ] = $value; |
|
| 90 | + $this->cache[$name] = $value; |
|
| 91 | 91 | |
| 92 | - if( isset( $this->negCache[ $name ] ) ) { |
|
| 93 | - unset( $this->negCache[ $name ] ); |
|
| 92 | + if( isset( $this->negCache[$name] ) ) { |
|
| 93 | + unset( $this->negCache[$name] ); |
|
| 94 | 94 | } |
| 95 | 95 | } |
| 96 | 96 | else |
| 97 | 97 | { |
| 98 | - $this->negCache[ $name ] = true; |
|
| 98 | + $this->negCache[$name] = true; |
|
| 99 | 99 | } |
| 100 | 100 | |
| 101 | 101 | // don't store local configuration |
@@ -92,8 +92,7 @@ |
||
| 92 | 92 | if( isset( $this->negCache[ $name ] ) ) { |
| 93 | 93 | unset( $this->negCache[ $name ] ); |
| 94 | 94 | } |
| 95 | - } |
|
| 96 | - else |
|
| 95 | + } else |
|
| 97 | 96 | { |
| 98 | 97 | $this->negCache[ $name ] = true; |
| 99 | 98 | } |
@@ -218,8 +218,7 @@ |
||
| 218 | 218 | * @see madmin/job/manager/standard/count/ansi |
| 219 | 219 | */ |
| 220 | 220 | $path = 'madmin/job/manager/standard/insert'; |
| 221 | - } |
|
| 222 | - else |
|
| 221 | + } else |
|
| 223 | 222 | { |
| 224 | 223 | /** madmin/job/manager/standard/update/mysql |
| 225 | 224 | * Updates an existing job record in the database |
@@ -337,8 +337,7 @@ |
||
| 337 | 337 | * @see mshop/service/manager/standard/count/ansi |
| 338 | 338 | */ |
| 339 | 339 | $path = 'mshop/service/manager/standard/insert'; |
| 340 | - } |
|
| 341 | - else |
|
| 340 | + } else |
|
| 342 | 341 | { |
| 343 | 342 | /** mshop/service/manager/standard/update/mysql |
| 344 | 343 | * Updates an existing service record in the database |
@@ -324,8 +324,7 @@ |
||
| 324 | 324 | * @see mshop/media/manager/standard/count/ansi |
| 325 | 325 | */ |
| 326 | 326 | $path = 'mshop/media/manager/standard/insert'; |
| 327 | - } |
|
| 328 | - else |
|
| 327 | + } else |
|
| 329 | 328 | { |
| 330 | 329 | /** mshop/media/manager/standard/update/mysql |
| 331 | 330 | * Updates an existing media record in the database |
@@ -210,8 +210,7 @@ |
||
| 210 | 210 | * @see mshop/text/manager/standard/count/ansi |
| 211 | 211 | */ |
| 212 | 212 | $path = 'mshop/text/manager/standard/insert'; |
| 213 | - } |
|
| 214 | - else |
|
| 213 | + } else |
|
| 215 | 214 | { |
| 216 | 215 | /** mshop/text/manager/standard/update/mysql |
| 217 | 216 | * Updates an existing text record in the database |
@@ -303,8 +303,7 @@ |
||
| 303 | 303 | * @see mshop/supplier/manager/standard/count/ansi |
| 304 | 304 | */ |
| 305 | 305 | $path = 'mshop/supplier/manager/standard/insert'; |
| 306 | - } |
|
| 307 | - else |
|
| 306 | + } else |
|
| 308 | 307 | { |
| 309 | 308 | /** mshop/supplier/manager/standard/update/mysql |
| 310 | 309 | * Updates an existing supplier record in the database |
@@ -630,7 +630,7 @@ discard block |
||
| 630 | 630 | * @see mshop/supplier/manager/standard/delete/ansi |
| 631 | 631 | * @see mshop/supplier/manager/standard/search/ansi |
| 632 | 632 | */ |
| 633 | - $cfgPathCount = 'mshop/supplier/manager/standard/count'; |
|
| 633 | + $cfgPathCount = 'mshop/supplier/manager/standard/count'; |
|
| 634 | 634 | |
| 635 | 635 | $results = $this->searchItemsBase( $conn, $search, $cfgPathSearch, $cfgPathCount, $required, $total, $level ); |
| 636 | 636 | while( ( $row = $results->fetch() ) !== false ) { |
@@ -676,8 +676,8 @@ discard block |
||
| 676 | 676 | */ |
| 677 | 677 | public function createSearch( $default = false ) |
| 678 | 678 | { |
| 679 | - if ( $default ) { |
|
| 680 | - return $this->createSearchBase('supplier'); |
|
| 679 | + if( $default ) { |
|
| 680 | + return $this->createSearchBase( 'supplier' ); |
|
| 681 | 681 | } |
| 682 | 682 | |
| 683 | 683 | return parent::createSearch(); |
@@ -289,8 +289,7 @@ |
||
| 289 | 289 | * @see mshop/customer/manager/group/standard/count/ansi |
| 290 | 290 | */ |
| 291 | 291 | $path = 'mshop/customer/manager/group/standard/insert'; |
| 292 | - } |
|
| 293 | - else |
|
| 292 | + } else |
|
| 294 | 293 | { |
| 295 | 294 | /** mshop/customer/manager/group/standard/update/mysql |
| 296 | 295 | * Updates an existing customer group record in the database |
@@ -418,8 +418,7 @@ |
||
| 418 | 418 | * @see mshop/customer/manager/standard/count/ansi |
| 419 | 419 | */ |
| 420 | 420 | $path = 'mshop/customer/manager/standard/insert'; |
| 421 | - } |
|
| 422 | - else |
|
| 421 | + } else |
|
| 423 | 422 | { |
| 424 | 423 | /** mshop/customer/manager/standard/update/mysql |
| 425 | 424 | * Updates an existing customer record in the database |
@@ -360,8 +360,7 @@ |
||
| 360 | 360 | * @see mshop/price/manager/standard/count/ansi |
| 361 | 361 | */ |
| 362 | 362 | $path = 'mshop/price/manager/standard/insert'; |
| 363 | - } |
|
| 364 | - else |
|
| 363 | + } else |
|
| 365 | 364 | { |
| 366 | 365 | /** mshop/price/manager/standard/update/mysql |
| 367 | 366 | * Updates an existing price record in the database |