for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Actions
*
* THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED
* OR IMPLIED. ANY USE IS AT YOUR OWN RISK.
* Permission is hereby granted to use or copy this program
* for any purpose, provided the above notices are retained on all copies.
* Permission to modify the code and to distribute modified code is granted,
* provided the above notices are retained, and a notice that the code was
* modified is included with the above copyright notice.
* @category Wp
* @package Punction
* @author Andrzej Marcinkowski <[email protected]>
* @copyright 2014 Wojewódzki Szpital Zespolony, Kalisz
* @license MIT http://opensource.org/licenses/MIT
* @version 1.0 $Id$ $Format:%H$
* @link http://
* @since File available since Release 1.0.0
* PHP Version 5
*/
namespace Hospitalplugin\utils;
use Symfony\Component\Yaml\Yaml;
* Z
class YAML2Object
{
private static $object;
$object
This check marks private properties in classes that are never used. Those properties can be removed.
public static function getObject($yamlFile)
if (YAML2Object::$object == null) {
$wardsFileContents = file_get_contents($yamlFile);
YAML2Object::$object = Yaml::parse($wardsFileContents);
}
return YAML2Object::$object;
This check marks private properties in classes that are never used. Those properties can be removed.