Apply fixes from StyleCI

This commit is contained in:
Daniil Gentili 2017-05-17 21:51:39 +00:00 committed by StyleCI Bot
parent eb3ee22e3f
commit 3c4412cf1e
6 changed files with 12 additions and 7 deletions

6
a.php
View File

@ -1,12 +1,14 @@
<?php <?php
require 'vendor/autoload.php'; require 'vendor/autoload.php';
class a extends Volatile class a extends Volatile
{ {
// public $a = []; // public $a = [];
public function __construct() { public function __construct()
{
$this->a = 'le'; $this->a = 'le';
} }
} }
$a = new a; $a = new a();
var_dump($a); var_dump($a);

View File

@ -85,7 +85,6 @@ if (!extension_loaded('pthreads')) {
public function shift() public function shift()
{ {
} }
public function chunk($size) public function chunk($size)

View File

@ -17,6 +17,7 @@ class Button extends \Volatile implements \JsonSerializable
use \danog\Serializable; use \danog\Serializable;
private $info = []; private $info = [];
private $data = []; private $data = [];
public function ___construct($API, $message, $button) public function ___construct($API, $message, $button)
{ {
$this->data = $button; $this->data = $button;

View File

@ -162,6 +162,7 @@ class Connection extends \Volatile
if (count($keys) !== count(array_unique($keys))) { if (count($keys) !== count(array_unique($keys))) {
throw new Bug74586Exception(); throw new Bug74586Exception();
} }
return $keys; return $keys;
} }

View File

@ -152,7 +152,9 @@ class MTProto extends \Volatile
} }
*/ */
if (isset($this->data)) { if (isset($this->data)) {
foreach ($this->data as $k => $v) { $this->{$k} = $v; } foreach ($this->data as $k => $v) {
$this->{$k} = $v;
}
unset($this->data); unset($this->data);
} }
$this->getting_state = false; $this->getting_state = false;