Skip to content

Commit

Permalink
Styling fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ruudboon committed Oct 26, 2019
1 parent 83f30e5 commit d81dea0
Show file tree
Hide file tree
Showing 402 changed files with 234 additions and 652 deletions.
19 changes: 9 additions & 10 deletions src/Phalcon/Cache.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ public function deleteMultiple($keys): bool
/**
* Fetches a value from the cache.
*
* @param string $key The unique key of this item in the cache.
* @param mixed $defaultValue Default value to return if the key does not exist.
* @param string $key The unique key of this item in the cache.
* @param mixed $defaultValue Default value to return if the key does not exist.
*
* @return mixed The value of the item from the cache, or $default in case of cache miss.
*
Expand All @@ -90,8 +90,8 @@ public function get($key, $defaultValue = null)
/**
* Obtains multiple cache items by their unique keys.
*
* @param iterable $keys A list of keys that can obtained in a single operation.
* @param mixed $defaultValue Default value to return for keys that do not exist.
* @param iterable $keys A list of keys that can obtained in a single operation.
* @param mixed $defaultValue Default value to return for keys that do not exist.
*
* @return iterable A list of key => value pairs. Cache keys that do not exist or are stale will have $default as value.
*
Expand All @@ -117,9 +117,9 @@ public function has($key): bool
/**
* Persists data in the cache, uniquely referenced by a key with an optional expiration TTL time.
*
* @param string $key The key of the item to store.
* @param mixed $value The value of the item to store. Must be serializable.
* @param null|int|\DateInterval $ttl Optional. The TTL value of this item. If no value is sent and
* @param string $key The key of the item to store.
* @param mixed $value The value of the item to store. Must be serializable.
* @param null|int|\DateInterval $ttl Optional. The TTL value of this item. If no value is sent and
* the driver supports TTL then the library may set a default value
* for it or let the driver take care of that.
*
Expand All @@ -134,8 +134,8 @@ public function set($key, $value, $ttl = null): bool
/**
* Persists a set of key => value pairs in the cache, with an optional TTL.
*
* @param iterable $values A list of key => value pairs for a multiple-set operation.
* @param null|int|\DateInterval $ttl Optional. The TTL value of this item. If no value is sent and
* @param iterable $values A list of key => value pairs for a multiple-set operation.
* @param null|int|\DateInterval $ttl Optional. The TTL value of this item. If no value is sent and
* the driver supports TTL then the library may set a default value
* for it or let the driver take care of that.
*
Expand Down Expand Up @@ -164,5 +164,4 @@ protected function checkKey($key)
protected function checkKeys($keys)
{
}

}
1 change: 0 additions & 1 deletion src/Phalcon/Collection.php
Original file line number Diff line number Diff line change
Expand Up @@ -266,5 +266,4 @@ public function unserialize($serialized)
protected function setData(string $element, $value)
{
}

}
1 change: 0 additions & 1 deletion src/Phalcon/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -129,5 +129,4 @@ final protected function internalMerge(array $source, array $target): array
protected function setData($element, $value)
{
}

}
1 change: 0 additions & 1 deletion src/Phalcon/Container.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,4 @@ public function get($name)
public function has($name): bool
{
}

}
5 changes: 2 additions & 3 deletions src/Phalcon/Crypt.php
Original file line number Diff line number Diff line change
Expand Up @@ -156,11 +156,11 @@ public function decrypt(string $text, string $key = null): string
/**
* Decrypt a text that is coded as a base64 string.
*
* @throws \Phalcon\Crypt\Mismatch
* @param string $text
* @param mixed $key
* @param bool $safe
* @return string
* @throws \Phalcon\Crypt\Mismatch
*/
public function decryptBase64(string $text, $key = null, bool $safe = false): string
{
Expand Down Expand Up @@ -284,9 +284,9 @@ public function setCipher(string $cipher): CryptInterface
/**
* Set the name of hashing algorithm.
*
* @throws \Phalcon\Crypt\Exception
* @param string $hashAlgo
* @return \Phalcon\Crypt\CryptInterface
* @throws \Phalcon\Crypt\Exception
*/
public function setHashAlgo(string $hashAlgo): CryptInterface
{
Expand Down Expand Up @@ -396,5 +396,4 @@ protected function cryptPadText(string $text, string $mode, int $blockSize, int
protected function cryptUnpadText(string $text, string $mode, int $blockSize, int $paddingType)
{
}

}
3 changes: 1 addition & 2 deletions src/Phalcon/Debug.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class Debug
/**
* @var bool
*/
static protected $isActive;
protected static $isActive;

/**
* @var bool
Expand Down Expand Up @@ -244,5 +244,4 @@ protected function getVarDump($variable): string
final protected function showTraceItem(int $n, array $trace): string
{
}

}
3 changes: 1 addition & 2 deletions src/Phalcon/Di.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ class Di implements \Phalcon\Di\DiInterface
/**
* Latest DI build
*/
static protected $_default;
protected static $_default;


/**
Expand Down Expand Up @@ -409,5 +409,4 @@ public function setRaw(string $name, \Phalcon\Di\ServiceInterface $rawDefinition
public function setShared(string $name, $definition): ServiceInterface
{
}

}
1 change: 0 additions & 1 deletion src/Phalcon/Escaper.php
Original file line number Diff line number Diff line change
Expand Up @@ -159,5 +159,4 @@ public function setEncoding(string $encoding)
public function setHtmlQuoteType(int $quoteType)
{
}

}
1 change: 0 additions & 1 deletion src/Phalcon/Exception.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,4 @@ class Exception extends \Exception implements \Throwable
public static function containerServiceNotFound(string $service): string
{
}

}
1 change: 0 additions & 1 deletion src/Phalcon/Filter.php
Original file line number Diff line number Diff line change
Expand Up @@ -166,5 +166,4 @@ private function processArrayValues(array $values, string $sanitizerName, array
private function sanitizer($value, string $sanitizerName, array $sanitizerParams = array())
{
}

}
3 changes: 1 addition & 2 deletions src/Phalcon/Kernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,10 @@ class Kernel
* Produces a pre-computed hash key based on a string. This function
* produces different numbers in 32bit/64bit processors
*
* @return string
* @param string $key
* @return string
*/
public static function preComputeHashKey(string $key)
{
}

}
1 change: 0 additions & 1 deletion src/Phalcon/Loader.php
Original file line number Diff line number Diff line change
Expand Up @@ -279,5 +279,4 @@ public function unregister(): Loader
protected function prepareNamespace(array $namespaceName): array
{
}

}
7 changes: 3 additions & 4 deletions src/Phalcon/Logger.php
Original file line number Diff line number Diff line change
Expand Up @@ -195,8 +195,8 @@ public function excludeAdapters(array $adapters = array()): Logger
*
* @param string $name The name of the adapter
*
* @throws Exception
* @return \Phalcon\Logger\Adapter\AdapterInterface
* @throws Exception
*/
public function getAdapter(string $name): AdapterInterface
{
Expand Down Expand Up @@ -258,8 +258,8 @@ public function notice($message, array $context = array())
*
* @param string $name The name of the adapter
*
* @throws Logger\Exception
* @return Logger
* @throws Logger\Exception
*/
public function removeAdapter(string $name): Logger
{
Expand Down Expand Up @@ -303,9 +303,9 @@ public function warning($message, array $context = array())
*
* @param int $level
* @param string $message *
* @throws Logger\Exception
* @param array $context
* @return bool
* @throws Logger\Exception
*/
protected function addMessage(int $level, string $message, array $context = array()): bool
{
Expand All @@ -329,5 +329,4 @@ protected function getLevels(): array
private function getLevelNumber($level): int
{
}

}
1 change: 0 additions & 1 deletion src/Phalcon/Registry.php
Original file line number Diff line number Diff line change
Expand Up @@ -277,5 +277,4 @@ final public function toJson(int $options = 79): string
final public function unserialize($serialized)
{
}

}
1 change: 0 additions & 1 deletion src/Phalcon/Security.php
Original file line number Diff line number Diff line change
Expand Up @@ -291,5 +291,4 @@ private function getLocalRequest(): ?RequestInterface
private function getLocalSession(): ?SessionInterface
{
}

}
25 changes: 12 additions & 13 deletions src/Phalcon/Tag.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,40 +47,40 @@ class Tag
const XHTML5 = 11;


