@@ -6,7 +6,6 @@ |
||
6 | 6 | use Cake\Database\Expression\QueryExpression; |
7 | 7 | use Cake\Event\Event; |
8 | 8 | use Cake\Event\EventManager; |
9 | -use Cake\ORM\Entity; |
|
10 | 9 | use Cake\ORM\Table; |
11 | 10 | use Saito\Event\SaitoEventManager; |
12 | 11 |
@@ -125,6 +125,7 @@ |
||
125 | 125 | |
126 | 126 | /** |
127 | 127 | * {@inheritdoc} |
128 | + * @param string $key |
|
128 | 129 | */ |
129 | 130 | public function getConfig($key = null, $default = null) |
130 | 131 | { |
@@ -3,7 +3,6 @@ |
||
3 | 3 | namespace Saito\Smiley; |
4 | 4 | |
5 | 5 | use Cake\Cache\Cache; |
6 | -use Cake\Core\Configure; |
|
7 | 6 | use Cake\ORM\TableRegistry; |
8 | 7 | |
9 | 8 | class SmileyLoader |
@@ -13,7 +13,6 @@ |
||
13 | 13 | namespace Saito\Test; |
14 | 14 | |
15 | 15 | use App\Test\Fixture\UserFixture; |
16 | - |
|
17 | 16 | use Cake\Core\Configure; |
18 | 17 | use Cake\Event\Event; |
19 | 18 | use Cake\Event\EventManager; |
@@ -4,9 +4,7 @@ |
||
4 | 4 | |
5 | 5 | use Cake\ORM\Table; |
6 | 6 | use Cake\ORM\TableRegistry; |
7 | -use Saito\App\Registry; |
|
8 | 7 | use Saito\Test\SaitoTestCase; |
9 | -use Saito\User\SaitoUser; |
|
10 | 8 | |
11 | 9 | abstract class SaitoTableTestCase extends SaitoTestCase |
12 | 10 | { |
@@ -2,9 +2,6 @@ |
||
2 | 2 | |
3 | 3 | namespace Saito\Test; |
4 | 4 | |
5 | -use Cake\Event\Event; |
|
6 | -use Cake\Event\EventManager; |
|
7 | - |
|
8 | 5 | trait SecurityMockTrait |
9 | 6 | { |
10 | 7 |
@@ -3,11 +3,9 @@ |
||
3 | 3 | namespace Saito\User\Upload; |
4 | 4 | |
5 | 5 | use App\Model\Entity\User; |
6 | -use Cake\Core\Configure; |
|
7 | 6 | use Cake\Event\Event; |
8 | 7 | use Cake\Event\EventListenerInterface; |
9 | 8 | use Cake\Filesystem\Folder; |
10 | -use Cake\ORM\Entity; |
|
11 | 9 | use Cake\Utility\Text; |
12 | 10 | use Proffer\Lib\ProfferPath; |
13 | 11 |
@@ -118,7 +118,7 @@ |
||
118 | 118 | * Fast version of Set::combine($results, '{n}.Setting.name', |
119 | 119 | * '{n}.Setting.value'); |
120 | 120 | * |
121 | - * @param array $results results |
|
121 | + * @param Query $results results |
|
122 | 122 | * @return array |
123 | 123 | */ |
124 | 124 | protected function _compactKeyValue($results) |
@@ -15,8 +15,6 @@ |
||
15 | 15 | use App\Lib\Model\Table\AppSettingTable; |
16 | 16 | use Cake\Cache\Cache; |
17 | 17 | use Cake\Core\Configure; |
18 | -use Cake\ORM\Query; |
|
19 | -use Saito\App\Registry; |
|
20 | 18 | use \Stopwatch\Lib\Stopwatch; |
21 | 19 | |
22 | 20 | class SettingsTable extends AppSettingTable |
@@ -19,7 +19,7 @@ discard block |
||
19 | 19 | public function run() |
20 | 20 | { |
21 | 21 | $data = |
22 | - [ |
|
22 | + [ |
|
23 | 23 | [ |
24 | 24 | 'id' => 1, |
25 | 25 | 'sort' => 1, |
@@ -105,7 +105,7 @@ discard block |
||
105 | 105 | 'sort' => 17, |
106 | 106 | 'icon' => 'angry', |
107 | 107 | ] |
108 | - ]; |
|
108 | + ]; |
|
109 | 109 | |
110 | 110 | $table = $this->table('smilies'); |
111 | 111 | $table->insert($data)->save(); |
@@ -15,7 +15,7 @@ |
||
15 | 15 | use Saito\Exception\SaitoForbiddenException; |
16 | 16 | use Saito\Test\IntegrationTestCase; |
17 | 17 | |
18 | - /* |
|
18 | + /* |
|
19 | 19 | class SearchesMockController extends SearchesController |
20 | 20 | { |
21 | 21 |