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

8
a.php
View File

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

View File

@ -31,7 +31,7 @@ if (!extension_loaded('pthreads')) {
public function count()
{
return count((array)$this);
return count((array) $this);
}
public function getIterator()
@ -85,7 +85,6 @@ if (!extension_loaded('pthreads')) {
public function shift()
{
}
public function chunk($size)

View File

@ -6,7 +6,7 @@ if (!extension_loaded('pthreads')) {
public function __set($offset, $value)
{
if ($offset === null) {
$offset = count((array)$this);
$offset = count((array) $this);
}
if (is_array($value)) {

View File

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

View File

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

View File

@ -152,7 +152,9 @@ class MTProto extends \Volatile
}
*/
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);
}
$this->getting_state = false;