static protected $autoEscape = true;
protected static $autoEscape = true;

/**
* DI Container
*/
static protected $container;
protected static $container;

/**
* Pre-assigned values for components
*/
static protected $displayValues;
protected static $displayValues;


static protected $documentAppendTitle = null;
protected static $documentAppendTitle = null;


static protected $documentPrependTitle = null;
protected static $documentPrependTitle = null;

/**
* HTML document title
*/
static protected $documentTitle = null;
protected static $documentTitle = null;


static protected $documentTitleSeparator = null;
protected static $documentTitleSeparator = null;


static protected $documentType = 11;
protected static $documentType = 11;


static protected $escaperService = null;
protected static $escaperService = null;


static protected $urlService = null;
protected static $urlService = null;


/**
Expand Down Expand Up @@ -649,7 +649,7 @@ public static function weekField($parameters): string
* @param bool $asValue
* @return string
*/
static final protected function inputField(string $type, $parameters, bool $asValue = false): string
final protected static function inputField(string $type, $parameters, bool $asValue = false): string
{
}

Expand All @@ -660,8 +660,7 @@ static final protected function inputField(string $type, $parameters, bool $asVa
* @param mixed $parameters
* @return string
*/
static final protected function inputFieldChecked(string $type, $parameters): string
final protected static function inputFieldChecked(string $type, $parameters): string
{
}

}
1 change: 0 additions & 1 deletion src/Phalcon/Text.php
Original file line number Diff line number Diff line change
Expand Up @@ -269,5 +269,4 @@ public static function underscore(string $text): string
public static function upper(string $text, string $encoding = 'UTF-8'): string
{
}

}
1 change: 0 additions & 1 deletion src/Phalcon/Url.php
Original file line number Diff line number Diff line change
Expand Up @@ -198,5 +198,4 @@ public function setStaticBaseUri(string $staticBaseUri): UrlInterface
public function path(string $path = null): string
{
}

}
2 changes: 0 additions & 2 deletions src/Phalcon/Validation.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ class Validation extends Injectable implements \Phalcon\Validation\ValidationInt
protected $values;



