Skip to content
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.

Commit

Permalink
Merge branch 'feature/php-short-array-syntax' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
Maks3w committed Jun 5, 2015
2 parents 9e8cd4e + 70fba19 commit d9a7ce1
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions .php_cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ $config->fixers(
'object_operator',
'php_closing_tag',
'remove_lines_between_uses',
'short_array_syntax',
'short_tag',
'standardize_not_equal',
'trailing_spaces',
Expand Down
4 changes: 2 additions & 2 deletions src/MemoryManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ class MemoryManager
*
* @var array
*/
private $unloadCandidates = array();
private $unloadCandidates = [];

/**
* List of object sizes.
Expand All @@ -83,7 +83,7 @@ class MemoryManager
*
* @var array
*/
private $sizes = array();
private $sizes = [];

/**
* Last modified object
Expand Down
2 changes: 1 addition & 1 deletion test/AccessControllerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class AccessControllerTest extends \PHPUnit_Framework_TestCase

public function setUp()
{
$this->_cache = CacheFactory::adapterFactory('memory', array('memory_limit' => 0));
$this->_cache = CacheFactory::adapterFactory('memory', ['memory_limit' => 0]);
}

/**
Expand Down
6 changes: 3 additions & 3 deletions test/MemoryManagerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class MemoryManagerTest extends \PHPUnit_Framework_TestCase

public function setUp()
{
$this->_cache = CacheFactory::adapterFactory('memory', array('memory_limit' => 0));
$this->_cache = CacheFactory::adapterFactory('memory', ['memory_limit' => 0]);
}

/**
Expand Down Expand Up @@ -97,7 +97,7 @@ public function testProcessing()
$memoryManager->setMinSize(256);
$memoryManager->setMemoryLimit(1024*32);

$memObjects = array();
$memObjects = [];
for ($count = 0; $count < 64; $count++) {
$memObject = $memoryManager->create(str_repeat((string)($count % 10), 1024) /* 1K */);
$memObjects[] = $memObject;
Expand All @@ -123,7 +123,7 @@ public function testNotEnoughSpaceThrowException()
$memoryManager->setMinSize(128);
$memoryManager->setMemoryLimit(1024);

$memObjects = array();
$memObjects = [];
for ($count = 0; $count < 8; $count++) {
$memObject = $memoryManager->create(str_repeat((string)($count % 10), 128) /* 1K */);
$memObjects[] = $memObject;
Expand Down

0 comments on commit d9a7ce1

Please sign in to comment.