public function getData()
{
}
Expand Down Expand Up @@ -219,5 +218,4 @@ public function validate($data = null, $entity = null): Messages
protected function preChecking($field, \Phalcon\Validation\ValidatorInterface $validator): bool
{
}

}
3 changes: 1 addition & 2 deletions src/Phalcon/Version.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ protected static function _getVersion(): array
* @param int $special
* @return string
*/
protected final static function _getSpecial(int $special): string
final protected static function _getSpecial(int $special): string
{
}

Expand Down Expand Up @@ -131,5 +131,4 @@ public static function getId(): string
public static function getPart(int $part): string
{
}

}
1 change: 0 additions & 1 deletion src/Phalcon/acl/Component.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,5 +58,4 @@ public function __toString(): string
public function __construct(string $name, string $description = null)
{
}

}
1 change: 0 additions & 1 deletion src/Phalcon/acl/ComponentAware.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,4 @@ interface ComponentAware
* @return string
*/
public function getComponentName(): string;

}
1 change: 0 additions & 1 deletion src/Phalcon/acl/ComponentInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,4 @@ public function getName(): string;
* @return string
*/
public function __toString(): string;

}
2 changes: 0 additions & 2 deletions src/Phalcon/acl/Enum.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,4 @@ class Enum


const DENY = 0;


}
1 change: 0 additions & 1 deletion src/Phalcon/acl/Role.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,5 +58,4 @@ public function getDescription(): string
public function __construct(string $name, string $description = null)
{
}

}
1 change: 0 additions & 1 deletion src/Phalcon/acl/RoleAware.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,4 @@ interface RoleAware
* @return string
*/
public function getRoleName(): string;

}
1 change: 0 additions & 1 deletion src/Phalcon/acl/RoleInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,4 @@ public function getDescription(): string;
* @return string
*/
public function __toString(): string;

}
1 change: 0 additions & 1 deletion src/Phalcon/acl/adapter/AbstractAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -117,5 +117,4 @@ public function setDefaultAction(int $defaultAccess)
public function setEventsManager(\Phalcon\Events\ManagerInterface $eventsManager)
{
}

}
1 change: 0 additions & 1 deletion src/Phalcon/acl/adapter/AdapterInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -170,5 +170,4 @@ public function setDefaultAction(int $defaultAccess);
* @param int $defaultAccess
*/
public function setNoArgumentsDefaultAction(int $defaultAccess);

}
1 change: 0 additions & 1 deletion src/Phalcon/acl/adapter/Memory.php
Original file line number Diff line number Diff line change
Expand Up @@ -443,5 +443,4 @@ private function allowOrDeny(string $roleName, string $componentName, $access, $
private function canAccess(string $roleName, string $componentName, string $access)
{
}

}
1 change: 0 additions & 1 deletion src/Phalcon/annotations/Annotation.php
Original file line number Diff line number Diff line change
Expand Up @@ -121,5 +121,4 @@ public function hasArgument($position): bool
public function numberArguments(): int
{
}

}
1 change: 0 additions & 1 deletion src/Phalcon/annotations/AnnotationsFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,4 @@ public function newInstance(string $name, array $options = array()): AbstractAda
protected function getAdapters(): array
{
}

}
Loading

0 comments on commit d81dea0

Please sign in to comment.